Skip to content

Instantly share code, notes, and snippets.

🐫

Juan Lulkin joaomilho

🐫
Block or report user

Report or block joaomilho

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 burp-instructions.md

burp guide

  1. Install https://portswigger.net/burp/communitydownload;

  2. Browser:

  • Chrome The Chrome browser picks up the HTTP proxy settings configured on the host computer. If you are using Chrome, you can open your computer's built-in browser and follow the instructions for configuring that. If you aren't sure where the built-in proxy settings are, open Chrome, go to the Customize menu, select Settings, click on "Show advanced settings",
@joaomilho
joaomilho / counter.js
Created Feb 26, 2017
Act's <1.0 counter
View counter.js
const view = (count) =>
['p', [
['h1', count],
['button', {click: {add: 1}}, '+'],
['button', {click: {add: -1}}, '-']
]]
const reducer = (state, {type, payload}) =>
type === 'add' ? state + payload : state
@joaomilho
joaomilho / boot.day.zip.sh
Last active Aug 1, 2016
day.zip boot script
View boot.day.zip.sh
cd /home/pi/ && git clone https://github.com/klarna/day.zip.git && cd day.zip && bash boot.sh
View bio.txt
Juan was just a regular kid until one day he bet his soul with the devil and lost. Then, he suddenly learned to play blues and started working with software development making fortunes with the dotcom bubble. He mastered many open source technologies while studying physics, where he couldn't find any evidence for, and philosophy, where he couldn't find any good argument for the existence of souls. Given an approaching deadline set by the dark lord, he decided to move to Israel and learn Hebrew, in order to read God's words and to seek atonement for his sins. Nowadays he works at Klarna Tel Aviv mainly with React and other front end technologies, since he couldn't find anything more self flagellating to do.
View loadReducer.js
const load = equals('load')
const unload = complement(load)
const loading = set(lensProp('loading'))
const loadReducer = guard([
[load, loading(true)],
[unload, loading(false)] // runs for all actions except `'load'`
])
View calculatorReducerWithGuard3.js
const calculatorReducer = guard({ add, subtract, multiply, divide })
View calculatorReducerWithGuard2.js
const calculatorReducer = guard({
add: add
subtract: subtract
multiply: multiply
divide: divide
})
View calculatorReducerWithGuard.js
const calculatorReducer = guard({
add: (state, payload) => state + payload],
subtract: (state, payload) => state - payload],
multiply: (state, payload) => state * payload],
divide: (state, payload) => state / payload],
})
View exampleConfig.js
{
add: (state, payload) => state + payload],
subtract: (state, payload) => state - payload],
...
}
You can’t perform that action at this time.