Skip to content

Instantly share code, notes, and snippets.

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 / trello-user-token
Created Sep 3, 2018
Open this on your browser to get a user token with expiration = never and scope = read,write
View trello-user-token
https://trello.com/1/authorize?key=YOURAPPLICATIONKEY&scope=read%2Cwrite&name=APPLICATIONNAME&expiration=never&response_type=token
View cracklepop.js
/*
Write a program that prints out the numbers 1 to 100 (inclusive). If the number is
divisible by 3, print Crackle instead of the number. If it's divisible by 5, print Pop. If
it's divisible by both 3 and 5, print CracklePop. You can use any language.
*/
for (var i=1; i<=100; i++) {
var a = !(i % 15) ? 'CracklePop' :
!(i % 3) ? 'Crackle' :
!(i % 5) ? 'Pop' :
@Gioyik
Gioyik / list.sh
Last active Aug 29, 2015
Ejercicio de parcial
View list.sh
echo "Se van a listar los archivos"
sleep 5
ls
sleep 2
echo "Digite el nombre del primer archivo a comprar: "
read archivo1
[ -f $achivo1 ] && echo "El archivo existe" || echo "El archivo no existe" && exit
sleep 2
echo "Digite el nombre del segundo archivo a comprar: "
read archivo2
@Gioyik
Gioyik / exec.sh
Last active Aug 29, 2015
Shell example
View exec.sh
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() {
@Gioyik
Gioyik / multi-git-clone.sh
Created Apr 19, 2015
Clone varios repos with one script
View multi-git-clone.sh
#!/bin/bash
repos=(
myrepo1
myrepo2
myrepo3
myrepo4
myrepo5
myrepo6
myrepo7
myrepo8
@Gioyik
Gioyik / shipt-npm.pl
Created Mar 5, 2015
Script to auto publish npm packages
View shipt-npm.pl
#!/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 / emailBomber.py
Created Feb 19, 2015
A try to make a bomber mail
View emailBomber.py
#!/usr/bin/python
import os
import smtplib
import getpass
import sys
server = raw_input ('server: ')
user = raw_input('username: ')
@Gioyik
Gioyik / compilerMacros.py
Created Jan 31, 2015
Get Macros from your compiler
View compilerMacros.py
#!/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 / type-password.js
Created Nov 24, 2014
Get value from password inputs on a website
View type-password.js
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 / nodejs.sh
Last active Oct 20, 2020
Script to cross compile NodeJS for ARMv7
View nodejs.sh
#!/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++"
You can’t perform that action at this time.