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
git branch -m master <BRANCH> | |
git fetch origin | |
git branch -u origin/<BRANCH> <BRANCH> | |
git remote set-head origin -a |
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
#!/usr/bin/env bash | |
############################################################################### | |
## Script to download a list of files from a remote server on AWS EC2. | |
## Requirements are the pem file to connect to the server, the user, and | |
## the servers AWS domain (i.e. EC2 domain name). The goal is to build the | |
## SSH connection string and pass it to SCP. | |
## | |
## The SSH connection string for the EC2 instance should be in the format: |
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
/* | |
* List all the tables in a particular database, excluding some | |
*/ | |
SELECT table_name | |
FROM information_schema.tables | |
WHERE table_schema = '[db name]' | |
AND table_name NOT IN ('table1', 'table2', 'table3') | |
AND table_name NOT LIKE 'another_table_%' | |
AND table_name NOT LIKE '%_some_other_pattern%'; |
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
/** | |
* | |
* The following is specific to macOS | |
* | |
*/ | |
// Create symbolic link with the alias 'subl'. | |
$: ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl | |
// Use from terminal as follows: |
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
/** | |
* | |
* ******* IMPORTANT ******* | |
* This is not a valid composer.json, but | |
* only an example of what to add to the valid | |
* composer.json file in your project. | |
* | |
* The scripts here will run with 'composer install' | |
* or 'composer update' (though be aware that 'composer | |
* update' will update everything defined in the |
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
div[class="row"] { | |
border: 1px dotted rgba(0, 0, 0, 0.5); | |
} | |
div[class^="col-"] { | |
background-color: rgba(255, 0, 0, 0.2); | |
border:1px dotted yellow; | |
} |
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
$url = "http://www.google.com" | |
$log_file = "C:\MyScriptLogs\pwscript.logs" | |
$date = get-date -UFormat "%d/%m/%Y %R" | |
"$date [INFO] Execution of $url" >> $log_file | |
$other_file = "C:\MyScriptLogs\response.log" | |
$request = [System.Net.WebRequest]::Create($url) |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/xenial64" |
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
###### Generic Stuff ###### | |
*.bak | |
*.old | |
*.swp | |
*.log | |
.DS_Store | |
.Trashes | |
Thumbs.db | |
archive/ # old stuff I'm just not ready to toss. | |
notes/ # my dev notes, copy from client, project descriptions, etc. |
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
#RM 11/4/2016 | |
#-------------------------------# | |
# Customize Windows # | |
#-------------------------------# | |
# Setup windows to show hidden files, hidden folders, and system files, show file extensions, and remove file path in title. | |
# See http://boxstarter.org/WinConfig for more info. | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -DisableShowProtectedOSFiles -EnableShowFileExtensions -DisableShowFullPathInTitleBar | |
# Also set options for the taskbar. See http://boxstarter.org/WinConfig for more info. |
NewerOlder