Skip to content

Instantly share code, notes, and snippets.

@dgoujard
dgoujard / adding-tailscale-to-edgerouter.md
Created January 22, 2022 13:08 — forked from lg/adding-tailscale-to-edgerouter.md
Add tailscale to an EdgeRouter and surviving system upgrade

Adding tailscale to an EdgeRouter (and surviving system upgrades)

I suggest you run sudo bash on all of these so you're the root user.

Installing

  1. Download tailscale and put the files in /config/. Find the latest stable or unstable version for your EdgeRouter's processor (ex. ER4 is mips and ERX is mipself)
sudo bash    # if you havent already
@dgoujard
dgoujard / calico-tc.yaml
Created February 29, 2020 17:28 — forked from senseab/calico.yaml
deploy calico in k3s
# Usage in k3s
# set k3s server with `--flannel-backend=none`
# restart all k3s component, containerd included.
# use this manifest with `kubectl apply -f <manifest>
# ALL done.
---
# Source: calico/templates/calico-config.yaml
# This ConfigMap is used to configure a self-hosted Calico installation.
kind: ConfigMap
apiVersion: v1
@dgoujard
dgoujard / bird-vultr.conf
Created February 16, 2020 21:47 — forked from aveao/bird1-bird-vultr.conf
BIRD configs for BGP stuffs (HE Tunnelbroker, Vultr etc)
router id [our IPv4];
protocol bgp vultr
{
local as [our ASN];
source address [our IPv4 from vultr];
import all;
export filter {
if net ~ [[the IPv4 block we want to announce]] then accept;
reject;
@dgoujard
dgoujard / index.php
Created April 8, 2018 15:36
PHP Guzzle <-> Docker socket connector
<?php
//php composer.phar require guzzlehttp/guzzle:~6.0
//php composer.phar require php-http/socket-client
//php composer.phar require php-http/message
//php composer.phar require php-http/client-common
require 'vendor/autoload.php';
use GuzzleHttp\Psr7\Uri;
use Http\Client\Common\Plugin\AddHostPlugin;
@dgoujard
dgoujard / influxdb.lua
Created April 16, 2016 11:57 — forked from jeanfbrito/influxdb.lua
NodeMCU and InfluxDB
-- Your access point's SSID and password
local SSID = "greenhouse"
local SSID_PASSWORD = "senhasupersecreta"
local DEVICE = "device001"
local temperature = 27.5
-- configure ESP as a station
wifi.setmode(wifi.STATION)
wifi.sta.config(SSID,SSID_PASSWORD)
wifi.sta.autoconnect(1)
@dgoujard
dgoujard / keybase.md
Last active October 11, 2015 06:51
keybase.md

Keybase proof

I hereby claim:

  • I am dgoujard on github.
  • I am dgoujard (https://keybase.io/dgoujard) on keybase.
  • I have a public key whose fingerprint is 9E27 4A60 6FDD 7660 C577 D297 DFB8 7200 AB97 C94D

To claim this, I am signing this object:

You'll want to replace 'localwiki.org' with your hostname here.
----------------------
Add to localsettings.py:
OLWIDGET_CUSTOM_LAYER_TYPES = {
'cachedcloudmade': """OpenLayers.Layer.CachedCloudMade('CachedCloudMade',
['//map-a.localwiki.org/tile/ca694687020d468283a545db191bcb81/35165/256/',
'//map-b.localwiki.org/tile/ca694687020d468283a545db191bcb81/35165/256/',
'//map-c.localwiki.org/tile/ca694687020d468283a545db191bcb81/35165/256/'])""",
}
<?php
class Agent extends Fuel\Core\Agent {}
class Arr extends Fuel\Core\Arr {}
class Asset extends Fuel\Core\Asset {}
class Cache extends Fuel\Core\Cache {}
class CacheNotFoundException extends Fuel\Core\CacheNotFoundException {}
class CacheExpiredException extends Fuel\Core\CacheExpiredException {}
class Cli extends Fuel\Core\Cli {}
class Config extends Fuel\Core\Config {}
@dgoujard
dgoujard / default
Created September 11, 2011 21:03
/etc/nginx/site-enabled/default
server {
listen 80;
location / {
root html;
index index.php index.html;
if (-f $request_filename) {
access_log off;
expires max;
}
@dgoujard
dgoujard / fastcgi_params
Created September 11, 2011 21:01
/etc/nginx/fastcgi_params
fastcgi_connect_timeout 60;
fastcgi_send_timeout 180;
fastcgi_read_timeout 180;
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
fastcgi_intercept_errors on;
fastcgi_param QUERY_STRING $query_string;