Programs
are composed ofmodules
,Modules
containstatements
,Statements
containexpressions
,Expressions
create and processobjects
.
This file contains hidden or 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
{ | |
"dependencies": { | |
"@sveltejs/adapter-node": "^1.2.3", | |
"@sveltejs/kit": "1.10.0", | |
"@sveltekit-i18n/base": "^1.2.1", | |
"@sveltekit-i18n/parser-default": "^1.0.3", | |
"autoprefixer": "^10.4.14", | |
"clean-redirect": "^1.0.0", | |
"computed-style-to-inline-style": "^3.0.0", | |
"cssnano": "^5.1.15", |
This file contains hidden or 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
#!/bin/sh | |
find /search/path/ -type f -not -path '*/.git/*' | LANG=C LC_ALL=C LC_CTYPE=C xargs sed -i '' -e 's/before/after/g' |
This file contains hidden or 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
echo "local.random.diceroll 4 `date +%s`" | nc localhost 2003 |
This file contains hidden or 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
# oops merge went bad! | |
git reset --hard HEAD |
This file contains hidden or 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
# Checkout remote branch and track (without renaming needs) | |
git fetch origin | |
git checkout --track origin/branchname |
This file contains hidden or 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
# overwrite master with contents of seotweaks branch (seotweaks > master) | |
git checkout seotweaks # source name | |
git merge -s ours master # target name | |
git checkout master # target name | |
git merge seotweaks # source name |
This file contains hidden or 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
# find what's on port 80 | |
sudo lsof -i :80 |
This file contains hidden or 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
#!/usr/bin/env node | |
var fs = require('fs'), | |
geoip = require('geoip-lite'), | |
filename = process.argv[2] || 'access.log', | |
byHour = {}; // storage hash | |
console.log('! loading ', filename); | |
fs.readFile(filename, function(error, data) { |
NewerOlder