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
INSERT INTO users (id, level) | |
VALUES (1, 0) | |
ON CONFLICT (id) DO UPDATE | |
SET level = users.level + 1; | |
INSERT INTO users (id, email) | |
VALUES (1, [email protected]) | |
ON CONFLICT (id) DO UPDATE | |
SET email = EXCLUDED.email; |
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
{ | |
"scripts": { | |
"postpublish" : "PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') && git tag $PACKAGE_VERSION && git push --tags" | |
} | |
} | |
Where node binary is available: | |
PACKAGE_VERSION=$(node -p -e "require('./package.json').version") |
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
#!/bin/bash | |
# | |
# USAGE: sh whois.sh /path/to/file.txt | |
# RESULT: domain.com ORG_NAME | |
for domain in `cat $1` | |
do | |
# str_domain=${domain#www.} # strip a leading www. |
OlderNewer