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
# Starship default config, extracted from the source | |
# Configure the format of the prompt | |
format = """\ | |
$username\ | |
$hostname\ | |
$shlvl\ | |
$singularity\ | |
$kubernetes\ | |
$directory\ |
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
# Aliases | |
alias ls='ls -hG' | |
alias ll='ls -l' | |
alias la='ls -A' | |
alias lla='ls -lA' | |
alias le='ls -lAeO@' | |
alias cleardns="dscacheutil -flushcache" | |
alias crontab="VIM_CRONTAB=true crontab" | |
alias gl="git log --graph --pretty='format:%C(yellow)%h%Cblue%d%Creset %s %C(white)%an, %ar%Creset'" |
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
sudo aptitude -y install nginx | |
cd /etc/nginx/sites-available | |
sudo rm default | |
sudo cat > jenkins | |
upstream app_server { | |
server 127.0.0.1:8080 fail_timeout=0; | |
} | |
server { | |
listen 80; |
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
# -*- coding:utf-8 -*- | |
from __future__ import unicode_literals | |
class Paginator(object): | |
""" | |
Class that defines a Paginator. | |
""" | |
def __init__(self, current_page, total_pages, boundaries=1, around=0, fail_silently=False): | |
self.fail_silently = fail_silently |
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
# -*- coding: utf-8 -*- | |
from os.path import expanduser | |
from datetime import datetime as day | |
HOME_DIR = expanduser("~") | |
SUBLIME_USER_PREFERENCES_PATH = '/Library/Application Support/Sublime Text 2/Packages/User/Preferences.sublime-settings' | |
class SublimeTheme(object): | |
def __init__(self, path=HOME_DIR + SUBLIME_USER_PREFERENCES_PATH, min_hour=8, max_hour=20): |