This file contains hidden or 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 | |
# Set destination folder (change as needed) | |
dest=~/dest | |
# Create destination folder if it doesn't exist | |
mkdir -p "$dest" | |
# Recursively find all files in ~/Messages/Attachments/ | |
find ~/Messages/Attachments/ -type f | while IFS= read -r file; do | |
base=$(basename "$file") |
This file contains hidden or 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
// ==UserScript== | |
// @name Change OTP Field Type | |
// @namespace http://tampermonkey.net/ | |
// @version 1.1 | |
// @description Change the password field for OTP to a standard text field with autocomplete for one-time codes. | |
// @match https://ep.fram.idm.toyota.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { |
This file contains hidden or 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
[global_config] | |
title_transmit_bg_color = "#4c4c4c" | |
title_inactive_fg_color = "#afafaf" | |
title_inactive_bg_color = "#2d2d2d" | |
[keybindings] | |
copy = <Primary>c | |
paste = <Primary>v | |
[profiles] | |
[[default]] | |
palette = "#000000:#f92672:#6cc72c:#fe9720:#5f91ef:#9358fe:#36af90:#8c8c8c:#4c4c4c:#ff80f4:#a7e22e:#ffee99:#5fd9ef:#ae82fe:#66efd5:#c7cece" |
This file contains hidden or 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 | |
# | |
# DESCRIPTION: | |
# | |
# Set the bash prompt according to: | |
# * the active virtualenv | |
# * the branch/status of the current git repository | |
# * the return value of the previous command | |
# * the fact you just came from Windows and are used to having newlines in | |
# your prompts. |
This file contains hidden or 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
""" | |
Generic fabfile.py template for deploying to remote servers. | |
This fabfile is designed to be used as a template when working in environments | |
where the production server may not have access to the primary 'repository' or | |
'staging' server. For example, a small develop may lack a dedicated development | |
or staging server and lack a static-ip or permanent address. | |
Instead of the production server pulling changes from the remote machine, changes | |
are pushed to a bare repository on the server and checked out from there. |
This file contains hidden or 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
# Quick gist of how to generate and place authorized keys | |
ssh-keygen -t rsa | |
ssh [user]@[remote] mkdir -p ~/.ssh | |
cat ~/.ssh/id_rsa.pub | ssh [user]@[remote] 'cat >> ~/.ssh/authorized_keys' | |
ssh [user]@[remote] hostname |
This file contains hidden or 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 Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Espresso Soda</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>settings</key> |
This file contains hidden or 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 Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Monokai Soda</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>settings</key> |
This file contains hidden or 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 | |
NET_DIR="//stevestv.local/portable" | |
TARGET_DIR="/media/wdtv" | |
SOURCE_DIR="/srv/wdtv/" #Include the trailing slash | |
# Exit upon errors | |
set -e | |
# Check if directory exists |
This file contains hidden or 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
function relpath(){ python -c "import os.path; print os.path.relpath('$1','${2:-$PWD}')" ; } |
NewerOlder