Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
# CloudFlare API | |
# | |
# Please install "acme.sh" before runnung this script. | |
# curl https://get.acme.sh/ | sh | |
# | |
export CF_Email="[email protected]" | |
export CF_Key="Your_CloudFlare_API_Key" | |
/root/.acme.sh/acme.sh --issue \ | |
-d $DOMAIN \ |
;; This gist has been superseded by a Github repo, new activity will | |
;; happen at https://github.com/aspiers/etrace | |
;;; etrace.el --- Emacs Lisp Tracer -*- lexical-binding: t -*- | |
;; Released under the MIT license, Copyright Jane Street Group, LLC | |
;; This module modifies the instrumentation profiler included with | |
;; Emacs called "elp" to also record trace events for the beginning | |
;; and end of function calls, and provides a function to write out | |
;; those events in Chromium JSON trace format. | |
;; |
;;; TL;DR | |
(set-face-attribute 'default nil :family "Hack");Must be the FULL name (search-fonts "Hack") for it. | |
(set-face-attribute 'default nil :height (* 13 10));13pt | |
;;; Also see: https://github.com/alphapapa/unpackaged.el#font-compare | |
;;; to easily compare lots of fonts. | |
;;; The purpose of this Gist is to help you select a font you like by trying it out in Emacs. | |
;;; Here is my custom Hack font: https://github.com/equwal/alt-hack0 | |
;;; If you don't have the fonts, you can try: | |
;;; - Your package manager |
(setq initial-scratch-message "") ; とりあえず initial message を消す | |
(add-hook 'kill-emacs-hook 'scratch-save) ; Emacs終了時に *scratch* を保存 | |
(add-hook 'window-setup-hook 'scratch-resume); 起動時に.scratchを読み込み | |
;; window-setup-hook が最後に呼ばれるっぽい | |
;; @see info 38.1.1 Summary: Sequence of Actions at Startup | |
(add-hook 'kill-buffer-hook; *scratch* バッファで kill-buffer したら内容を保存 | |
(lambda () (if (equal (buffer-name) "*scratch*") (scratch-save)))) | |
(add-hook 'after-save-hook ; *scratch*をファイル保存したら、*scratch*復帰 | |
(lambda () (unless (get-buffer "*scratch*") (scratch-resume)))) | |
(defvar scratch-file "~/.emacs.d/.scratch") |
(setq gnus-select-method '(nntp "news.gmane.org")) | |
(setq gnus-thread-sort-functions | |
'(gnus-thread-sort-by-most-recent-number | |
gnus-thread-sort-by-subject | |
(not gnus-thread-sort-by-total-score) | |
gnus-thread-sort-by-most-recent-date)) | |
(setq-default | |
gnus-summary-line-format "%U%R%d %-5,5L %-20,20n %B%-80,80S\n" |
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: statsd | |
# Required-Start: $local_fs $remote_fs $network $syslog | |
# Required-Stop: $local_fs $remote_fs $network $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the statsd node server | |
# Description: starts statsd using nodejs forever |
#!/bin/bash | |
# | |
# Shell script usable as web "server" | |
# Code mostly copied from web, my contribution was to add the sanitation. | |
# | |
### | |
### PARSE THE REQUEST | |
### |
# First do a fresh install of CentOS 5.7 i386, server configuration (no GUI) | |
# This should be performed as root since it's going to be installing a bunch of stuff | |
# --- Update things to make sure we have the latest patches --- | |
# Add EPEL so we can get reasonably recent packages | |
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm | |
# --- Install all the packages --- # | |
yum -y install python-whisper python-carbon graphite-web python-memcached python-ldap httpd memcached |
(defun perltidy () | |
(interactive) | |
(save-excursion | |
(mark-whole-buffer) | |
(shell-command-on-region (point) (mark) "perltidy -q" nil t) | |
(message "Tidied"))) | |
(global-set-key "\C-c t" 'perltidy) |