h - Move left
j - Move down
k - Move up
l - Move right
$ - Move to end of line
0 - Move to beginning of line (including whitespace)
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
<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<dir>~/.fonts</dir> | |
<!-- | |
System note: | |
Place file in local user directory $HOME/.font.conf | ~/.font.conf | |
The file is a directive read through /etc/fonts/font.conf (do not modify) | |
Documented at | |
http://linux.die.net/man/5/fonts-conf |
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
{ | |
"folders": | |
[ | |
{ | |
"follow_symlinks": true, | |
"path": ".", | |
"folder_exclude_patterns": | |
[ | |
"bin", | |
"include", |
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 | |
set -o errexit | |
echo "Removing exited docker containers..." | |
docker ps -a -f status=exited | grep ^data | awk '{print $1}' | xargs -r docker rm -v | |
#docker ps -a -f status=exited -q | xargs -r docker rm -v | |
echo "Removing dangling images..." | |
docker images --no-trunc -q -f dangling=true | xargs -r docker rmi |
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
# To work, link this file to your .bashrc file | |
# Add colors to man pages | |
export LESS_TERMCAP_mb=$'\E[01;31m' # enter blinking mode | |
export LESS_TERMCAP_md=$'\E[01;31m' # enter double-bright mode | |
export LESS_TERMCAP_me=$'\E[0m' # turn off all appearance modes (mb, md, so, us) | |
export LESS_TERMCAP_se=$'\E[0m' # leave standout mode | |
export LESS_TERMCAP_so=$'\E[01;44;33m' # enter standout mode – yellow | |
export LESS_TERMCAP_ue=$'\E[0m' # leave underline mode | |
export LESS_TERMCAP_us=$'\E[01;32m' # enter underline mode |
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
package main | |
import ( | |
"fmt" | |
"time" | |
"sync" | |
) | |
type Fetcher interface { | |
// Fetch returns the body of URL and |
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
# importing the necessary packages | |
import time | |
import sys | |
import os | |
# Function for implementing the loading animation | |
def load_animation(): | |
# String to be displayed when the application is loading | |
load_str = "starting your console application..." |
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
import sys | |
import time | |
def spinning_cursor(): | |
while True: | |
for cursor in '|/-\\': | |
yield cursor | |
spinner = spinning_cursor() | |
for _ in range(50): |