$argon2id$v=19$m=64,t=512,p=2$DGsBCuBynJcMNZ2WRDzJhA$amIftiHhfifantvvOBRhLA
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
cd /path/to/your/repo | |
curl https://gist.githubusercontent.com/johnhamelink/577b8613ae82d2b3037b/raw/ad71fb72a1b86ee9a90ac62eccc4a55367578625/pre-push.sh > .git/hooks/pre-push | |
chmod u+x .git/hooks/pre-push |
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
PID_FILE=~/.cache/mullvad-status-pid | |
SUCCESS_HOOK=1 | |
SHUTDOWN_HOOK=1 | |
finish() { | |
echo "Shutting down..." | |
rm $PID_FILE | |
rm $CACHE_FILE |
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 | |
SMBUSERNAME="macuser" | |
SMBPASSWORD="X*aHm7qNUg1)" | |
SMBMOUNT="/Volumes/Test/" | |
SMBSHARE="OfficeDoc$" | |
SMBHOST="192.168.140.20" | |
rm -rf $SMBMOUNT | |
mkdir $SMBMOUNT |
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 'rubygems' | |
require 'bundler/setup' | |
require 'faraday' | |
require 'pry' | |
require 'json' | |
@conn = Faraday.new(url: 'https://api.papajohns.co.uk') do |faraday| | |
faraday.adapter Faraday.default_adapter | |
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
# config file for ansible -- http://ansible.com/ | |
# ============================================== | |
# nearly all parameters can be overridden in ansible-playbook | |
# or with command line flags. ansible will read ANSIBLE_CONFIG, | |
# ansible.cfg in the current working directory, .ansible.cfg in | |
# the home directory or /etc/ansible/ansible.cfg, whichever it | |
# finds first | |
[defaults] |
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 | |
album=`dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'|egrep -A 2 "album"|egrep -v "album"|egrep -v "array"|cut -b 44-|cut -d '"' -f 1|egrep -v ^$` | |
artist=`dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'|egrep -A 2 "artist"|egrep -v "artist"|egrep -v "array"|cut -b 27-|cut -d '"' -f 1|egrep -v ^$` | |
title=`dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'|egrep -A 1 "title"|egrep -v "title"|cut -b 44-|cut -d '"' -f 1|egrep -v ^$` | |
echo $artist " - " $album " - " $title; |
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
namespace :db do | |
task ice_cube_test: :environment do | |
CSV.open("out.csv", "wb") do |csv| | |
Event.all.each do |event| | |
repeatable = event.repeatables.first | |
if repeatable.nil? | |
puts "Bad Event: #{event.id}. No Repeatable." | |
csv << [event.id, nil, nil, 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
<Field name="color" label="T-Shirt Color" component={renderSelectField}> | |
<option></option> | |
<option value="Black">Black</option> | |
<option value="Charcoal">Charcoal</option> | |
<option value="Chocolate Brown">Chocolate Brown</option> | |
<option value="Grey Heather">Grey Heather</option> | |
<option value="Maroon">Maroon</option> | |
<option value="Military Green">Military Green</option> | |
<option value="Natural">Natural</option> | |
<option value="Navy">Navy</option> |
NewerOlder