- Start recording a macro by pressing #C-X (#
- C-x ( : Start recording a macro
- C-x ) : Stop recording a macro
- C-x e : Play last recorded macro
- C-x C-k n : naming a macro
- M-x <macro-name> : run the named
To kill a server instance, just run kill -9 1234
where 1234 is the pid of the server(ps aux | grep jekyll | cut -d" " -f3
)
A mask defines what mask you want to keep, and which bits you want to clear. Masking is the act of applying a mask to a value. This is accomplished by:
Appending vblank_mod=0
to wine
fixed issues when running Proteus like so:
vblank_mode=0 wine .wine/drive_c/Program\ Files\ \(x86\)/Labcenter\ Electronics/Proteus\ 7\ Professional/BIN/ISIS.EXE
Navigate to System > Set Display Options then choose Use Windows GDI Graphics.
File descriptor copying
[x]>&y, [x]<&y
Make FD x
write to/ read from FD y
's stream
Appending file redirection
[x]>>file
Make FD x=
append to end of file
Redirecting standard output and standard error
&>file
Operator | Meaning |
---|---|
${parameter#pattern} | Remove the shortest string that matches the pattern if it’s at the start of the value |
${parameter##pattern} | Remove the longest string that matches the pattern it it’s at the start of value |
${parameter%pattern} | Remove the shortest string that matches the pattern if it’s at the end of the value |
${parameter%%pattern} | Remove the longest string that matches the pattern it it’s at the end of value |
${parameter/pattern/replacement} | Replace the first string that matches the pattern with the replacement |
${parameter//pattern/replacement} | Replace each string that matches the /pattern/with the replacement |
${parameter/#pattern/replacement} | Replace the string that matches the pattern at the beginning of t |
# For installing dependencies to vendor/
composer install
# Spinning up the server
php artisan serve
# Setting up the db
php artisan migrate
php artisan db:seed
Something I wrote from some really weird social challenge on tonguetwisters I've been seing everywhere.
espeak "Tongue Twister challenge with some bit of help. Here goes: The sixth sick sheikh's sixth sheep's sick" --stdout | ffmpeg -i - -vn -acodec libmp3lame -ac 2 -ab 160k -ar 48000 final.mp3
sudo pacman -S x11vnc
x11vnc -display :0 auth ~/.Xauthority
Set up any vnc viewer on the host machine
Finally run:
vncviewer :0
A Pen by Bonface Munyoki on CodePen.