Skip to content

Instantly share code, notes, and snippets.

Working from home

Peter Dave Hello PeterDaveHello

View GitHub Profile
View Cord-in-a-box-patched-install
sudo sed -i -E 's/\/(([a-z]+.)?archive|security)?|\/\//\/\//g' /etc/apt/sources.list
sudo apt update
sudo apt install -y git
git clone --depth 1
bash ./ -c
View Cord-in-a-box-patched-install
curl --compressed -o
curl --compressed -o patch_ciab
sudo sed -i 's/' /etc/apt/sources.list
patch < patch_ciab
bash ./ -c
PeterDaveHello / gist:1cec0dd60527b408b681964cc1f1daff
Created Apr 23, 2017 — forked from davidbalbert/gist:6815258
How to install custom SSL certificates on an ASUS RT-N66U running asuswrt-merlin
View gist:1cec0dd60527b408b681964cc1f1daff
# First, enable SSH in the Administration->System tab.
# Then log in to the device.
# Verify that https_crt_save is off
admin@RT-N66U:/tmp/home/root# nvram get https_crt_save
# Enable https_crt_save and verify that it was set correctly
admin@RT-N66U:/tmp/home/root# nvram set https_crt_save=1
admin@RT-N66U:/tmp/home/root# nvram get https_crt_save
View vps
PeterDaveHello / make.conf
Created Dec 27, 2015
My FreeBSD /etc/make.conf
View make.conf
CFLAGS+=-march=native -O2 -pipe -fno-strict-aliasing
COPTFLAGS+=-O2 -pipe -funroll-loops -ffast-math -fno-strict-aliasing
PeterDaveHello / extc++.h
Created Jun 9, 2015
gcc-4.9.2 precompiled headers
View extc++.h
// C++ includes used for precompiling extensions -*- C++ -*-
// Copyright (C) 2006-2014 Free Software Foundation, Inc.
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3, or (at your option)
// any later version.
You can’t perform that action at this time.