Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
(defsystem :cl-docker | |
:depends-on (:cl-ppcre) | |
:serial t | |
:components ((:file "package") | |
(:file "docker"))) |
FROM debian:stretch | |
WORKDIR /root | |
RUN apt-get update | |
RUN apt-get install -y git openjdk-8-jre curl gpg build-essential apt-transport-https | |
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - | |
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list | |
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - |
#!/bin/bash | |
sudo python -m smtpd -n -c DebuggingServer localhost:25 |
lsof -i tcp:8090 | grep LISTEN |
(defn invoke-private-method [obj fn-name-string & args] | |
(let [m (first (filter (fn [x] (.. x getName (equals fn-name-string))) | |
(.. obj getClass getDeclaredMethods)))] | |
(. m (setAccessible true)) | |
(. m (invoke obj args)))) | |
(defn private-field [obj fn-name-string] | |
(let [m (.. obj getClass (getDeclaredField fn-name-string))] | |
(. m (setAccessible true)) | |
(. m (get obj)))) |
-- > select pluralize(42, 'friend'); | |
-- '42 friends' | |
-- > select pluralize(1, 'ox', 'oxen'); | |
-- '1 ox' | |
-- > select pluralize(32, 'is %s thing', 'are %s things') | |
-- 'are 32 things' | |
-- > select summarize_interval('interval 12.9 seconds') | |
-- '12 seconds' | |
-- > select summarize_interval('interval 3 hours 53 minutes') | |
-- '3 hours' |
$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
$ nano ~/.zshrc
path=('/path/to/depot_tools' $path)
//To fetch a branch, you simply need to: | |
git fetch origin | |
//This will fetch all of the remote branches for you. With the remote branches | |
//in hand, you now need to check out the branch you are interested in, giving | |
//you a local working copy: | |
git checkout -b test origin/test |