Skip to content

Instantly share code, notes, and snippets.

View estebanrfp's full-sized avatar
🎯
learning ...

Esteban Fuster Pozzi estebanrfp

🎯
learning ...
View GitHub Profile
@estebanrfp
estebanrfp / countryblock.sh
Created March 5, 2016 17:16
Block a list of IP ranges using IPSet and IPTables
#!/bin/bash
#Script to process ip ranges to ban using IPSet and IPTables
ipset create countryblock hash:net
while read line; do ipset add countryblock $line; done < blocklist.txt
iptables -I INPUT -m set --match-set countryblock src -j DROP
@estebanrfp
estebanrfp / Chekboxes CSS.markdown
Last active March 25, 2016 09:40
Chekboxes CSS

Chekboxes CSS

Chekboxes CSS normal. disable - un and checked. with checkboxes stup*d values.

sorry the messy and repeated code...

A Pen by Pedro Campos on CodePen.

@estebanrfp
estebanrfp / Animated form checkboxes.markdown
Created March 25, 2016 10:01
Animated form checkboxes
@estebanrfp
estebanrfp / MongoDbHelper.js
Created May 25, 2016 00:11 — forked from k33g/MongoDbHelper.js
Playing with node-mongodb-native and ECMAScript 6 and Express
/**
* Created by k33g_org on 24/10/14.
*/
import mongodb from 'mongodb';
import uuid from 'node-uuid';
/*
http://mongodb.github.io/node-mongodb-native/2.0/tutorials/crud_operations/
*/
@estebanrfp
estebanrfp / esnextbin.md
Last active April 7, 2017 14:20
esnextbin sketch
@estebanrfp
estebanrfp / .gitignore.txt
Created October 1, 2017 06:21
.gitignore
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
*.sh
!deploy.sh
@estebanrfp
estebanrfp / listening-client.js
Created January 4, 2018 10:21 — forked from johnnyman727/listening-client.js
Simple MQTT Server. Tessel acts as an MQTT client sending temperature data to a host
var mqtt = require('mqtt')
// Make sure to change this to the IP address of your MQTT server
, host = '192.168.128.204' // or localhost
client = mqtt.createClient(1883, host, {keepalive: 10000});
// Subscribe to the temperature topic
client.subscribe('temperature');
// When a temperature is published, it will show up here
client.on('message', function (topic, message) {
@estebanrfp
estebanrfp / dinamical.sh
Last active February 14, 2018 05:59
installer
#!/bin/bash
while echo $1 | grep -q ^-; do
eval $( echo $1 | sed 's/^-//' )=$2
shift
shift
done
msg(){
@estebanrfp
estebanrfp / a-frame-vrgallery-experiment.markdown
Created February 27, 2018 12:16
A-frame VRGallery Experiment

A-frame VRGallery Experiment

My first attempt to make a VR gallery using A-Frame and JS.

A Pen by Alex on CodePen.

License.