Given a table...
CREATE TABLE foo (
id SERIAL PRIMARY KEY,
created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW(),
...
);
Given a table...
CREATE TABLE foo (
id SERIAL PRIMARY KEY,
created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW(),
...
);
git for-each-ref --sort=taggerdate --format '%(tag)%(taggerdate)' | grep 2020 |wc -l |
https://blogs.dropbox.com/tech/ | |
http://www.bash.org/?latest | |
http://www.commitstrip.com/en/? | |
https://www.monkeyuser.com/ | |
https://devrant.com/search?term=joke&sort=algo | |
https://devdojo.com/fun | |
https://www.codemopolitan.com/ | |
https://thecodinglove.com/ |
yes yes |for d in ./*/ ; do (cd "$d" &&terraform init && terraform 0.12upgrade ); done |
#!/bin/bash | |
wget https://dl.pstmn.io/download/latest/linux64 -O postman-linux-x64.tar.gz | |
sudo tar xvzf postman-linux-x64.tar.gz -C /opt | |
sudo ln -s /opt/Postman/Postman /usr/bin/postman | |
cat << EOF > ~/.local/share/applications/postman2.desktop | |
[Desktop Entry] | |
Name=Postman | |
GenericName=API Client |
create-nx-workspace modulename --npm-scope=@modulename | |
ng generate lib components | |
ng generate module atoms --app="components" | |
ng generate module molecules --app="components" | |
ng generate module organisms --app="components" | |
ng generate app hospital-admin --routing | |
npm i -g @storybook/cli@4.0.0-alpha.8 | |
npm i --save-dev babel-core react react-dom | |
ng generate component atoms/input-field --app=components |
Python syntax here : 2.7 - online REPL
Javascript ES6 via Babel transpilation - online REPL
import math
#!/bin/bash | |
yarn global add generator-express-no-stress-typescript | |
yarn global add generator-ts-np |
MEDIA=$1 | |
if [ -z "$MEDIA" ]; then | |
echo "Please enter media name:" | |
read MEDIA | |
fi | |
[ -z "$MEDIA" ] && printf "[error]: %s\n" "Media optiion is required" >&2 && exit 1 ; | |
IMAGE="Fedora-Server-armhfp-26-1.5-sda.raw.xz" | |
TEMP_DIR=$(mktemp -d) | |
TEMP_IMAGE_FILE_PATH="$TEMP_DIR/$IMAGE" | |
curl https://download.fedoraproject.org/pub/fedora/linux/releases/26/Server/armhfp/images/$IMAGE -L -o "$TEMP_IMAGE_FILE_PATH" |
gdb attach $(pidof node)
b v8::internal::Runtime_StackGuard
print 'v8::Isolate::GetCurrent'()
-----------------------------
output: $1=<result>
---------------------
print 'v8::Isolate::TerminateExecution'(<result>)
c