Update: As of 11 January 2022, git.io no longer accepts new URLs.
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
| import React from 'react'; | |
| type Props = { | |
| data: Array<[number, string]>; | |
| }; | |
| export default function LineChart({ data }: Props) { | |
| if (!data.length) { | |
| return null; | |
| } |
| FROM composer:latest as composer | |
| COPY src /var/www/html | |
| WORKDIR /var/www/html | |
| ENV COMPOSER_ALLOW_SUPERUSER 1 | |
| RUN composer install && composer dump-autoload | |
| RUN composer require google/cloud-language |
Update: As of 11 January 2022, git.io no longer accepts new URLs.
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.comPermalink: git.io/vps
| Provider | Type | RAM | Cores | Storage | Transfer | Network | Price |
|---|
| alias accio=wget | |
| alias avadaKedavra='rm -f' | |
| alias imperio=sudo | |
| alias priorIncantato='echo `history |tail -n2 |head -n1` | sed "s/[0-9]* //"' | |
| alias stupefy='sleep 5' | |
| alias wingardiumLeviosa=mv | |
| alias sonorus='set -v' | |
| alias quietus='set +v' |
brew install gnupg, pinentry-mac (this includes gpg-agent and pinentry)
Generate a key: $ gpg --gen-key
Take the defaults. Whatevs
Tell gpg-agent to use pinentry-mac:
$ vim ~/.gnupg/gpg-agent.conf
Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');| --- | |
| - hosts: all | |
| vars: | |
| UBUNTU_COMMON_ROOT_PASSWORD: 'xxxxx' | |
| UBUNTU_COMMON_DEPLOY_PASSWORD: 'xxxxx' | |
| UBUNTU_COMMON_LOGWATCH_EMAIL: user@example.com | |
| ubuntu_common_deploy_user_name: deploy | |
| ubuntu_common_deploy_public_keys: | |
| - ~/.ssh/id_rsa.pub |
| # toggle iTerm Dock icon | |
| # add this to your .bash_profile or .zshrc | |
| function toggleiTerm() { | |
| pb='/usr/libexec/PlistBuddy' | |
| iTerm='/Applications/iTerm.app/Contents/Info.plist' | |
| echo "Do you wish to hide iTerm in Dock?" | |
| select ync in "Hide" "Show" "Cancel"; do | |
| case $ync in | |
| 'Hide' ) |
| console.reset = function () { | |
| return process.stdout.write('\033c'); | |
| } |