Skip to content

Instantly share code, notes, and snippets.

View wavyx's full-sized avatar
💻

Eric Rodriguez wavyx

💻
View GitHub Profile
@wavyx
wavyx / bench.py
Last active March 29, 2019 04:57
#!/usr/bin/python
# -*- coding: utf-8 -*-
# https://unix.stackexchange.com/questions/28756/what-is-the-most-high-performance-linux-filesystem-for-storing-a-lot-of-small-fi?newreg=f9ac548e5fbd4a00bf3a3318a831543e
# https://www.dropbox.com/s/viba8rzdq6uegsq/bench.py?dl=0
#
# or check https://support.binarylane.com.au/support/solutions/articles/1000055889-how-to-benchmark-disk-i-o
# ./fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=test --bs=4k --iodepth=64 --size=4G --readwrite=randrw --rwmixread=75
filecount = 300000
filesize = 1024
### Keybase proof
I hereby claim:
* I am wavyx on github.
* I am wavyx (https://keybase.io/wavyx) on keybase.
* I have a public key ASDQ-sPJ1qiQ004ws0UwTgJo2vVm4tt6dpFlxQhmw_RnBwo
To claim this, I am signing this object:
@wavyx
wavyx / HOWTO.md
Last active August 29, 2015 14:05 — forked from badboy/HOWTO.md
  1. Get your cookie. Either proxy your iPhone/iPod/iPad and record the cookie using the proxy server of your choice or capture the request using your AP with Wireshark or similar
  2. Make sure you have a cookie like AKCNTYPE=WIFI; AKID=abc; token=expires... and put it in ~/cookie
  3. Find the name and day of the artist you want to load, replace whitespace with underscores.
  4. Launch the script: ./itunes-festival.sh day artist
  5. Have fun.

and because I'm not the creator of this script: henne war's!

<?php
/**
* This class can add WSSecurity authentication support to SOAP clients
* implemented with the PHP 5 SOAP extension.
*
* It extends the PHP 5 SOAP client support to add the necessary XML tags to
* the SOAP client requests in order to authenticate on behalf of a given
* user with a given password.
*
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<title>Fusion Tables queries</title>
<style>
html, body, #map-canvas {
height: 100%;
margin: 0px;
@wavyx
wavyx / css_resources.md
Created November 20, 2013 16:40 — 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

@wavyx
wavyx / javascript_resources.md
Created November 20, 2013 16:40 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@wavyx
wavyx / 0_reuse_code.js
Created November 20, 2013 16:40
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