https://stackoverflow.com/a/4421674/1849597
On macOS Big Sur and later, use this command:
| javascript:{var f=document.getElementById('frm');f.cardholderName.value='VISA TEST';f.cardNo.value='4012001037141112';f.paymentCard.selectedIndex=0;f.year.selectedIndex=2;f.cvv.value='111';void(0);} |
| # updated version here: https://gist.github.com/garystafford/8196920 | |
| # loosely based on post from ArchWiki and Alan Pope | |
| # https://wiki.archlinux.org/index.php/proxy_settings | |
| # this is alternative to git config | |
| # configure proxy for git while on corporate network | |
| function proxy_on(){ | |
| read -s -p "Enter Password: " PASSWORD | |
| export PROXY_SERVER=my_proxy |
https://stackoverflow.com/a/4421674/1849597
On macOS Big Sur and later, use this command:
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>Camera</title> | |
| </head> | |
| <body> | |
| <video id="camera" autoplay playsinline></video> | |
| <script> | |
| const videoElement = document.getElementById("camera"); |
###While this script does concatenate pdf files, I haven't yet figured out in which order it does so. On a sample of 19 pdf files, logically named 01something.pdf, 02something.pdf, 03something.pdf, etc. the order of the merged product seemed almost random...
...from Tiger onwards, OSX ships with a Python script that concatenates pdf files (merges them together). The script is already executable, and Python is pre-installed on OS X, so all you need to do is point it at your pdf files and run
"/System/Library/Automator/Combine PDF Pages.action/Contents/Resources/join.py" -o PATH/TO/YOUR/MERGED/FILE.pdf /PATH/TO/ORIGINAL/1.pdf /PATH/TO/ANOTHER/2.pdf /PATH/TO/A/WHOLE/DIR/*.pdfI prefer putting the link in /usr/local/bin, as it is in the $PATH and therefore I can run the command from anywhere. To set up the link, you need to navigate to the directory where you want the link.
A lot of GitHub projects need to have pretty math formulas in READMEs, wikis or other markdown pages. The desired approach would be to just write inline LaTeX-style formulas like this:
$e^{i \pi} = -1$Unfortunately, GitHub does not support inline formulas. The issue is tracked here.
| #!/bin/bash | |
| ### | |
| # brew install upx | |
| ### | |
| color=46; | |
| if [ $# -eq 0 ]; then | |
| echo "[USAGE] gotiny [filename.go]" | |
| echo "----------------------------" |
| package main | |
| import ( | |
| "net/http" | |
| "log" | |
| ) | |
| func redirect(w http.ResponseWriter, req *http.Request) { | |
| // remove/add not default ports from req.Host | |
| target := "https://" + req.Host + req.URL.Path | |
| if len(req.URL.RawQuery) > 0 { |
This is not an exhaustive list of all interfaces in Go's standard library.
I only list those I think are important.
Interfaces defined in frequently used packages (like io, fmt) are included.
Interfaces that have significant importance are also included.
All of the following information is based on go version go1.8.3 darwin/amd64.