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 | |
usage() { | |
echo "" | |
echo "Raspberry Pi Wi-Fi Configuration Script" | |
echo "=====================================================================" | |
echo "This script stores a secure version of your Wi-Fi network password" | |
echo "and automatically configures your Raspberry Pi to connect to the " | |
echo "provided Wi-Fi network name." | |
echo "" |
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 | |
if [[ "$#" -eq 2 ]]; then | |
TARGET_BRANCH="$1" | |
ID="$2" | |
BRANCH_NAME="PR-${ID}" | |
git checkout $TARGET_BRANCH | |
git branch -D $BRANCH_NAME | |
git fetch upstream pull/$ID/head:$BRANCH_NAME |
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
#-------------------------------------------------- | |
# How to Split git commits | |
#-------------------------------------------------- | |
# Checkout specific commit | |
git cherry-pick <commit> | |
# Reset to previous commit | |
git reset --soft HEAD^ |
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 config --global alias.commits "log --abbrev-commit --pretty=format:'%C(red)%h%Creset -%C(yellow)%d%Creset %s %C(green)%cd (%cr)%Creset %C(bold blue)<%an>%Creset' --date=format:'%a %b %d, %Y %H:%M %p'" |
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 | |
PROXY=<PROXY> | |
BYPASS_PROXY="localhost,127.0.0.1,<BYPASS_PROXY>" | |
ENTERPRISE_GITHUB="<ENTERPRISE_GITHUB>" | |
if [[ "$1" = "on" ]]; then | |
# Configure CLI Proxy Settings for Corporate Network | |
echo -n "Turning on proxy..." |
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
<keymap version="1" name="Sublime Text" parent="Mac OS X 10.5+"> | |
<action id="AddToFavoritesPopup" /> | |
<action id="ChangesView.Diff" /> | |
<action id="CheckinProject" /> | |
<action id="CompareTwoFiles" /> | |
<action id="Console.TableResult.CloneRow" /> | |
<action id="Console.TableResult.NavigateAction"> | |
<keyboard-shortcut first-keystroke="f4" /> | |
</action> | |
<action id="Database.OpenDbStorageAction"> |
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
const jq = document.createElement('script'); | |
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
$ = jQuery.noConflict(); | |
const delay = ms => new Promise(res => setTimeout(res, ms)); | |
var startingIndex = 0; | |
var delayInSeconds = 2; |
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 | |
CONFIG_PATH="${HOME}/.inaudible/" | |
TABLES_PATH="${CONFIG_PATH}/tables/" | |
usage() { | |
echo "Usage: ${BASH_SOURCE[0]} <BOOK_FILE|BOOKS_DIRECTORY>" | |
if [[ ! -z "$1" ]]; then | |
echo "" |
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
# Add new directories to PATH without duplicating on shell reload | |
# e.g. `source ~/.bash<SCRIPT_SUFFIX>` | |
[[ ":$PATH:" =~ ":<PATH_ADDITION>:" ]] || PATH="<PATH_ADDITION>:$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
User sfdxUser = [SELECT Id, Name, TimeZoneSidKey, UserPreferencesLightningExperiencePreferred FROM User WHERE Name='User User' LIMIT 1]; | |
sfdxUser.TimeZoneSidKey = 'America/New_York'; | |
update sfdxUser; |
OlderNewer