Skip to content

Instantly share code, notes, and snippets.

View michaelgenesini's full-sized avatar
🍕

Michael Genesini michaelgenesini

🍕
View GitHub Profile
We couldn’t find that file to show.
@michaelgenesini
michaelgenesini / regions.json
Created November 12, 2019 22:12
Italian Regions Geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@michaelgenesini
michaelgenesini / masq.sh
Created March 26, 2019 15:51 — forked from mowings/masq.sh
script to get xet xhyve working with all vpn interfaces
#!/bin/bash
interfaces=( $(netstat -in | egrep 'utun\d .*\d+\.\d+\.\d+\.\d+' | cut -d ' ' -f 1) )
rulefile="rules.tmp"
echo "" > $rulefile
sudo pfctl -a com.apple/tun -F nat
for i in "${interfaces[@]}"
do
RULE="nat on ${i} proto {tcp, udp, icmp} from 192.168.64.0/24 to any -> ${i}"
echo $RULE >> $rulefile
done
@michaelgenesini
michaelgenesini / sketch-never-ending.md
Created March 6, 2019 07:42 — forked from Bhavdip/sketch-never-ending.md
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com

127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com

@michaelgenesini
michaelgenesini / pair_programming_roles
Created December 10, 2018 16:31 — forked from jordanpoulton/pair_programming_roles
Pair Programming Role Definitions - Driver:Navigator
Driver:
-Write the code according to the navigator's specification
-Listen intently to the navigators instructions
-Ask questions wherever there is a lack of clarity
-Offer alternative solutions if you disagree with the navigator
-Where there is disagreement, defer to the navigator. If their idea fails, get to failure quickly and move on
-Make sure code is clean
-Own the computer / keyboard
-Ignore larger issues and focus on the task at hand
-Trust the navigator - ultimately the navigator has the final say in what is written
@michaelgenesini
michaelgenesini / VS Code Dark+.itermcolors
Created September 27, 2018 10:47 — forked from soldni/cloudSettings
Default Visual Studio Code Theme for iTerm
<?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.10980392247438431</real>
@michaelgenesini
michaelgenesini / web.config
Created December 13, 2017 21:43
Configuration for IIS Web Core (Windows) Server (Wordpress)
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Main Rule" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
@michaelgenesini
michaelgenesini / API.js
Created November 19, 2017 10:36
Fetch data async await arrow function
require('isomorphic-fetch')
import beers from './MOCKS/beers'
const API = {
beers: `https://api.punkapi.com/v2/beers`,
beersMocked: beers.data
}
const fetchData = async (url) => await( await fetch(url)).json()