Optional - Set format on save and any global prettier options
npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-node eslint-config-node
############## SPOTIFY - ADS - BEGIN | |
127.0.0.1 media-match.com | |
127.0.0.1 adclick.g.doublecklick.net | |
127.0.0.1 www.googleadservices.com | |
127.0.0.1 pagead2.googlesyndication.com | |
127.0.0.1 googleads.g.doubleclick.net | |
127.0.0.1 pubads.g.doubleclick.net | |
127.0.0.1 securepubads.g.doubleclick.net | |
127.0.0.1 www.omaze.com | |
127.0.0.1 omaze.com |
# Connect to a WPA2 Enterprise network with wpa_supplicant with this .conf file. | |
# I used this to connect to my university's wireless network on Arch linux. | |
# Here's the command I used: | |
# | |
# wpa_supplicant -i wlan0 -c ./wpa_supplicant.conf | |
# | |
network={ | |
ssid="YOUR_SSID" | |
scan_ssid=1 |
#!/bin/bash | |
################################# | |
# Constants / global variables | |
################################# | |
LOGFILE='example.log' | |
LOGLEVEL='INFO' | |
################################# | |
# Functions |
""" | |
A simple proxy server, based on original by gear11: | |
https://gist.github.com/gear11/8006132 | |
Modified from original to support both GET and POST, status code passthrough, header and form data passthrough. | |
Usage: http://hostname:port/p/(URL to be proxied, minus protocol) | |
For example: http://localhost:5000/p/www.google.com | |
""" | |
import re |
exec - Returns last line of commands output
passthru - Passes commands output directly to the browser
system - Passes commands output directly to the browser and returns last line
shell_exec - Returns commands output
\`\` (backticks) - Same as shell_exec()
popen - Opens read or write pipe to process of a command
proc_open - Similar to popen() but greater degree of control
pcntl_exec - Executes a program
#!/bin/sh | |
set -u | |
set -e | |
umask 0077 | |
prefix="/opt/openssh" | |
top="$(pwd)" | |
root="$top/root" | |
build="$top/build" |
#!/usr/bin/env bash | |
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done | |
git fetch --all | |
git pull --all |