Skip to content

Instantly share code, notes, and snippets.

View FlipperPA's full-sized avatar
🎸
The only CONSTANT in life is change.

Timothy Allen FlipperPA

🎸
The only CONSTANT in life is change.
View GitHub Profile
# The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited
#
# Current known FCC address ranges:
# https://news.ycombinator.com/item?id=7716915
#
# Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft
#
# In your nginx.conf:
location / {
@FlipperPA
FlipperPA / virtualenvwrapper-venv-aliases.sh
Last active June 14, 2023 16:56
Shortcuts for Python 3's venv for virtualenvwrapper users.
export VENV_HOME=~/.venvs
export VENV_PYTHON=/usr/bin/python3.6
fn_workon() {
if [ -f "${VENV_HOME}/${1}/bin/activate" ]; then
export VENV_CURRENT="${VENV_HOME}/${1}"
# Run commands before activation
if [ -f "${VENV_CURRENT}/pre_activate.sh" ]; then
. "${VENV_CURRENT}/pre_activate.sh"
fi
@FlipperPA
FlipperPA / _README.md
Last active March 27, 2023 11:47
At Wharton: Install Office, Only the Applications You Want

First, Download the Deployment Tools

  • Go to: \\wharton.upenn.edu\wcit\technet\MS Products\Microsoft Office\Office 2019 for Windows
  • Download Office_Deployment_Tools_2019_-3_MLF_X22-09817.EXE and run it.
  • Extract it somewhere easy, like ~/Desktop/deployment

Download the XML Configuration File Below

  • Within the folder you extracted to, download configuration.xml from below, and edit the file.
  • In the example file, only Word, Excel, and Outlook will be installed.
---
variables:
GIT_STRATEGY: clone
image: "python:3.8"
before_script:
- python --version
- pip install -r requirements/prod.txt
except:
@FlipperPA
FlipperPA / country_codes.py
Last active July 17, 2021 23:43
Countries Listed by the International Dialing Country Code, as a Python Dict.
country_dialing_codes_by_code = {
1: ["Canada", "Caribbean Nations", "USA"],
7: ["Kazakhstan", "Russia", "Tajikistan", "Uzbekistan"],
20: ["Egypt"],
27: ["South Africa"],
30: ["Greece"],
31: ["Netherlands"],
32: ["Belgium"],
33: ["France", "Monaco"],
34: ["Spain"],