Skip to content

Instantly share code, notes, and snippets.

🔥
Hack hack hack hack

Daniel Biedma danibram

🔥
Hack hack hack hack
Block or report user

Report or block danibram

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am danibram on github.
  • I am danibram (https://keybase.io/danibram) on keybase.
  • I have a public key ASCC_wzM_E88-IMuDm7ccJZHJIppgDbuLJJw_OpUoqjF9wo

To claim this, I am signing this object:

View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Fodmapscsv</title>
</head>
<body>
View intolerancias.csv
Name Category Consumption Description
Arándanos frutas free 1 ración por comida y dejar pasar 2,5-3h entre cada una
Aguacate frutas limited 30g por toma
Frambuesas frutas free 1 ración por comida y dejar pasar 2,5-3h entre cada una
Fresas frutas free 1 ración por comida y dejar pasar 2,5-3h entre cada una
Fruta de la pasión frutas free 1 ración por comida y dejar pasar 2,5-3h entre cada una
Kiwi frutas free 1 ración por comida y dejar pasar 2,5-3h entre cada una
Lima frutas free 1 ración por comida y dejar pasar 2,5-3h entre cada una
Limón frutas free 1 ración por comida y dejar pasar 2,5-3h entre cada una
Mandarina frutas free 1 ración por comida y dejar pasar 2,5-3h entre cada una
View FlatUI.itermcolors
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.18039216101169586</real>
View reselect.js
define(['exports'], function (exports) {
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.defaultMemoize = defaultMemoize;
exports.createSelectorCreator = createSelectorCreator;
exports.createStructuredSelector = createStructuredSelector;
View jquery-qrcode.js
(function(r){r.fn.qrcode=function(h){var s;function u(a){this.mode=s;this.data=a}function o(a,c){this.typeNumber=a;this.errorCorrectLevel=c;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]}function q(a,c){if(void 0==a.length)throw Error(a.length+"/"+c);for(var d=0;d<a.length&&0==a[d];)d++;this.num=Array(a.length-d+c);for(var b=0;b<a.length-d;b++)this.num[b]=a[b+d]}function p(a,c){this.totalCount=a;this.dataCount=c}function t(){this.buffer=[];this.length=0}u.prototype={getLength:function(){return this.data.length},
write:function(a){for(var c=0;c<this.data.length;c++)a.put(this.data.charCodeAt(c),8)}};o.prototype={addData:function(a){this.dataList.push(new u(a));this.dataCache=null},isDark:function(a,c){if(0>a||this.moduleCount<=a||0>c||this.moduleCount<=c)throw Error(a+","+c);return this.modules[a][c]},getModuleCount:function(){return this.moduleCount},make:function(){if(1>this.typeNumber){for(var a=1,a=1;40>a;a++){for(var c=p.getRSBlocks(a,this.errorCorrectLevel),d=new t,b=0,e=0;e<c.
@danibram
danibram / iptables.sh
Created Feb 3, 2016
Redirect 443,80 to 8443,8080 on ubuntu with persistence
View iptables.sh
sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 8443
sudo sh -c "iptables-save > /etc/iptables.rules"
sudo apt-get install iptables-persistent
@danibram
danibram / ElasticSearch.sh
Created Feb 3, 2016 — forked from ricardo-rossi/ElasticSearch.sh
Installing ElasticSearch on Ubuntu 14.04
View ElasticSearch.sh
#!/bin/bash
### USAGE
###
### ./ElasticSearch.sh 1.7 will install Elasticsearch 1.7
### ./ElasticSearch.sh will fail because no version was specified (exit code 1)
###
### CLI options Contributed by @janpieper
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch
View tmux config
setw -g aggressive-resize 0
#Reload tmux conf
bind-key r source-file ~/.tmux.conf \; display "Config reloaded!"
# Remap prefix to Control + a
# set -g prefix §
set -g prefix C-a
unbind C-b
@danibram
danibram / fix_hosts.sh
Last active Sep 23, 2015
Fix hosts file from corruption
View fix_hosts.sh
#!/bin/sh
# Solution found here (run with sudo):
# http://superuser.com/questions/866086/localhost-aliases-in-mac-os-x-mysteriously-stopped-working
tr '\015' '\012' < /etc/hosts > /tmp/hosts.$$
mv /etc/hosts /etc/hosts.bad
mv /tmp/hosts.$$ /etc/hosts
chown root:wheel /etc/hosts
chmod 644 /etc/hosts
You can’t perform that action at this time.