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
export LD_LIBRARY_PATH="/usr/lib/plexmediaserver" | |
export LANG="en_US.UTF-8" | |
export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS="6" | |
export PLEX_MEDIA_SERVER_TMPDIR="/tmp" | |
export PLEX_MEDIA_SERVER_HOME="/usr/lib/plexmediaserver" | |
export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/config/Library/Application Support" |
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 |
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
{ | |
"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/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
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
tell application "Google Chrome" | |
tell front window | |
activate | |
if URL of active tab is not equal to "chrome://newtab/" then | |
make new tab at end of tabs | |
end if | |
end tell | |
end tell |
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
-- Import Pinboard bookmarks | |
-- Created by Christian Grunenberg on Mon Jan 23 2006. | |
-- Modified by Rafael Bugajewski to support Pinboard instead of Delicious on Sun Dec 19 2010. | |
-- Modified by Andreas Zeitler on Sun Mar 03 2011 to display user feedback when finished | |
-- Modified by Mitchell Hewes on 2017-04-03 to archive bookmarks as PDF documents | |
-- Copyright (c) 2006-2014. All rights reserved. | |
-- If the properties pUser and pPassword are undefined then a dialog pops up asking for these properties | |
property pUser : "" | |
property pPassword : "" |
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 |