Skip to content

Instantly share code, notes, and snippets.

View alexpiezo's full-sized avatar

Alex alexpiezo

  • Piezo
  • Benalmádena
View GitHub Profile
// ==UserScript==
// @name Calculator Automator
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Automate calculations and interact with a virtual calculator
// @author Piezo
// @match https://play.ttrockstars.com/*
// @grant GM_log
// ==/UserScript==
import Combine
import SwiftUI
@dynamicMemberLookup public protocol ViewModelBinding {
associatedtype State
associatedtype Input
var state: State { get }
mutating func bind(with input: PassthroughSubject<Input, Never>)
}
@alexpiezo
alexpiezo / install_vpn.sh
Last active September 16, 2018 23:18 — forked from lorepozo/install_vpn.sh
automatically install and configure a VPN server — IKEv2 over IPsec
#!/bin/bash
# install_vpn.sh
# automatically install and configure a VPN -- IKEv2 over IPsec
# using strongswan and iptables
# Author: Lucas E Morales <lucas@lucasem.com>
#
# tested on Ubuntu 16.04 and arch 2018-07
#
# huge thanks to Namo's tutorial:
# https://www.digitalocean.com/community/tutorials/how-to-set-up-an-ikev2-vpn-server-with-strongswan-on-ubuntu-16-04
@alexpiezo
alexpiezo / setup.sh
Last active November 23, 2017 13:42
tsung setup on Ubuntu 16.04
yes | apt-get update
yes | apt-get install libtemplate-perl libhtml-template-perl erlang erlang-dev make autoconf
git clone https://github.com/processone/tsung.git
cd tsung
./configure && make && sudo make install
cd ..