Skip to content

Instantly share code, notes, and snippets.

View inoperable's full-sized avatar
💣
RTFM || GTFO

inoperable inoperable

💣
RTFM || GTFO
  • REDACTED
  • REDACTED
  • 02:06 (UTC +02:00)
View GitHub Profile
import aiohttp
import asyncio
import json
import sys
PRODUCT = "firefox"
SERVER_URL = "https://buildhub.stage.mozaws.net/v1/buckets/build-hub/collections/releases/search"
@inoperable
inoperable / app.py
Created November 19, 2018 22:01 — forked from leplatrem/app.py
Simple Flask-couchdb demo
import simplejson
from flask import Flask, g, request
from couchdb.design import ViewDefinition
import flaskext.couchdb
app = Flask(__name__)
"""
CouchDB permanent view
@inoperable
inoperable / list-pkg-versions.py
Created November 19, 2018 14:55 — forked from kaos/list-pkg-versions.py
pip list available package versions
#!/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
@inoperable
inoperable / rmextattr.sh
Created November 21, 2017 00:58
Recursively remove extended file attributes in OS X
#! /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}"
@inoperable
inoperable / gnu-macos.sh
Created September 1, 2017 20:11
install updated gnu versions of coreutils and shell commands from this decade (and not previous century)
#!/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
@inoperable
inoperable / vim_cheatsheet.md
Created August 31, 2017 11:11 — forked from awidegreen/vim_cheatsheet.md
Vim shortcuts

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@inoperable
inoperable / nvidia.cmd
Created August 19, 2017 07:25 — forked from CHEF-KOCH/nvidia.cmd
Remove nVidia 'Bloatware' Batch
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
@inoperable
inoperable / zsh cheat sheet
Last active May 4, 2017 18:55
zsh tips by example
grab the original document (and updates)
here www.rayninfo.co.uk/tips/zshtips.html
@inoperable
inoperable / .eslintrc.js
Created March 22, 2017 00:04 — forked from nkbt/.eslintrc.js
Strict ESLint config for React, ES6 (based on Airbnb Code style)
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react"],
"ecmaFeatures": {