- colorize
- virtualenv
- command-not-found
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
# Set terminal colors | |
set-option -sa terminal-overrides ",xterm*:Tc" | |
# Enable mouse support | |
set -g mouse on | |
# Start windows and panes at 1, not 0 | |
set -g base-index 1 | |
set -g pane-base-index 1 | |
set-window-option -g pane-base-index 1 |
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
theme = catppuccin-mocha | |
adjust-cell-height = 10% | |
command = /bin/zsh -c "tmux new -A -s work" | |
copy-on-select = true | |
font-family = "TX-02" | |
font-size = 16 | |
font-thicken = true | |
mouse-hide-while-typing = true | |
macos-non-native-fullscreen=visible-menu |
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 rgb() method is incomplete. | |
Complete the method so that passing in RGB decimal values will result in a hexadecimal representation being returned. | |
The valid decimal values for RGB are 0 - 255. Any (r,g,b) argument values that fall out of that range should be rounded to the closest valid value. | |
''' | |
def rgb(r, g, b): | |
round = lambda x: min(255, max(x, 0)) | |
return ("{:02X}" * 3).format(round(r), round(g), round(b)) |
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
# http://zshwiki.org/home/zle/bindkeys#reading_terminfo | |
# create a zkbd compatible hash; | |
# to add other keys to this hash, see: man 5 terminfo | |
typeset -A key | |
key[Home]="$terminfo[khome]" | |
key[End]="$terminfo[kend]" | |
key[Insert]="$terminfo[kich1]" | |
key[Backspace]="$terminfo[kbs]" | |
key[Delete]="$terminfo[kdch1]" |
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
{"lastUpload":"2018-04-24T20:13:47.550Z","extensionVersion":"v2.9.0"} |
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
# ~/.profile: executed by the command interpreter for login shells. | |
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login | |
# exists. | |
# see /usr/share/doc/bash/examples/startup-files for examples. | |
# the files are located in the bash-doc package. | |
# the default umask is set in /etc/profile; for setting the umask | |
# for ssh logins, install and configure the libpam-umask package. | |
#umask 022 |
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
# SNAKES GAME | |
# Use ARROW KEYS to play, SPACE BAR for pausing/resuming and Esc Key for exiting | |
import curses | |
from curses import KEY_RIGHT, KEY_LEFT, KEY_UP, KEY_DOWN | |
from random import randint | |
curses.initscr() | |
win = curses.newwin(20, 60, 0, 0) |
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 | |
# /etc/init.d/gunicorn | |
### BEGIN INIT INFO | |
# Provides: gunicorn | |
# Required-Start: $local_fs $remote_fs | |
# Required-Stop: $local_fs $remote_fs | |
# Should-Start: $network | |
# Should-Stop: $network | |
# Default-Start: 2 3 4 5 |
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 | |
SITES_AVAILABLE_DIR=/etc/nginx/sites-available | |
SITES_ENABLED_DIR=/etc/nginx/sites-enabled | |
function print_usage() { | |
echo "nginx-site -e <site name> to enable" | |
echo "nginx-site -d <site name> to disable" | |
} |
NewerOlder