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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"route53:GetChange", | |
"route53:ListHostedZones", | |
"route53:ListHostedZonesByName", | |
"route53:GetHostedZoneCount" |
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
tell application id "DNtp" | |
try | |
set this_selection to the selection | |
set this_count to count of this_selection | |
if this_count > 0 then | |
show progress indicator "Removing URL" steps this_count | |
repeat with this_item in this_selection | |
set the URL of this_item to "" | |
end repeat | |
hide progress indicator |
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
(* | |
OopsieFocus | |
A script to launch OmniFocus and activate the Quick Entry Panel | |
By Shawn Blanc (http://shawnblanc.net) | |
May 20, 2011 | |
With code used from the Toggle Twitter script by Red Sweater Software: | |
http://www.red-sweater.com/blog/1646/toggle-twitter |
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
tell application id "DNtp" | |
try | |
set this_selection to the selection | |
set this_count to count of this_selection | |
if this_count > 0 then | |
show progress indicator "Renaming" steps this_count | |
repeat with this_item in this_selection | |
set this_metadata to meta data of this_item | |
try | |
set this_title to |kMDItemTitle| of this_metadata |
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
on iTermIsRunning() | |
tell application "System Events" | |
return (count of (application processes whose name is "iTerm2")) is not 0 | |
end tell | |
end iTermIsRunning | |
if iTermIsRunning() then | |
tell application "iTerm" | |
activate | |
create window with default profile |
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
# e.g. host2j google.com [..] TRUST | |
# e.g. jhostset google.com [..] google-servers TRUST | |
function host2j() | |
{ | |
ZONENAME="${@: -1}" | |
for HOSTNAME in "$@" | |
do | |
if [ "$HOSTNAME" != "$ZONENAME" ] | |
then |
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 | |
# printer options | |
PRINTER_NAME=${PRINTER_NAME:=} | |
PRINT_SERVER=${PRINT_SERVER:=} | |
# driver options | |
# DRIVER_PKG it will be silently installed and inform DRIVER_PATH | |
DRIVER_PKG=${DRIVER_PKG:=} | |
DRIVER_PATH=${DRIVER_PATH:=} |
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
{ | |
"interfaces":{ | |
"ethernet":{ | |
"eth0":{ | |
"pppoe":{ | |
"0":{ | |
"ipv6":{ | |
"address":{ | |
"autoconf":"''" | |
}, |
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/sh | |
date=$(date) | |
load=$(cat /proc/loadavg | awk '{print $1}') | |
root_usage=$(df -h / | awk '/\// {print $(NF-1)}') | |
memory_usage=$(free -m | awk '/Mem/{printf("%3.1f%%"), $3/$2*100}') | |
swap_usage=$(free -m | awk '/Swap/{printf("%3.1f%%"), $3/$2*100}') | |
users=$(users | wc -w) | |
time=$(uptime | awk -F'( |,|:)+' '{print $6,$7",",$8,"hours,",$9,"minutes"}') | |
processes=$(ps aux | wc -l) |
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
# Written for use in atom :: https://atom.io/ | |
# Regex in the format "First_Name Other_Names (Company) <email@address>" | |
(\w+)\s([\w\s']+)\s\(([^\)]+)\)\s<([^>]+)>,\s | |
# CSV Header | |
Name,Given Name,Additional Name,Family Name,Yomi Name,Given Name Yomi,Additional Name Yomi,Family Name Yomi,Name Prefix,Name Suffix,Initials,Nickname,Short Name,Maiden Name,Birthday,Gender,Location,Billing Information,Directory Server,Mileage,Occupation,Hobby,Sensitivity,Priority,Subject,Notes,Group Membership,E-mail 1 - Type,E-mail 1 - Value,Organization 1 - Type,Organization 1 - Name,Organization 1 - Yomi Name,Organization 1 - Title,Organization 1 - Department,Organization 1 - Symbol,Organization 1 - Location,Organization 1 - Job Description | |
# Replacement | |
"$1 $2","$1",,"$2",,,,,,,,,,,,,,,,,,,,,,,"* My Contacts ::: Cyber","* Work","$4",,"$3",,,,,,\n |
OlderNewer