Skip to content

Instantly share code, notes, and snippets.

View anabelle's full-sized avatar

Anabelle Handdoek anabelle

View GitHub Profile
<div id="slider_tales" class="contenedor_slider">
<ul class="slides">
<li>
<!-- Slide -->
</li>
<li>
<!-- Slide -->
</li>
<table>
<thead>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</thead>
<tbody>
<tr>
<div id="tabs">
<ul>
<li><a href="#tabs-1">Nunc tincidunt</a></li>
<li><a href="#tabs-2">Proin dolor</a></li>
<li><a href="#tabs-3">Aenean lacinia</a></li>
</ul>
<div id="tabs-1">
<p>Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin. Sed ut dolor nec orci tincidunt interdum. Phasellus ipsum. Nunc tristique tempus lectus.</p>
</div>
<div class="triangulo"></div>
@anabelle
anabelle / mac2wep.py
Last active November 26, 2024 21:49
Script para averiguar claves de redes infinitum de 4 digitos.
#!/usr/bin/env python
#-*- encoding: utf-8 -*-
# mac2wepkey Huawei HG520 by [email protected] - 12/2010
# m2wkuvz (m2wkuvz ubuntu version) by [email protected] - 07/2012
import os, sys
def uso():
os.system("clear")
@anabelle
anabelle / TwitterStreams.js
Last active August 29, 2015 13:56 — forked from robwormald/gist:9317945
idea to handle multiple twitter streams
var Twit = require('twit')
var twitterConnection = new Twit({
/**
* details go here
*/
})
var openStreams = {}
@anabelle
anabelle / .htaccess
Created September 25, 2014 19:30
h5bp htaccess
# Apache Server Configs v2.2.0 | MIT License
# https://github.com/h5bp/server-configs-apache
# (!) Using `.htaccess` files slows down Apache, therefore, if you have access
# to the main server config file (usually called `httpd.conf`), you should add
# this logic there: http://httpd.apache.org/docs/current/howto/htaccess.html.
# ##############################################################################
# # CROSS-ORIGIN RESOURCE SHARING (CORS) #
# ##############################################################################
@anabelle
anabelle / cloudflare_control.rb
Created November 20, 2017 15:36 — forked from colinbm/cloudflare_control.rb
Pause or resume all your CloudFlare sites at once. Useful if CloudFlare is misbehaving.
#!/usr/bin/env ruby
require 'cloudflare'
module CloudFlare
class Connection
public :send_req
end
end
@anabelle
anabelle / cloudflare_pause.js
Created November 20, 2017 17:19
A node.js script to change the paused status of all the sites under a cloudflare account at once.
// run 'npm install cloudflare' before running this script
var cf = require('cloudflare')({
email: '[email protected]', // Your cloudflare account email
key: 'yourapikey' // Your cloudflare api key, found in CLoudflare > My profile
});
cf.zones.browse({per_page: 60}).then( function( resp ){
for (var i = resp.result.length - 1; i >= 0; i--) {
console.log( "domain: ", resp.result[i].name );
cf.zones.edit( resp.result[i].id, { paused: true } ).then( function( resp ){ // change to paused: false when you want to unpause.
// Generates images from DNA - returns all of them in HTML
Tree.prototype.generateTreeImage = function(dna) {
var url = "https://studio.ethereum.org/static/img/cryptopizza/";
dna = dna.toString();
var basis = (dna.substring(0, 2) % 2) + 1;
var cheese = (dna.substring(2, 4) % 10) + 1;
var meat = (dna.substring(4, 6) % 18) + 1;
var spice = (dna.substring(6, 8) % 7) + 1;
var veggie = (dna.substring(8, 10) % 22) + 1;