Skip to content

Instantly share code, notes, and snippets.

View nerdfiles's full-sized avatar
⚕️
bringing about the end-times of the philosophy

aha hah nerdfiles

⚕️
bringing about the end-times of the philosophy
View GitHub Profile
##
# Wifi WEP cracking cheat sheet.
#
# Original link: http://www.aircrack-ng.org/doku.php?id=how_to_crack_wep_with_no_clients
##
# monitor mode
airmon-ng start <IFACE>
7 class MiniChargeImage(BaseImage):
8
9 def __init__(self, *args, **kwargs):
10 super(MiniChargeImage, self).__init__(*args, **kwargs)
11 self.user.related_name = 'mci_user'
12 self.album.related_name = 'mci_album'
13
14 class Meta(BaseImage.Meta):
15 abstract = False
16 app_label = 'mini_charge'
@nerdfiles
nerdfiles / gist:53f4e17fb64dc49e1160
Last active August 29, 2015 14:19
Columnize HTML block for atomic commits
RegEx:
/\(\S \W\=\)/\1\r/g
Input:
<input type="email" name="email" class="form-control radius" placeholder="Your email">
Output:
// OAuth callback code
if ( isset( $_GET['code'] ) ) {
$code = $_GET['code'];
$token_request_body = array(
'grant_type' => 'authorization_code',
'client_id' => STRIPE_MARKET_CLIENT,
'code' => $code,
@nerdfiles
nerdfiles / gmaps.js
Last active August 29, 2015 14:22
gmap-template
<div class="map-itself">
<style type="text/css">
#gmap {
overflow : hidden;
height : 600px;
width : 1200px;
}
#gmap_canvas {
height : 600px;
{
"response": {
"status": "tipdeliverybug",
"text_amount": "100.53bits",
"fiat_amount": 0.00010053,
"message": "✚100541351182813566938you'vebankedwithLoveStamp!100.53bits.",
"started_at": "2015-06-24T23: 26: 32Z",
"context_uid": "tuTXH3Fpp",
"context_url": "http: //lovestamp.io: 8080/users/✚100541351182813566938/profile",
"sender": "101600582096097255226",
@nerdfiles
nerdfiles / wp-cli.requirements
Created July 19, 2015 05:46
wp-cli.requirements
admin-menu-editor
advanced-custom-fields
akismet
cimy-user-extra-fields
contact-form-7
custom-author-base
custom-header-images
custom-shipping-options-for-membermouse
fantastic-elasticsearch
foogallery
@nerdfiles
nerdfiles / antigrid.scss
Last active August 29, 2015 14:27
A SASS-y "abstract" and lightweight responsive grid system.
/***
@fileOverview
_ _ _
_ (_) (_) | |
_____ ____ _| |_ _ ____ ____ _ __| |
(____ | _ (_ _) |/ _ |/ ___) |/ _ |
/ ___ | | | || |_| ( (_| | | | ( (_| |
\_____|_| |_| \__)_|\___ |_| |_|\____|
(_____|
FieldError at /terms/2015/08/30/terms-v1/
Cannot resolve keyword 'slug' into field. Choices are: author, author_id, categories, content, content_id, date_created, date_modified, date_published, date_published_end, enable_comments, id, main_image, main_image_full, main_image_full_id, main_image_id, main_image_thumbnail, main_image_thumbnail_id, publish, sites, tagged_items, tags, translations
Request Method: GET
Request URL: http://local.utxo.us:8000/terms/2015/08/30/terms-v1/
Django Version: 1.8.4
Exception Type: FieldError
Exception Value:
Cannot resolve keyword 'slug' into field. Choices are: author, author_id, categories, content, content_id, date_created, date_modified, date_published, date_published_end, enable_comments, id, main_image, main_image_full, main_image_full_id, main_image_id, main_image_thumbnail, main_image_thumbnail_id, publish, sites, tagged_items, tags, translations
Exception Location: /Users/nerdfiles/.virtualenvs/HOONM5gpFswaVA_utxo_app/lib/python2.7/site-packages/django/db/models/sql/
@nerdfiles
nerdfiles / flickr.com--molecules--_activityFeed.scss
Last active September 18, 2015 11:35
flex-y flickr — Websites are cells of the Internet. Web apps are organs.
/**
* flex-y flickr
* @screen.test http://imgur.com/vwOi3SL
*/
#sidebar { display: none; }
html body #main img { width: 100% !important; min-width: 100% !important; }
html body #main #activityFeed .card {
display: flex !important;
flex-direction: row !important;
justify-content: center !important;