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
$ git push heroku master |
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
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions -EnableShowFileExtensions | |
Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart -EnableShowStartOnActiveScreen -EnableShowAppsViewOnStartScreen -EnableSearchEverywhereInAppsView -EnableListDesktopAppsFirst | |
Install-WindowsUpdate -acceptEula | |
Disable-UAC | |
Disable-InternetExplorerESC | |
cinst notepad2 -y | |
cinst SublimeText3 -y | |
cinst sublimetext3-contextmenu -y |
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
require 'elasticsearch' | |
require 'redis' | |
require 'colorize' | |
unless ARGV.length == 3 | |
puts 'Wrong number of arguments' | |
puts | |
puts 'Syntax: ruby migrate-doorman-v1.rb <elasticsearch URL> <source index> <target-index>' | |
puts 'Example: ruby migrate-doorman-v1.rb http://localhost:9200 doorman-v1 doorman-v2' | |
exit |
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
# Apps | |
apps=( | |
alfred | |
dropbox | |
google-chrome | |
slack | |
firefox | |
hazel | |
spotify |
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
var reqeustOptions = { | |
uri: urljoin(apiBaseUrl, apiBasePath, 'SMS'), | |
method: 'POST', | |
auth: { | |
user: 'username', | |
pass: 'pwd' | |
}, | |
form: { | |
from: fromNubmer, | |
to: toNumber, |
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
auto lo | |
iface lo inet loopback | |
iface eth0 inet dhcp | |
allow-hotplug wlan0 | |
iface wlan0 inet manual | |
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf | |
iface default inet dhcp |
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
auto lo | |
iface lo inet loopback | |
iface eth0 inet dhcp | |
allow-hotplug wlan0 | |
auto wlan0 | |
iface wlan0 inet dhcp | |
wpa-ssid network-name | |
wpa-psk password |
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
require 'cosm-rb' | |
require 'json' | |
require 'ap' | |
def get_path_for_family path, directory_path | |
family = File.open(File.join(path, directory_path, 'family')).gets.strip.to_i | |
if family == 28 | |
File.join(path, directory_path, 'temperature') | |
elsif family == 26 | |
File.join(path, directory_path, 'humidity') |
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
require 'tempodb' | |
def get_path_for_family path, directory_path | |
family = File.open(File.join(path, directory_path, 'family')).gets.strip.to_i | |
if family == 28 | |
File.join(path, directory_path, 'temperature') | |
elsif family == 26 | |
File.join(path, directory_path, 'humidity') | |
else | |
nil |
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
Get["/builds/progress"] = _ => { | |
IList<IBuildInProgress> builds = serviceAgent.GetBuildsInProgress(); | |
return Response.AsJson(builds).AsCacheable(DateTime.Now.AddSeconds(10)) ; | |
}; |