Skip to content

Instantly share code, notes, and snippets.

View bramd's full-sized avatar

Bram Duvigneau bramd

  • Arnhem, The Netherlands
View GitHub Profile
@bramd
bramd / Update-AUPackages.md
Last active August 19, 2024 08:27
Update-AUPackages Report #powershell #chocolatey
@bramd
bramd / Update-AUPackages.md
Created July 2, 2019 08:28
Update-AUPackages Report #powershell #chocolatey
@bramd
bramd / Update-AUPackages.md
Created July 2, 2019 08:09
Update-AUPackages Report #powershell #chocolatey
### Keybase proof
I hereby claim:
* I am bramd on github.
* I am bramd (https://keybase.io/bramd) on keybase.
* I have a public key whose fingerprint is F05B 1D0D 8931 1D4E 8D88 9C6E A538 9775 C00C 5785
To claim this, I am signing this object:
@bramd
bramd / gist:07422187538525322643
Last active March 14, 2016 11:48
Minimal Boxstarter script
cinst nvda -version 2016.1
Install-WindowsUpdate
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
cinst notepadplusplus
cinst javaruntime
cinst 7zip
cinst firefox
cinst flashplayerplugin
cinst adobereader
cinst sysinternals
@bramd
bramd / models.py
Created April 25, 2013 15:27
An example how to expose nodes through a custom Cypher query as a queryset. This assumes you are using Neo4Django. We have a Place (or point of interest) that has an address. The address is located in a city, is located in a state, is located in a country etc. For a given node we would like to retrieve the list of places in that node. Examples: …
from neo4django.db import connections
from neo4django.db.models.script_utils import LazyNode
from neo4django.db import models
from neo4django.db.models.manager import NodeModelManager
from django.utils.translation import ugettext_lazy as _
class Country(models.NodeModel):
code = models.StringProperty(verbose_name=_('Country code'), max_length=2, indexed=True)
name = models.StringProperty(verbose_name=_('Name'))
@bramd
bramd / webvisum.py
Created April 24, 2012 11:11
Solve CAPTCHAs using the Webvisum API, requires a valid Webvisum username and password.
import sys
import urllib2
import requests
from xml.dom import minidom
from time import sleep
API_URL = 'http://api.webvisum.com/api_rest'
USERNAME = ''
PASSWORD = ''
# Copyright (c) 2008, Ryan Witt
# Some modifications copyright (c) 2010, Bram Duvigneau
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 9 columns, instead of 2 in line 9.
"Short name","Full name","Country code ( ","Capital","Name of citizenship","Adjective","Currency ( ","ISO code ( ","Currency subunit ( "
"Afghanistan","Islamic Republic of Afghanistan","AF","Kabul","Afghan","Afghan","afghani","AFN","pul"
"Åland Islands(AX1)","Åland Islands","AX","Mariehamn","Åland Islander","of the Åland Islands","euro","EUR","cent"
"Albania","Republic ofAlbania","AL","Tirana","Albanian","Albanian","lek","ALL","qindar (pl.qindarka)"
"Algeria","People’s Democratic Republic ofAlgeria","DZ","Algiers","Algerian","Algerian","Algerian dinar","DZD","centime"
"American Samoa(AS1)","Territory ofAmerican Samoa","AS","Pago Pago","American Samoan","American Samoan","US dollar","USD","cent"
"Andorra","Principality ofAndorra","AD","Andorra la Vella","Andorran","Andorran","euro","EUR","cent"
"Angola","Republic ofAngola","AO","Luanda","Angolan","Angolan","kwanza","AOA","cêntimo"
"Anguilla(AI1)","Anguilla","AI","The Valley","Anguillan","Anguillan","East Caribbean dollar","XCD","cent"
"Antarctica","Antarctica"