Skip to content

Instantly share code, notes, and snippets.

View enilsen16's full-sized avatar
🙋‍♂️
Oh hai

Erik Nilsen enilsen16

🙋‍♂️
Oh hai
View GitHub Profile

Keybase proof

I hereby claim:

  • I am enilsen16 on github.
  • I am enilsen16 (https://keybase.io/enilsen16) on keybase.
  • I have a public key ASDFzznzJTYqQp-dltSaEEf_deoGo0I8kZAGWSiW7_xD2Ao

To claim this, I am signing this object:

@enilsen16
enilsen16 / my_app.ex
Created November 1, 2016 20:19 — forked from alanpeabody/my_app.ex
Websockets in Elixir with Cowboy and Plug
defmodule MyApp do
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
Plug.Adapters.Cowboy.child_spec(:http, MyApp.Router, [], [
dispatch: dispatch
])
@enilsen16
enilsen16 / twilio_token.ex
Last active August 21, 2016 22:24
Twilio Compadibility Tokens in elixir
defmodule TwilioToken do
import Joken
@app Application.get_env(:speaker, :twilio_app)
@sid Application.get_env(:ex_twilio, :account_sid)
@token Application.get_env(:ex_twilio, :auth_token)
def generate do
%{scope: "scope:client:outgoing?appSid=#{@app}"}
|> token
@enilsen16
enilsen16 / up-and-running-with-edeliver-on-do.md
Created March 26, 2016 22:24 — forked from mattweldon/up-and-running-with-edeliver-on-do.md
Getting Elixir / Phoenix running on Digital Ocean with edeliver

Build Server

  • Go to Digital Ocean
  • Create new droplet
  • London
  • Ubuntu
  • No apps
  • Add SSH keys
javascript:void( (function(){ var current_location=location.href.replace(/^http\:\/\/(.*)$/,"$1"); var current_location=current_location.split("?")[0]; location.href="http://www.google.com/search?q=c..."+escape(current_location); })())
@enilsen16
enilsen16 / JSRat.ps1
Created January 29, 2016 06:12
Fileless JavaScript Reverse HTTP Shell
<#
Author: Casey Smith @subTee
License: BSD3-Clause
.SYNOPSIS
Simple Reverse Shell over HTTP. Execute Commands on Client.
2016-01-25 12:53:38 -0800
./build.py
--confirm
--jobs
8
This is the Qt Open Source Edition.
@enilsen16
enilsen16 / enable_tor.sh
Last active September 28, 2018 17:58
Enable/Disable Tor
#!/bin/bash
INTERFACE=Wi-Fi
networksetup -setsocksfirewallproxy $INTERFACE 127.0.0.1 9050 off
networksetup -setsocksfirewallproxystate $INTERFACE on
tor
networksetup -setsocksfirewallproxystate $INTERFACE off
@enilsen16
enilsen16 / dropkick.sh
Created December 18, 2015 22:10
Disable Wifi Cameras
#!/bin/bash
#
# DROPKICK.SH
#
# Detect and Disconnect the DropCam and Withings devices some people are using to
# spy on guests in their home, especially in AirBnB rentals. Based on Glasshole.sh:
#
# http://julianoliver.com/output/log_2014-05-30_20-52
#
# This script was named by Adam Harvey (http://ahprojects.com), who also
@enilsen16
enilsen16 / osx-for-hackers.sh
Last active October 4, 2015 00:41 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox...
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'