Skip to content

Instantly share code, notes, and snippets.

@e-fu
e-fu / wg_install.sh
Created Sep 20, 2020 — forked from Anachron/wg_install.sh
A script to spin up a Wireguard VPN server with Unbound recursive DNS in a hurry
View wg_install.sh
#!/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
View strategy.pine
//@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,
View keybase.md

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 Nov 11, 2015
Namespaced and some actions as nested resources
View app_controller_test.exs
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 Dec 3, 2012
path in DB with Rails
View _form.html.haml
= 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