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.com
https://*.github.com/*
https://*.github.io
cd $HOME && echo "alias 'ip'='IP=\`dig +short myip.opendns.com @resolver1.opendns.com\` && echo \$IP && echo \$IP | pbcopy'" >> .bash_profile |
<?php | |
// Elimina saltos de líneas y párrafos vacíos entre shortcodes. | |
function wp_fix_shortcodes( $content ){ | |
$array = array ( | |
'<p>[' => '[', | |
']</p>' => ']', | |
']<br />' => ']' | |
); |
# 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 | |
#!/bin/sh | |
STATUS_CODE=`curl -s -o /dev/null -I -w "%{http_code}" "[URL]"` |
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 |
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.com
https://*.github.com/*
https://*.github.io
# linux | |
cat /etc/os-release | |
# unix | |
uname | |
# Darwin: MacOS | |
# Linux: Linux |
/** | |
* | |
* Photos React TSX Component | |
* @module ./components/Photos.tsx | |
* | |
*/ | |
import React from 'react' |
" __ __ _____ _____ ____ _ ______ _____ | |
" \ \ / /\ | __ \|_ _| /\ | _ \| | | ____|/ ____| | |
" \ \ / / \ | |__) | | | / \ | |_) | | | |__ | (___ | |
" \ \/ / /\ \ | _ / | | / /\ \ | _ <| | | __| \___ \ | |
" \ / ____ \| | \ \ _| |_ / ____ \| |_) | |____| |____ ____) | | |
" \/_/ \_\_| \_\_____/_/ \_\____/|______|______|_____/ | |
let theme="farout" | |
" theme list: gruvbox|ayu|pop-punk|fahrenheit|farout |
// 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) { |