Skip to content

Instantly share code, notes, and snippets.

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

inoperable inoperable

💣
RTFM || GTFO
  • REDACTED
  • REDACTED
  • 20:10 (UTC +02:00)
View GitHub Profile
@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": {
@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 / 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 / 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 / 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 / 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
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 / mirror_archives.py
Created November 19, 2018 22:01 — forked from leplatrem/mirror_archives.py
mirror_archives.py
import asyncio
import json
import os
import re
from urllib.parse import urlparse
import async_timeout
import aiohttp
import backoff