Skip to content

Instantly share code, notes, and snippets.

View Pinwheeler's full-sized avatar

Anthony Dreessen Pinwheeler

View GitHub Profile
@Pinwheeler
Pinwheeler / README
Last active August 29, 2015 14:06 — forked from duksis/README
PoC implementation of a brute force attack against WPS - PIN External Registrar
My test environment was Backtrack 5R1 + an Atheros USB adapter.
I used a mac80211/carl9170 driver but any mac80211-based driver should be ok.
DEPENDENCIES:
PyCrypto
Scapy (2.2.0) (does not come with Backtrack)
USAGE:
@Pinwheeler
Pinwheeler / 0_reuse_code.js
Last active August 29, 2015 14:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Pinwheeler
Pinwheeler / python_resources.md
Last active August 29, 2015 14:08 — forked from jookyboi/python_resources.md
Python-related modules and guides.

Packages

  • lxml - Pythonic binding for the C libraries libxml2 and libxslt.
  • boto - Python interface to Amazon Web Services
  • Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
  • Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
  • PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
  • Celery - Task queue to distribute work across threads or machines.
  • pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.

Guides

@Pinwheeler
Pinwheeler / css_resources.md
Last active August 29, 2015 14:08 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@Pinwheeler
Pinwheeler / dropdown.js
Created December 30, 2014 17:08
IE8 Compatible Dropdown
$(document).ready(function() {
createDropDown();
$(".dropdown dt a").click(function(e) {
e.preventDefault();
var dropdown_id = '#'+Page on parentelement.parentelement.id;
$(dropdown_id + " ul").toggle();
});
$(document).bind('click', function(e) {
var $clicked = $(e.target);
<%= form_for :monster do |f| %>
<% if @monster.errors.any? %>
<div id="error_explanation">
<h2>
<%= pluralize(@monster.errors.count, "error") %> prohibited this monster from being saved:
</h2>
<ul>
<% @monster.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
- (void)awakeFromNib {
if (self.class.themeColor) {
self.textColor = self.class.themeColor;
}
if (self.class.themeFont) {
self.font = self.class.themeFont;
}
}
@Pinwheeler
Pinwheeler / README.md
Last active March 17, 2016 22:21
Beautiful Xcode Dark Theme
@Pinwheeler
Pinwheeler / AppDelegate.m
Last active June 11, 2019 18:51
React Linking Manager
- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity
restorationHandler:(void (^)(NSArray<id<UIUserActivityRestoring>> * _Nullable))restorationHandler
{
return [RCTLinkingManager application:application
continueUserActivity:userActivity
restorationHandler:restorationHandler];
}
@Pinwheeler
Pinwheeler / index.js
Last active June 11, 2019 20:48
State Change
_genericStateChange(nextAppState) {
this._stateChangeFromSource(nextAppState, 'generic')
}
async _universalLinksStateChange(nextAppState, route) {
await this._stateChangeFromSource(nextAppState, 'universal_link', route)
}
async _stateChangeFromSource(nextAppState, source, route = null) {
if (nextAppState === 'active') {