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
{ | |
"createdBy": "Redirector v3.5.3", | |
"createdAt": "2020-05-26T13:11:01.431Z", | |
"redirects": [ | |
{ | |
"description": "Gcal to o365", | |
"exampleUrl": "https://calendar.google.com/calendar/r", | |
"exampleResult": "https://outlook.office.com/calendar/view/workweek", | |
"error": null, | |
"includePattern": "http*://calendar.google.com/*", |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<array> | |
<dict> | |
<key>Activate</key> | |
<string>Normal</string> | |
<key>CreationDate</key> | |
<real>606836837.23022795</real> | |
<key>Macros</key> |
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
#!/bin/bash | |
export NAMECHEAP_SOURCEIP="`ip -4 addr show eth0 | grep -oP '(?<=inet\s)\d+(\.\d+){3}'`" | |
export NAMECHEAP_USERNAME=".." | |
export NAMECHEAP_API_KEY=".." | |
export NAMECHEAP_DDNS_PASSWORD=".." | |
export HOSNTAME='..' | |
export DOMAIN='..' | |
curl "https://dynamicdns.park-your-domain.com/update?host=$HOSTNAME&domain=$DOMAIN&password=$NAMECHEAP_DDNS_PASSWORD&ip=$NAMECHEAP_SOURCEIP" |
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 ruby | |
# -*- mode: ruby -*- | |
# # vi: set ft=ruby : | |
require 'tmpdir' | |
class Input | |
attr_reader :get_method |
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
hostname=ENV['HOSTNAME'] | |
[ | |
"scutil --set ComputerName #{hostname}", | |
"scutil --set LocalHostName #{hostname}", | |
"scutil --set HostName #{hostname}", | |
"hostname #{hostname}", | |
"diskutil rename / #{hostname}" ].each do |host_cmd| | |
`#{host_cmd}` | |
end |
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 'open3' | |
hosts = %w{ host1 host2 host3 host4 host5 host6 } | |
commands = [] | |
hosts.each do |host| | |
handles = Open3.popen2e("echo", "#{host}") #replace with ssh call or whathaveyou | |
handles << host | |
handles = [:input, :output, :thread, :host].zip(handles) | |
commands << Hash[handles] | |
end |