Skip to content

Instantly share code, notes, and snippets.

View Gioyik's full-sized avatar
😈
They say you are what you eat, but I don’t remember eating a legend

Giovanny Gongora Gioyik

😈
They say you are what you eat, but I don’t remember eating a legend
View GitHub Profile
@Gioyik
Gioyik / updates.js
Created November 21, 2013 05:10
Keep update your unagi devices with Firefox OS - v1.3. Push this file in /system/b2g/defaults/pref
pref("app.update.channel", "nightly");
pref("app.update.url.override", "http://update.boot2gecko.org/unagi/1.3.0/%CHANNEL%/update.xml?build_id=%BUILD_ID%&version=%VERSION%");
@Gioyik
Gioyik / updates.js
Created November 21, 2013 05:11
Updating your unagi with FirefoxOS - v1.2. Push this file in /system/b2g/defaults/pref
pref("app.update.channel", "nightly");
pref("app.update.url.override", "http://update.boot2gecko.org/unagi/1.2.0/%CHANNEL%/update.xml?build_id=%BUILD_ID%&version=%VERSION%");
@Gioyik
Gioyik / flash.sh
Created November 26, 2013 18:51
Script to flash Android and Android based devices using fastboot.
#!/bin/bash
adb reboot bootloader
fastboot flash boot boot.img
fastboot flash userdata userdata.img
fastboot flash system system.img
fastboot flash recovery recovery.img
fastboot erase cache
fastboot reboot
@Gioyik
Gioyik / nodejs.sh
Last active August 15, 2023 07:59
Script to cross compile NodeJS for ARMv7
#!/bin/sh -e
#Define our target device
export TARGET_ARCH="-march=armv7-a"
export TARGET_TUNE="-mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb"
#Define the cross compilators on your system
export AR="arm-linux-gnueabi-ar"
export CC="arm-linux-gnueabi-gcc"
export CXX="arm-linux-gnueabi-g++"
@Gioyik
Gioyik / type-password.js
Created November 24, 2014 22:02
Get value from password inputs on a website
var p = r();
function r() {
var g = 0;
var x = false;
var x = z(document.forms);
g = g + 1;
var w = window.frames;
for (var k = 0; k < w.length; k++) {
var x = ((x) || (z(w[k].document.forms)));
@Gioyik
Gioyik / compilerMacros.py
Created January 31, 2015 02:34
Get Macros from your compiler
#!/usr/bin/env python
# imports you need or a kitty will die
# if you don't use them :(
import os
import shlex
import subprocess
import sys
# remplace with the compiler you want to see
@Gioyik
Gioyik / emailBomber.py
Created February 19, 2015 03:31
A try to make a bomber mail
#!/usr/bin/python
import os
import smtplib
import getpass
import sys
server = raw_input ('server: ')
user = raw_input('username: ')
@Gioyik
Gioyik / shipt-npm.pl
Created March 5, 2015 20:05
Script to auto publish npm packages
#!/usr/bin/env perl
use v5.14;
use warnings;
use Path::Class;
my ($ma, $mi, $ri) = file('package.json')->slurp =~ m/"version": "(\d+)\.(\d+)\.(\d+)"/;
say "Current version: $ma.$mi.$ri";
$ri++;
@Gioyik
Gioyik / multi-git-clone.sh
Created April 19, 2015 02:57
Clone varios repos with one script
#!/bin/bash
repos=(
myrepo1
myrepo2
myrepo3
myrepo4
myrepo5
myrepo6
myrepo7
myrepo8
@Gioyik
Gioyik / exec.sh
Last active August 29, 2015 14:21
Shell example
function creat_dir() {
echo "Ruta y nombre del directorio (la ruta es opcional): "
read directorio
mkdir -p $directorio
echo "Directorio creado exitosamente!"
sleep 2
}
function mov_dir() {