Skip to content

Instantly share code, notes, and snippets.

View PeterDaveHello's full-sized avatar

Peter Dave Hello PeterDaveHello

View GitHub Profile
@PeterDaveHello
PeterDaveHello / 50unattended-upgrades
Created October 14, 2021 12:16
Ubuntu apt auto update for non-production machines (/etc/apt/apt.conf.d/50unattended-upgrades)
Unattended-Upgrade::Allowed-Origins {
"${distro_id}:${distro_codename}";
"${distro_id}:${distro_codename}-security";
"${distro_id}ESMApps:${distro_codename}-apps-security";
"${distro_id}ESM:${distro_codename}-infra-security";
"${distro_id}:${distro_codename}-updates";
"${distro_id}:${distro_codename}-proposed";
"${distro_id}:${distro_codename}-backports";
};
@PeterDaveHello
PeterDaveHello / gist:1cec0dd60527b408b681964cc1f1daff
Created April 23, 2017 20:01 — forked from davidbalbert/gist:6815258
How to install custom SSL certificates on an ASUS RT-N66U running asuswrt-merlin
# 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
0
# 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
@PeterDaveHello
PeterDaveHello / make.conf
Created December 27, 2015 09:32
My FreeBSD /etc/make.conf
WITH_PKGNG=yes
NO_INET6?=YES
NO_PROFILE?=YES
CPUTYPE=native
CFLAGS+=-march=native -O2 -pipe -fno-strict-aliasing
COPTFLAGS+=-O2 -pipe -funroll-loops -ffast-math -fno-strict-aliasing
OPTIMIZED_CFLAGS?=YES
BUILD_OPTIMIZED?=YES
WITH_CPUFLAGS?=YES
WITH_OPTIMIZED_CFLAGS?=YES
@PeterDaveHello
PeterDaveHello / extc++.h
Created June 9, 2015 17:55
gcc-4.9.2 precompiled headers
// 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.