Skip to content

Instantly share code, notes, and snippets.

@e-fu
e-fu / wg_install.sh
Created September 20, 2020 15:31 — forked from Anachron/wg_install.sh
A script to spin up a Wireguard VPN server with Unbound recursive DNS in a hurry
#!/bin/bash
# This file is designed to spin up a Wireguard VPN quickly and easily,
# including configuring a recursive local DNS server using Unbound
#
# Make sure to change the public/private keys before running the script
# Also change the IPs, IP ranges, and listening port if desired
# iptables-persistent currently requires user input
# add wireguard repo
sudo add-apt-repository ppa:wireguard/wireguard -y
@e-fu
e-fu / strategy.pine
Last active November 13, 2019 08:03
//@version=4
persistent_bull = 0.0
persistent_bull := nz(persistent_bull[1],0)
persistent_bear = 0.0
persistent_bear := nz(persistent_bear[1],0)
// https://medium.com/@coinpocalypse/a-simple-start-80fe92c92b15
strategy(title = "Strategy for Crypto, Forex, Shares, Futures, Options", shorttitle = "$$$$$$", overlay = true,
pyramiding = 0,
@e-fu
e-fu / keybase.md
Last active September 9, 2019 23:14

Keybase proof

I hereby claim:

  • I am e-fu on github.
  • I am efu (https://keybase.io/efu) on keybase.
  • I have a public key ASBPLDG9RpklAG-kagQdUxB6C5PQMavvl_RYjLV0YU0sPQo

To claim this, I am signing this object:

@e-fu
e-fu / app_controller_test.exs
Last active November 11, 2015 00:06
Namespaced and some actions as nested resources
defmodule Rolester.Admin.AppControllerTest do
use Rolester.ConnCase
alias Rolester.App
alias Rolester.Tenant
@valid_attrs %{name: "some content"}
@invalid_attrs %{}
setup do
@e-fu
e-fu / _form.html.haml
Created December 3, 2012 17:57
path in DB with Rails
= simple_form_for(@page) do |f|
= f.error_notification
.form-inputs
= f.input :name
= f.input :url
= f.input :permalink
= f.collection_select :parent_id, Page.order(:name), :id, :permalink, include_blank: true
.form-actions