« first day (3838 days earlier)      last day (32 days later) » 

1:08 PM
Phase 3: Faheem mails his phone to Andras to copy the files. Boom -- remote backup!
 
 
3 hours later…
Ben
3:55 PM
Hi Unix/Linux friends, is there someone who is verse in curl and REST API? I have a favor to ask. Thanks
I have a .docx file in Google drive, but it is not recognizable by Google Doc. Someone said that I could change its MIME type by Google drive REST API. I have no idea how to do that
Would appreciate some command examples
 
@Ben I doubt anyone here would know. This isn't a Unix/Linux thing but a Google API thing. I don't really see a link to *nix at all. You could try posting a question on Web Applications if it is on topic and ask about your basic issue with google docs.
 
0
Q: How to change mimeType of a file in Google Drive using the REST API

user8738918I have a file named config.json with the mimeType: application/octet-stream. Google API Explorer - Get File Metatadatas GET https://www.googleapis.com/drive/v3/files/1b95F40yMjPYhdZjn8zZPr6P3wjUnxoM2 and the response: { "kind": "drive#file", "id": "1b95F40yMjPYhdZjn8zZPr6P3wjUnxoM2", "na...

 
4:24 PM
<3 rsync
 
4:35 PM
@jesse_b Well yes. Why would you need more than three? One should be more than enough!
<2 rsync.
 
hah
I'm using a lot this morning, my macbook is hosed so I need to back all my files up and reinstall
 
4:52 PM
ouch...
 
@jesse_b If you back up a hosed system, wouldn't you get a hosed backup?
 
5:35 PM
@Kusalananda I'm just backing up my files
scripts and such
ssh keys
 
Ah, I thought you were going to reinstall from a Time Machine backup.
No worries then.
 
I think my problem is just the spy software my company forces on it though
The program has been asking me to connect through their vpn lately and ever since that started my dns is non existent every few minutes
 
Ben
Thank you, Jesse_b
How may I get the access_token in
curl --request POST \
'https://www.googleapis.com/drive/v3/files/fileId1/copy \
--header 'Authorization: Bearer [YOUR_ACCESS_TOKEN]' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{"mimeType":"application/json","name":"samplename.json"}' \
--compressed
 
 
5 hours later…
Ben
10:20 PM
@jesse_b This doesn't tell me how developers.google.com/identity/protocols/oauth2
 
That's literally the first result on the google search
 
 
1 hour later…
Ben
11:53 PM
In confusion
 

« first day (3838 days earlier)      last day (32 days later) »