Skip to content

Instantly share code, notes, and snippets.

View juusechec's full-sized avatar
💜
Nubanker - Purple Nation

Jorge Ulises juusechec

💜
Nubanker - Purple Nation
View GitHub Profile
var iconFeature = new ol.Feature({
geometry: new ol.geom.Point([0, 0]),
name: 'Null Island',
population: 4000,
rainfall: 500
});
var iconFeature2 = new ol.Feature({
geometry: new ol.geom.Point([-1000000, -1000000]),
name: 'Island 2',
//React Component
import React from 'react';
// Import Style
//import styles from './BannerLogin.css';
// Import Components
var $ = require('jquery');
window.$ = $;
window.jQuery = $;
#!/bin/bash
# rationale: Interfaz eth1 de vagrant no auto inicia
# link: https://glud.org/2017/01/09/interfaz-eth1-de-vagrant-no-auto-inicia/
sudo tee /usr/local/bin/ifupeth1.sh << 'EOF'
#!/bin/bash
sleep 10 && ifup eth1
EOF
sudo chmod +x /usr/local/bin/ifupeth1.sh
sudo tee /usr/lib/systemd/system/ifupeth1.service << 'EOF'
[Unit]
@juusechec
juusechec / sse.go
Created December 22, 2016 13:25
Un script que envía peticiones a un servidor SSE (Server Send Event) recibe peticiones en base16 y las decodifica.
package main
import (
"fmt"
"io"
"log"
"net/http"
"net/url"
//"time"
"crypto/aes"
@juusechec
juusechec / install.sh
Last active April 27, 2018 18:58
Universal Install Script https://xkcd.com/1654/
#!/bin/bash
pip install "$1" &
easyinstall "$1" &
brew install "$1" &
npm install "$1" &
yum install "$1" & dnf instal "$1" &
docker run "$1" &
pkg install "$1" &
apt-get install "$1" &