Skip to content

Instantly share code, notes, and snippets.

View anabelle's full-sized avatar

Anabelle Handdoek anabelle

View GitHub Profile
@anabelle
anabelle / mac2wep.py
Last active January 17, 2024 21:31
Script para averiguar claves de redes infinitum de 4 digitos.
#!/usr/bin/env python
#-*- encoding: utf-8 -*-
# mac2wepkey Huawei HG520 by hochoa@websec.mx - 12/2010
# m2wkuvz (m2wkuvz ubuntu version) by hack@zosemu.com - 07/2012
import os, sys
def uso():
os.system("clear")
https://upload.wikimedia.org/wikipedia/commons/thumb/1/11/Test-Logo.svg/1200px-Test-Logo.svg.png
https://cdn.pixabay.com/photo/2015/04/23/22/00/tree-736885__480.jpg
https://images.unsplash.com/photo-1494548162494-384bba4ab999?ixid=MnwxMjA3fDB8MHxzZWFyY2h8MXx8c3VucmlzZXxlbnwwfHwwfHw%3D&ixlib=rb-1.2.1&w=1000&q=80
https://www.w3schools.com/w3css/img_lights.jpg
https://www.w3schools.com/howto/img_forest.jpg
https://www.w3schools.com/howto/img_snow.jpg
https://www.w3schools.com/howto/img_mountains.jpg
https://www.w3schools.com/howto/img_nature.jpg
https://www.w3schools.com/howto/img_fjords.jpg
https://www.w3schools.com/css/img_5terre_wide.jpg
// 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;
.layers_container {
margin-bottom: 10px;
width: 100%;
padding-top: 100%;
height: 0;
box-sizing: content-box;
position: relative;
transform: translateY(0);
}
<script>
console.log("Block script loaded");
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
var player;
function onYouTubeIframeAPIReady() {
! function(window) {
function _log(msg) {
console.error(msg)
}
function _pad(character, num, size) {
for (var s = "" + num, c = character || "0"; s.length < size;) s = c + s;
return s
}
<div class="slider-hexagonos">
<ul class="my-slider">
<?php
if ( block_rows( 'hexagonos' ) ):
while ( block_rows( 'hexagonos' ) ) :
block_row( 'hexagonos' );
$titulo = block_sub_value( 'titulo' );
$link = block_sub_value( 'link' );
$texto = block_sub_value( 'texto' );
$imagen_fija = block_sub_value( 'imagen-fija' );
@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: 'cloudflare@email.com', // 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.
@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 / github_update.php
Last active November 12, 2016 17:52
github_update.php
<?php $output = shell_exec('git fetch --all && git reset --hard origin/prod'); ?>
<style>
body{
background-color: #1A1A1A;
color:#fff;
}
pre{
padding:20px;
}