This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# reload source | |
alias brc="source ~/.config/fish/.bashrc" | |
# open explorer in current folder | |
alias e.="explorer ." | |
# git: log pretty | |
alias gl="git log --oneline --graph" | |
# git: status condensed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// you can write to stdout for debugging purposes, e.g. | |
// console.log('this is a debug message'); | |
// 80% | |
function binary(N) { | |
var half = Math.floor(N / 2); | |
var r = (N % 2).toString(); | |
if(N >= 2) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mpm_prefork_module> | |
StartServers 1 | |
MinSpareServers 1 | |
MaxSpareServers 3 | |
MaxClients 6 | |
MaxRequestsPerChild 0 | |
</IfModule> | |
<IfModule mpm_worker_module> | |
StartServers 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"timestamp":1562760199686,"data":{"ace":[{"timestamp":1562760199686,"stars":36,"forks":6,"issues":0,"repo":"https://github.com/botanicus/ace"}],"acrylamid":[{"timestamp":1562760199686,"stars":288,"forks":42,"issues":45,"repo":"https://github.com/posativ/acrylamid"}],"adm-dev-kit":[{"timestamp":1562760199686,"stars":29,"forks":4,"issues":11,"repo":"https://github.com/iamfrntdv/adm-dev-kit"}],"amsf":[{"timestamp":1562760199686,"stars":218,"forks":117,"issues":6,"repo":"https://github.com/sparanoid/almace-scaffolding"}],"anodize":[{"timestamp":1562760199686,"stars":4,"forks":0,"issues":0,"repo":"https://github.com/sidmani/anodize"}],"antora":[{"timestamp":1562760199686,"followers":559,"stars":165,"forks":63,"issues":121,"repo":"https://gitlab.com/antora/antora"}],"antwar":[{"timestamp":1562760199686,"stars":461,"forks":32,"issues":8,"repo":"https://github.com/antwarjs/antwar"}],"asimov-static":[{"timestamp":1562760199686,"stars":4,"forks":3,"issues":0,"repo":"https://github.com/adamrenklint/asimov-static"}],"as |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var t = function (s, d) { | |
for (var p in d) | |
s = s.replace(new RegExp('{' + p + '}', 'g'), d[p]); | |
return s; | |
}; | |
// usage | |
t('<p>{label1}</p><p>{label2}</p>', { | |
label1: 'Value1' | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--color-alpha: rgb(255, 64, 136); | |
--color-beta: rgb(0, 131, 192); | |
--color-gamma: rgb(51, 186, 145); | |
--color-delta: rgb(252, 216, 4); | |
--color-omega: #f8f9fa; | |
--color-text: #0a1922; | |
--lh: 1.6; | |
--fz: 16px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Redis installation for Ubuntu 16.04 with PHP7 | |
// https://guides.wp-bullet.com/install-redis-object-cache-for-wordpress-php-7-on-ubuntu-16-04/ | |
// https://www.digitalocean.com/community/tutorials/how-to-configure-redis-caching-to-speed-up-wordpress-on-ubuntu-14-04 | |
apt-get update | |
apt install build-essential -y | |
cd /tmp | |
wget http://download.redis.io/redis-stable.tar.gz | |
tar xzf redis* | |
cd redis* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.tecmint.com/optimize-and-compress-jpeg-or-png-batch-images-linux-commandline/ | |
https://blarg.co.uk/blog/recursively-optimize-png-files | |
# install jpegoptim | |
apt-get update | |
apt-get install jpegoptim | |
# install optipng | |
apt-get update | |
apt-get install optipng |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Source: https://www.leejamesrobinson.com/blog/how-stripe-designs-beautiful-websites/ | |
body { | |
font-family: Camphor, Open Sans, Segoe UI, sans-serif; | |
text-rendering: optimizeLegibility; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
} |
NewerOlder