This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//https://yagisanatode.com/2018/10/05/google-apps-script-get-file-by-name-with-optional-parent-folder-crosscheck/ | |
function getFileByName(fileName, fileInFolder){ | |
var filecount = 0; | |
var dupFileArray = []; | |
var folderID = ""; | |
var files = DriveApp.getFilesByName(fileName); | |
while(files.hasNext()){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -H 'API-Key: YOUR_VULTR_TOKEN' https://api.vultr.com/v1/server/create --data 'DCID=25' --data 'VPSPLANID=201' --data 'OSID=215' | |
curl -H 'API-Key: YOUR_VULTR_TOKEN' https://api.vultr.com/v1/server/create --data 'DCID=40' --data 'VPSPLANID=201' --data 'OSID=215’ | |
curl -H 'API-Key: YOUR_VULTR_TOKEN' https://api.vultr.com/v1/server/create --data 'DCID=6' --data 'VPSPLANID=199' --data 'OSID=215' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#-*-coding:utf-8-*- | |
import urllib, json , os | |
from shutil import rmtree | |
url = 'http:/yourjenkinsbaseurl/api/python?pretty=true' | |
jenkins_workspace_path = '/data/jenkins/workspace/' | |
data = eval(urllib.urlopen(url).read()) | |
jobnames = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"status": 0, | |
"encoding": "UTF-8", | |
"isdebug": false, | |
"vip": 0, | |
"isloop": 1, | |
"iscustom": false, | |
"data": [ | |
{ | |
"status": 1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ head -1000 /etc/conf.d/xvfb* /etc/init.d/{xvfb,selenium-daemon} | |
==> /etc/conf.d/xvfb <== | |
XVFB=/usr/bin/Xvfb | |
XVFBARGS=":90 -auth /etc/conf.d/xvfb.cfg -nolisten tcp" | |
PIDFILE=/var/run/xvfb.pid | |
==> /etc/conf.d/xvfb.cfg <== | |
localhost | |
==> /etc/init.d/xvfb <== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.facebook.com/notes/facebook-engineering/facebook-engineering-bootcamp/177577963919 | |
https://www.facebook.com/notes/facebook-engineering/bootcamp-growing-culture-at-facebook/249415563919 | |
http://www.quora.com/How-does-Facebook-Engineerings-Bootcamp-program-work | |
http://thenextweb.com/facebook/2011/10/11/revealed-details-of-bootcamp-all-new-facebook-engineers-complete-video/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
<html> | |
<head> | |
<title>iOS 8 web app</title> | |
<!-- CONFIGURATION --> |
NewerOlder