Command:
curl https://git.io/ -i -F "url=https://github.com/YOUR_GITHUB_URL" -F "code=YOUR_CUSTOM_NAME"URLs that can be created is from:
https://github.com/*https://*.github.comhttps://*.github.com/*https://*.github.io
| <script lang="ts"> | |
| // svelte | |
| import { page } from '$app/stores'; | |
| // custom components | |
| import { AddSquareButton } from '@components/custom'; | |
| // parts | |
| import { | |
| FoodItem, |
| # [Node] | |
| NODE_ENV="development" | |
| # [Sequelize] | |
| DB_DIALECT="mysql" | |
| # [Database] | |
| DB_HOST="127.0.0.1" | |
| DB_PORT="3306" | |
| DB_DATABASE="db_backend" |
| // 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... | |
| const fibonacci = function* () { | |
| let n1 = 0 | |
| let n2 = 1 | |
| yield n1 | |
| yield n2 | |
| while (true) { |
| " __ __ _____ _____ ____ _ ______ _____ | |
| " \ \ / /\ | __ \|_ _| /\ | _ \| | | ____|/ ____| | |
| " \ \ / / \ | |__) | | | / \ | |_) | | | |__ | (___ | |
| " \ \/ / /\ \ | _ / | | / /\ \ | _ <| | | __| \___ \ | |
| " \ / ____ \| | \ \ _| |_ / ____ \| |_) | |____| |____ ____) | | |
| " \/_/ \_\_| \_\_____/_/ \_\____/|______|______|_____/ | |
| let theme="farout" | |
| " theme list: gruvbox|ayu|pop-punk|fahrenheit|farout |
| /** | |
| * | |
| * Photos React TSX Component | |
| * @module ./components/Photos.tsx | |
| * | |
| */ | |
| import React from 'react' |
| # linux | |
| cat /etc/os-release | |
| # unix | |
| uname | |
| # Darwin: MacOS | |
| # Linux: Linux |
Command:
curl https://git.io/ -i -F "url=https://github.com/YOUR_GITHUB_URL" -F "code=YOUR_CUSTOM_NAME"URLs that can be created is from:
https://github.com/*https://*.github.comhttps://*.github.com/*https://*.github.io| DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | |
| # from https://stackoverflow.com/questions/59895/get-the-source-directory-of-a-bash-script-from-within-the-script-itself |
| #!/bin/sh | |
| STATUS_CODE=`curl -s -o /dev/null -I -w "%{http_code}" "[URL]"` |
| # 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 | |