One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| # http://editorconfig.org | |
| root = true | |
| [*] | |
| charset = utf-8 | |
| end_of_line = lf | |
| insert_final_newline = true | |
| trim_trailing_whitespace = true |
| #!/usr/bin/env python3 | |
| # Clone or update all a user's gists | |
| # curl -ks https://gist.githubusercontent.com/SerhatTeker/3b9bd9c5add01730f67ee5458db13b2e/raw/a4de62633a8818580d37114b20efbd576388413d/backup-gist.sh | bash | |
| # curl -ks https://gist.githubusercontent.com/SerhatTeker/3b9bd9c5add01730f67ee5458db13b2e/raw/a4de62633a8818580d37114b20efbd576388413d/backup-gist.sh | USER=serhatteker bash | |
| from __future__ import absolute_import | |
| from __future__ import division | |
| from __future__ import print_function | |
| from __future__ import unicode_literals |
| # Usage Example: $ ddl-gist 'https://gist.github.com/4137843' ~/Downloads/gists | |
| # save the gist files at that URL in ~/Downloads/gists | |
| ## | |
| ddl_gist(){ | |
| if [ $# -ne 2 ]; | |
| then | |
| echo 'Failed. Syntax: $> ddl-gist GITHUB_GIST_URL DOWNLOAD_PATH' | |
| return | |
| fi |
| import re | |
| import collections | |
| def count_words(sentence): | |
| word_list = re.findall(r"[\da-zA-Z]+(?:\'[\da-zA-Z]+)?", sentence.lower()) | |
| return collections.Counter(word_list) | |
| # Alternative |
| # If a virtualenv with name of .venv, load it. | |
| auto-venv() { | |
| if [ -z "$VIRTUAL_ENV" ]; then | |
| if [ -d .venv/ ]; then | |
| source .venv/bin/activate | |
| fi | |
| fi | |
| } |
| #!/usr/bin/env bash | |
| # Bash safeties: exit on error, no unset variables, pipelines can't hide errors | |
| set -o errexit | |
| set -o nounset | |
| set -o pipefail | |
| # INFO | |
| # -------------------------------------------------------------------------------------- | |
| # A shell script that downloads and installs Python on an Ubuntu host |
| #!/usr/bin/env bash | |
| # -*- coding: utf-8 -*- | |
| # vim: set ft=sh et ts=4 sw=4 sts=4: | |
| # INFO | |
| # -------------------------------------------------------------------------------------- | |
| # Free up disk space on Debian, Ubuntu - clean log, cache, archive packages/apt archives, | |
| # orphaned packages, old kernel and remove the trash | |
| # | |
| # Gist repo: |
| colors: | |
| # Default colors | |
| primary: | |
| background: '0x1e2127' | |
| foreground: '0xabb2bf' | |
| # Bright and dim foreground colors | |
| # | |
| # The dimmed foreground color is calculated automatically if it is not present. |