Skip to content

Instantly share code, notes, and snippets.

View corcoran's full-sized avatar

Jeff Corcoran corcoran

View GitHub Profile
@corcoran
corcoran / crowdin.py
Created July 13, 2017 16:40
CrowdIn translations Android helper
#!/usr/bin/env python
import os
import shutil
import zipfile
# Fully translated only
translation_mapping = {
'cs': 'cs',
'de': 'de',
@corcoran
corcoran / admin.py
Last active April 15, 2022 07:39
Modify Inline FormSet in Django Admin after validation and before save
class InlineScreenshotFormSet(forms.models.BaseInlineFormSet):
def clean(self):
index = 0
for error in self._errors:
# If inline 'title' field is empty, fetch title from parent instead
if 'title' in error:
del self._errors[index]['title']
self.forms[index].instance.title = self.data['title']
self.forms[index].cleaned_data['title'] = self.data['title']
2g1c
2 girls 1 cup
4r5e
anal
anus
arse
ass
asses
assfucker
assfukka
@corcoran
corcoran / pa-vol-down.sh
Created August 15, 2019 21:54
Pulseaudio vol mute/up/down scripts -- uses current sink -- let's you go above 100% volume. Relies on internal volume daemons for notifications (xfce4-volumed, etc)
#!/bin/bash
pactl -- set-sink-volume `pacmd stat | awk -F": " '/^Default sink name: /{print $2}'` -5%
import Vue from 'vue';
Vue.component('v-alert', {});
Vue.component('v-app', {});
Vue.component('v-autocomplete', {});
Vue.component('v-avatar', {});
Vue.component('v-badge', {});
Vue.component('v-bottom-nav', {});
Vue.component('v-bottom-sheet', {});
Vue.component('v-breadcrumbs', {});
@corcoran
corcoran / delete-evicted-pods-all-namespaces.sh
Created December 11, 2018 21:04 — forked from psxvoid/delete-evicted-pods-all-namespaces.sh
Delete evicted pods from all namespaces (also ImagePullBackOff and ErrImagePull)
#!/bin/sh
# based on https://gist.github.com/ipedrazas/9c622404fb41f2343a0db85b3821275d
# delete all evicted pods from all namespaces
kubectl get pods --all-namespaces | grep Evicted | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod
# delete all containers in ImagePullBackOff state from all namespaces
kubectl get pods --all-namespaces | grep 'ImagePullBackOff' | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod
# delete all containers in ImagePullBackOff or ErrImagePull or Evicted state from all namespaces
@corcoran
corcoran / Contract Killer 3.md
Created August 22, 2017 17:01 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

Keybase proof

I hereby claim:

  • I am corcoran on github.
  • I am blk_jack (https://keybase.io/blk_jack) on keybase.
  • I have a public key ASAt9N3dsSnerfRAczsmd8xTHhNKz000Sd1Mu4EMVRuB4Qo

To claim this, I am signing this object: