most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat
#/bin/bash | |
# The -w is using a DESTRUCTIVE WRITE TEST | |
sudo badblocks -v -s -w /dev/mmcblk0 |
#!/bin/bash | |
# sudo apt-get install nodejs npm | |
sudo npm install -g qrcode-terminal | |
# Then qrcode-terminal with whatever args will be used for the QR Code data |
#!/bin/bash | |
# Download from | |
# https://www.anaconda.com/download/ | |
curl -O https://repo.continuum.io/archive/Anaconda3-2018.12-Linux-x86_64.sh | |
bash Anaconda3-2018.12-Linux-x86_64.sh | |
~/anaconda3/bin/conda create -n py35 python=3.5 tensorflow ipython | |
# Then just hit enter through the install add the following to ur zshrc | |
# | |
# export PATH=$HOME/anaconda3/bin/:$PATH | |
# source $HOME/anaconda3/etc/profile.d/conda.sh |
{ | |
"match_brackets_angle": true, | |
"always_prompt_for_file_reload": true, | |
"auto_complete": true, | |
"auto_complete_commit_on_tab": true, | |
"auto_complete_cycle": true, | |
"auto_complete_delay": 30, | |
"auto_complete_with_fields": true, | |
"auto_find_in_selection": true, | |
"binary_file_patterns": |
# Just goto System Prefernces keyboard and drag key repeat until and delay all the way to the right | |
#defaults write -g InitialKeyRepeat -int 15 # default minimum is 15 (225 ms) | |
#defaults write -g KeyRepeat -int 3 # default minimum is 2 (30 ms) | |
#defaults write NSGlobalDomain KeyRepeat -int 1 | |
echo "Show Path bar in Finder" | |
defaults write com.apple.finder ShowPathbar -bool true |
import threading, logging, traceback | |
import sys, time | |
class LiveThread(threading.Thread): | |
def __init__(self, function_to_quit_the_process, thread_wait_in_seconds=1, | |
clean_up_wait_in_seconds=1, group=None, target=None, name="LiveThread", | |
args=(), kwargs={}, verbose=None, clean_up=None): | |
threading.Thread.__init__(self, group=group, target=target, name=name, | |
args=args, kwargs=kwargs, verbose=verbose) | |
self._function_to_quit_the_process = function_to_quit_the_process |
/* | |
To inspect Slack elements using Chrome Dev tools: | |
export SLACK_DEVELOPER_MENU=true | |
open /Applications/Slack.app |
# Reference: | |
https://www.cloudgear.net/blog/2015/5-minutes-kubernetes-setup/ | |
# install homebrew and cask | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# install virtualbox | |
brew cask install virtualbox | |
# install dockertoolbox |