Skip to content

Instantly share code, notes, and snippets.

View doktor500's full-sized avatar

David Molinero doktor500

View GitHub Profile
'use strict';
describe('Directive', function() {
var $rootScope;
var $compile;
var compileDirective = function (markup, scope) {
var el = $compile(markup)(scope);
scope.$digest();
return el;
};
@doktor500
doktor500 / MakeOpenVPN.sh
Created July 19, 2016 19:21 — forked from laurenorsini/MakeOpenVPN.sh
MakeOpenVPN.sh by Eric Jodoin
#!/bin/bash
# Default Variable Declarations
DEFAULT="Default.txt"
FILEEXT=".ovpn"
CRT=".crt"
KEY=".3des.key"
CA="ca.crt"
TA="ta.key"

UK

- QCon
- Scala exchange
- Bath Ruby
- Socrates UK
- DDD Exchange
- FullStack conf
- µCon
- Clojure exchange
import java.io.*;
import sun.misc.BASE64Decoder;
public class App {
public static void main(String[] args) {
String encodedBytes = "stringBase64";
try {
BASE64Decoder decoder = new BASE64Decoder();
byte[] decodedBytes;
@doktor500
doktor500 / wifi-rpi.md
Last active February 7, 2021 19:09
Setup WiFi AP in RPi

Setup WiFi AP in RPi

Install packages
sudo apt-get update
sudo apt-get upgrade

sudo apt install hostapd
sudo apt install dnsmasq