Skip to content

Instantly share code, notes, and snippets.

Avatar

Walter walterrenner

View GitHub Profile
@OALabs
OALabs / boxstarter_oalabs_x86vm.ps1
Last active Jun 19, 2020
Boxstarter - One click malware analysis tools installer for 32bit VM
View boxstarter_oalabs_x86vm.ps1
Set-ExecutionPolicy Unrestricted;
iex ((New-Object System.Net.WebClient).DownloadString('http://boxstarter.org/bootstrapper.ps1'));
get-boxstarter -Force;
Install-BoxstarterPackage -PackageName 'https://gist.githubusercontent.com/OALabs/afb619ce8778302c324373378abbaef5/raw/4006323180791f464ec0a8a838c7b681f42d238c/oalabs_x86vm.ps1';
@specialunderwear
specialunderwear / meta.py
Last active Jul 22, 2019
Override model fields of an abstract model baseclass in django, by removing them from the abstract model.
View meta.py
def AbstractClassWithoutFieldsNamed(cls, *excl):
"""
Removes unwanted fields from abstract base classes.
Usage::
>>> from oscar.apps.address.abstract_models import AbstractBillingAddress
>>> from koe.meta import AbstractClassWithoutFieldsNamed as without
>>> class BillingAddress(without(AbstractBillingAddress, 'phone_number')):
... pass
@malteos
malteos / german-iso-3166.csv
Last active May 24, 2019
German ISO-3166 Country Codes CSV (deutsche Ländercodes)
View german-iso-3166.csv
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
AF Afghanistan
EG Ägypten
AL Albanien
DZ Algerien
AD Andorra
AO Angola
AI Anguilla
AQ Antarktis
AG Antigua und Barbuda
GQ Äquatorial Guinea
View .pythonrc
# vim: set ft=python :
from __future__ import print_function
import json
import sys
import datetime
from redis import StrictRedis as Redis
@jonschlinkert
jonschlinkert / markdown-cheatsheet.md
Last active Aug 1, 2020
A better markdown cheatsheet.
View markdown-cheatsheet.md
@yellowled
yellowled / .htaccess
Created Apr 1, 2013
gzip aktivieren auf Uberspace
View .htaccess
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE application/atom+xml \
application/javascript \
application/json \
application/rss+xml \
application/vnd.ms-fontobject \
application/x-font-ttf \
application/xhtml+xml \
application/xml \
font/opentype \
@schwuk
schwuk / forms.py
Created May 18, 2012
Including Email in the Django UserCreationForm
View forms.py
from django.forms import EmailField
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
class UserCreationForm(UserCreationForm):
email = EmailField(label=_("Email address"), required=True,
@erikh
erikh / hack.sh
Created Mar 31, 2012 — forked from DAddYE/hack.sh
OSX For Hackers
View hack.sh
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@DAddYE
DAddYE / hack.sh
Created Mar 19, 2012
OSX For Hackers
View hack.sh
#!/bin/sh
##
# This is a script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# Run in interactive mode with:
# $ sh -c "$(curl -sL https://raw.github.com/gist/2108403/hack.sh)"
#
# or run it without prompt questions:
@kevinSuttle
kevinSuttle / meta-tags.md
Last active Aug 7, 2020 — forked from lancejpollard/meta-tags.md
List of Usable HTML Meta and Link Tags
You can’t perform that action at this time.