Edit /etc/pacman.conf
:
Under the # Misc options
section, remove the #
in front of Color
and add the line ILoveCandy
. Because Pac-Man loves candy.
# sourcing this file will define a bash functions that | |
# tries to run subsequent calls to emacs with 24 bit color. | |
# | |
# It sets TERM to xterm-24bit if we're running in iTerm2 | |
# and we've created a user-local terminfo record for xterm-24bit | |
# | |
# This will cause emacs to use 24 bit color only when it will work, | |
# inside or outside of tmux | |
# | |
# details: https://gist.github.com/XVilka/8346728 |
SPC | |
SPC: find file | |
, switch buffer | |
. browse files | |
: MX | |
; EX | |
< switch buffer | |
` eval | |
u universal arg | |
x pop up scratch |
-- This file creates a colorscheme from aleady available colorscheme | |
-- Author : Shadman Saleh | |
-- Licence : You can do whatever you want with it but do provide proper cradit | |
-- Uses : | |
-- 1. Copy this script to any &rtp/lua folder mostlikely ~/.config/nvim/lua | |
-- so the script can be required | |
-- 2. Eun :lua require('colorscheme_genarator').create('colorscheme_name', load_colorscheme) | |
-- colorscheme_name is the name of colorzcheme load_colorscheme is a boolean |
function string.fromhex(str) | |
return (str:gsub('..', function (cc) | |
return string.char(tonumber(cc, 16)) | |
end)) | |
end | |
function string.tohex(str) | |
return (str:gsub('.', function (c) | |
return string.format('%02X', string.byte(c)) | |
end)) |
/* warp speed ahead */ | |
.animClass { | |
-webkit-transform: translate3d(0, 0, 0); | |
/* more specific animation properties here */ | |
} | |
/* | |
The use of translate3d pushes CSS animations into hardware acceleration. | |
Even if you're looking to do a basic 2d translation, use translate3d for more power! | |
If your animation is still flickering after switching to the transform above, |
docker logs nginx 2>&1 | grep "127." | |
# ref: http://stackoverflow.com/questions/34724980/finding-a-string-in-docker-logs-of-container |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
// Compile with e.g. `gcc -o /tmp/eatmem /tmp/eatmem.c` | |
#include <errno.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#define DEFAULT_SLEEP_SECONDS 600 | |
#define DEFAULT_ALLOC_MB 1024 |