start new:
tmux
start new with session name:
tmux new -s myname
DECLARE | |
_name text; | |
BEGIN | |
FOR _name IN SELECT column_name FROM information_schema.Columns WHERE table_schema = TG_TABLE_SCHEMA AND table_name = TG_TABLE_NAME LOOP | |
RAISE NOTICE 'Column is %', _name; | |
END LOOP; | |
RETURN NEW; | |
END |
################### | |
# compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.pdb | |
*.dll.config | |
*.cache |
# Redis configuration file example | |
# Note on units: when memory size is needed, it is possible to specify | |
# it in the usual form of 1k 5GB 4M and so forth: | |
# | |
# 1k => 1000 bytes | |
# 1kb => 1024 bytes | |
# 1m => 1000000 bytes | |
# 1mb => 1024*1024 bytes | |
# 1g => 1000000000 bytes |
# A VirtualBox bug forces vagrant to serve | |
# corrupt files via Apache or nginx | |
# The solution to that would be to turn off | |
# the SendFile option in apache or nginx | |
# | |
# If you use apache as your main web server | |
# add this directive in your httpd.conf (or apache.conf) | |
# configuration file name may vary in various systems | |
# | |
EnableSendfile off |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
This is a quick tutorial explaining how to get a static website hosted on Heroku.
Why do this?
Heroku hosts apps on the internet, not static websites. To get it to run your static portfolio, personal blog, etc., you need to trick Heroku into thinking your website is a PHP app. This 6-step tutorial will teach you how.
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
var viewer = new Cesium.Viewer('cesiumContainer', { | |
targetFrameRate: 60, | |
homeButton: false, | |
sceneModePicker: false, | |
navigationHelpButton: false, | |
baseLayerPicker: false, | |
clock: new Cesium.Clock({ | |
startTime: Cesium.JulianDate.fromIso8601('1880-01-01'), | |
currentTime: Cesium.JulianDate.fromIso8601('1880-01-01'), | |
stopTime: Cesium.JulianDate.fromIso8601("2013-12-01"), |