- C-a == Ctrl-a
- M-a == Alt-a
:q close
:w write/saves
:wa[!] write/save all windows [force]
:wq write/save and close
import asyncio | |
import json | |
import os | |
import re | |
from urllib.parse import urlparse | |
import async_timeout | |
import aiohttp | |
import backoff |
import aiohttp | |
import asyncio | |
import json | |
import sys | |
PRODUCT = "firefox" | |
SERVER_URL = "https://buildhub.stage.mozaws.net/v1/buckets/build-hub/collections/releases/search" | |
import simplejson | |
from flask import Flask, g, request | |
from couchdb.design import ViewDefinition | |
import flaskext.couchdb | |
app = Flask(__name__) | |
""" | |
CouchDB permanent view |
#!/usr/bin/env python | |
# When you want a easy way to get at all (or the latest) version of a certain python package from a PyPi index. | |
import sys | |
import logging | |
try: | |
from pip._internal import cmdoptions, main | |
from pip._internal.commands import commands_dict | |
from pip._internal.basecommand import RequirementCommand |
#! /bin/bash | |
# Sometimes downloaded files in OS X contain extended attributes that disallow | |
# the files to be accessed by apache. Nuke the site from orbit. | |
rmextattr() { | |
find . | while read filename | |
do | |
while read attr | |
do | |
echo "removing ${attr} from ${filename}" | |
xattr -d "${attr}" "${filename}" |
#!/bin/sh | |
# macOS coreutils are partially from last century and many usefull stuff isn't working in macOS term when | |
# pasted from yet another up-to-date unix system (which uses recent gnu versions) | |
# orginal from https://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/ | |
# tap'em all | |
brew tap homebrew/boneyard | |
brew tap homebrew/bundle | |
brew tap homebrew/core | |
brew tap homebrew/services |
rd /s /q Display.Optimus | |
rd /s /q Display.NView | |
rd /s /q GFExperience | |
rd /s /q GFExperience.NvStreamSrv | |
rd /s /q GfExperienceService | |
rd /s /q LEDVisualizer | |
rd /s /q Miracast.VirtualAudio | |
rd /s /q MS.NET | |
rd /s /q MSVCRT | |
rd /s /q Network.Service |
grab the original document (and updates) | |
here www.rayninfo.co.uk/tips/zshtips.html |