- https://learnxinyminutes.com/ Oh a very good quickstarts for many langagues.
https://github.com/manhg/snippets/tree/master/socket_activation
- https://github.com/matryer/bitbar Customize MacOS tray bar
certbot --nginx --non-interactive --quiet --post-hook "systemctl reload nginx" renew |
expires $mime_cache_time; | |
add_header "Cache-Control" $cacheable; | |
location ~ \.(css|js|jpg|png|gif|pdf)$ { | |
log_not_found off; | |
access_log off; | |
} |
https://github.com/twolfson/sublime-hooks | |
on_post_save_async | |
https://www.sublimetext.com/docs/3/api_reference.html#sublime_plugin.EventListener | |
http://docs.sublimetext.info/en/latest/file_processing/build_systems.html |
npm config set loglevel error |
https://github.com/manhg/snippets/tree/master/socket_activation
# Linux server <--> macOS client | |
# ----- Linux | |
apt-get install nfs-kernel-server | |
# /etc/exports | |
# macOS likes insecure | |
/srv/nfs 192.168.64.0/24(rw,async,no_subtree_check,all_squash,anonuid=501,anongid=501,insecure) | |
exportfs -rav |
<!-- thanks to initial source code: http://cognitom.github.io/riot-bootstrap/ --> | |
<calendar> | |
<table> | |
<thead> | |
<tr> | |
<th><btn onclick={ prev }>◁</btn></th> | |
<th colspan="5">{ title }</th> | |
<th><btn onclick={ next }>▷</btn></th> | |
</tr> | |
</thead> |
bind = '127.0.0.1:9300' | |
proc_name = 'app' | |
backlog = 2048 | |
preload_app = True | |
workers = 8 | |
worker_class = 'gevent' # 'sync' | |
worker_connections = 1000 | |
timeout = 30 | |
keepalive = 2 |
server { | |
resolver 127.0.0.1; | |
listen 80; | |
server_name "~^(?P<app_group>\w+)?(?:\.)?(?P<app_name>\w+)-(?P<app_port>\d{4})\.devel$"; | |
root /work/$app_name/public; | |
location / { | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_pass http://localhost:$app_port; | |
proxy_redirect http://localhost:$app_port/ /; |
https://www.sitepoint.com/create-calendar-icon-html5-css3/ |