emacs --daemon to run in the background.
emacsclient.emacs24 <filename/dirname> to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
- Undo -
C-/ - Redo -
C-? - Change case: 1. Camel Case :
M-c2. Upper Case :M-u
- Lower Case :
M-l
| # Default locations | |
| set cache_home = @(echo $XDG_CACHE_HOME)@ | |
| set config_home = @(echo $XDG_CONFIG_HOME)@ | |
| set data_home = @(echo $XDG_DATA_HOME)@ | |
| set prefix = @(echo $PREFIX)@ | |
| set scripts_dir = @data_home/uzbl:@prefix/share/uzbl/examples/data:scripts | |
| # Default variables | |
| set default_mode = insert | |
| set fifo_dir = /tmp |
emacs --daemon to run in the background.
emacsclient.emacs24 <filename/dirname> to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
C-/C-?M-c
2. Upper Case : M-uM-l| #!/usr/bin/env python3 | |
| REPO_FORMAT = 'eepa-{dist}-build' | |
| import sys | |
| import os, os.path | |
| import hashlib | |
| import subprocess | |
| def parse_changes(filename): |
| error_page 400 404 405 =200 @40*_json; | |
| location @40*_json { | |
| default_type application/json; | |
| return 200 '{"code":"1", "message": "Not Found"}'; | |
| } | |
| error_page 500 502 503 504 =200 @50*_json; | |
| location @50*_json { |
| /* Useful celery config. | |
| app = Celery('tasks', | |
| broker='redis://localhost:6379', | |
| backend='redis://localhost:6379') | |
| app.conf.update( | |
| CELERY_TASK_RESULT_EXPIRES=3600, | |
| CELERY_QUEUES=( | |
| Queue('default', routing_key='tasks.#'), |
| # Assuming an Ubuntu Docker image | |
| $ docker run -it <image> /bin/bash |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| #!/usr/bin/env python | |
| ## Tiny Syslog Server in Python. | |
| ## | |
| ## This is a tiny syslog server that is able to receive UDP based syslog | |
| ## entries on a specified port and save them to a file. | |
| ## That's it... it does nothing else... | |
| ## There are a few configuration parameters. | |
| LOG_FILE = 'youlogfile.log' |
| ab -c 100 -n 10000 http://192.168.2.11:8000/ | |
| bjoern 1.1.1 | |
| This is ApacheBench, Version 2.0.41-dev <$Revision: 1.141 $> apache-2.0 | |
| Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
| Copyright (c) 2006 The Apache Software Foundation, http://www.apache.org/ | |
| Benchmarking 192.168.2.11 (be patient) | |
| Completed 1000 requests |
| # Put this in your ~/.gitconfig or ~/.config/git/config | |
| # Windows users: "~" is your profile's home directory, e.g. C:\Users\<YourName> | |
| [user] | |
| name = Your Full Name | |
| email = your@email.tld | |
| [color] | |
| # Enable colors in color-supporting terminals | |
| ui = auto | |
| [alias] | |
| # List available aliases |