sudo adduser deploy
sudo adduser deploy sudo
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
# MIT License | |
# Copyright (c) 2016 Chandler Abraham | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
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
#!/usr/bin/env ruby | |
# gem install yt -v 0.28.0 | |
# echo YOUTUBE_API_KEY > token.txt | |
require 'yt' | |
Yt.configure do |config| | |
config.api_key = File.read('token.txt').chomp | |
end |
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
# Stub commands printing it's name and arguments to STDOUT or STDERR. | |
stub() { | |
local cmd="$1" | |
if [ "$2" == "STDERR" ]; then local redirect=" 1>&2"; fi | |
if [[ "$(type "$cmd" | head -1)" == *"is a function" ]]; then | |
local source="$(type "$cmd" | tail -n +2)" | |
source="${source/$cmd/original_${cmd}}" | |
eval "$source" | |
fi |
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 | |
echo "\n\n--- Killing Stupid Adobe Auto Load Crap ---\n\n" | |
launchctl unload -w /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist | |
launchctl unload -w /Library/LaunchAgents/com.adobe.AAM.Updater-1.0.plist | |
echo "\n\n--- Done! ---\n\n" |
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
names = [ | |
"Pam Halpert-Beesly", | |
"Jim Halpert", | |
"Erin Hannon", | |
"Ryan Howard", | |
"Kelly Kapoor", | |
"Angela Martin", | |
"Oscar Martinez", | |
"Michael Scott", | |
"Dwight Schrute", |
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
# APP-12809 - Data Science: Uncategorized Transactions Amount on P&L | |
# Description | |
# Pre-requisites: | |
# | |
# companies.status = active | |
# billing_infos.full_service = 1 | |
# transactions.post_date = 1/1/17-12/31/17 | |
# category = uncategorized | |
# company_infos.doing_test_mode = false | |
# Columns: |
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
https://stackoverflow.com/questions/105776/how-do-i-restore-a-dump-file-from-mysqldump | |
mysql -p -u [user] [database] < db_backup.dump |
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
use mysql; | |
update user set password=PASSWORD("password") where User='root'; | |
flush privileges; | |
quit |
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
token 5a1c5463268e0819d0f6f73b22fcd3f8de0c63b3 |