Skip to content

Instantly share code, notes, and snippets.

We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 5.
name,ring,quadrant,isNew,description
Babel,adopt,tools,TRUE,"This is the description. You can use basic html such as the <strong>strong tag to emphasise keywords and phrases</strong> and insert <a href=""https://www.thoughtworks.com"">anchor links to documentation and referance material</a>."
Consul,adopt,tools,FALSE,"This is the description. You can use basic html such as the <strong>strong tag to emphasise keywords and phrases</strong> and insert <a href=""https://www.thoughtworks.com"">anchor links to documentation and referance material</a>."
Grafana,adopt,tools,TRUE,"This is the description. You can use basic html such as the <strong>strong tag to emphasise keywords and phrases</strong> and insert <a href=""https://www.thoughtworks.com"">anchor links to documentation and referance material</a>."
Packer,adopt,tools,FALSE,"This is the description. You can use basic html such as the <strong>strong tag to emphasise keywords and phrases</strong> and insert <a href=""https://www.thoughtworks.com"">anchor links
KeyError: '\x00\x00\x00\x01V\xe0\x11\x0c'
File "ZPublisher/Publish.py", line 138, in publish
request, bind=1)
File "ZPublisher/mapply.py", line 77, in mapply
if debug is not None: return debug(object,args,context)
File "ZPublisher/Publish.py", line 48, in call_object
result=apply(object,args) # Type s<cr> to step into published object.
File "OFS/ObjectManager.py", line 627, in manage_importObject
set_owner=set_owner)
File "OFS/ObjectManager.py", line 645, in _importObjectFromFile

Keybase proof

I hereby claim:

  • I am do3cc on github.
  • I am do3cc (https://keybase.io/do3cc) on keybase.
  • I have a public key ASBOe0D2XMDS7LJSy9A1G-bCvRPK3wA3-Qxrs2KjYSmKhAo

To claim this, I am signing this object:

@do3cc
do3cc / gist:520c9b0b03466f2bf469
Created April 8, 2015 21:10
virtualenvwrapper init
#!/bin/bash
# Initialize a directory as a project
# This is script is meant as a companion for users who have a tool like
# checkoutmanager and work with virtualenvwrapper
# It also checks for starzel specific buildout conventions, but works for
# normal buildouts too
# This script is dangerous, it will delete the directory from which it gets
# executed and has no safeguard against it.
if request.META['HTTP_ACCEPT'].startswith('text/html'):
return HttpResponseRedirect(self.login_url)
else:
# You are not human after all and can handle 401 better
# https://www.youtube.com/watch?v=PXYeARRyDWk
return HTTPResponse(status_code=status.HTTP_401_UNAUTHORIZED)
@do3cc
do3cc / gist:4de070dfa15e945a21ea4e54c6247790
Last active April 14, 2016 14:46
How to run isort only for specific projects
# ~/.vimrc
" Allow project specific vimrc files
set exrc
set secure " Prevent potentially malicious vimrc files from breaking stuff
" Isort
function! Isort()
let cursor_pos = getpos('.')
%!isort -
call setpos('.', cursor_pos)
@do3cc
do3cc / gist:5805562
Created June 18, 2013 13:56
Ordering imports or other things in vim can be done with !sort If you have some proper locales set, sort always sorts case insensitive and there is no flag to tell him to stop that. You can, however, run sort with a different locale. Doing so from vim is a bit much to type though, therefor, add the alias below
# Works in bash AND zsh
alias sort="LC_ALL=C sort"
@do3cc
do3cc / gist:5611777
Created May 20, 2013 11:45
This is a template one can use to create notifications for each repo, one ever committed to on github
# In this example, I chose to look into the organizations collective and plone only. Adjust to your needs, don't forget to add yourself, if you want to watch yourself.
# Pagination count is based on the number of repos in collective, which is 919.
# Get all repos from a project
for ORG in collective plone
do
for PAGE in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
do
curl -u $YOURUSER:$YOURPASS -i https://api.github.com/users/$ORG/repos\?page\=$PAGE >> repos
done
@do3cc
do3cc / lala.py
Last active November 25, 2015 13:56
Hacky script to try to repair your database after problems with interfaces and the relation catalog
# It was hard to figure out, it might now be appropriate to use in your case.
# If you are not feeling comfortable to work on your database like this,
# don't run this gist.
from BTrees.OIBTree import OITreeSet
from ZODB.broken import Broken
from zc.relation.interfaces import ICatalog
from zope.component import getUtility
import transaction
<browser:page
for="*"
name="SecSigner.jar"
permission="zope2.View"
allowed_attributes="HEAD"
class=".applet.Applet1"
layer="blabla.signit.interfaces.IKboSignitLayer"
/>
class Applet(BrowserView):