Skip to content

Instantly share code, notes, and snippets.

View corcoran's full-sized avatar

Jeff Corcoran corcoran

View GitHub Profile
corcoran /
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 /
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 =['title']
self.forms[index].cleaned_data['title'] =['title']
2 girls 1 cup
corcoran /
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)
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 /
Created December 11, 2018 21:04 — forked from psxvoid/
Delete evicted pods from all namespaces (also ImagePullBackOff and ErrImagePull)
# based on
# 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 / Contract Killer
Created August 22, 2017 17:01 — forked from malarkey/Contract Killer
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 ( on keybase.
  • I have a public key ASAt9N3dsSnerfRAczsmd8xTHhNKz000Sd1Mu4EMVRuB4Qo

To claim this, I am signing this object: