Skip to content

Instantly share code, notes, and snippets.

View redeltaglio's full-sized avatar
:octocat:
“The biggest battle is the war against ignorance.” --Atatürk

Riccardo Giuntoli EA4343URE redeltaglio

:octocat:
“The biggest battle is the war against ignorance.” --Atatürk
View GitHub Profile
Rank Type Prefix/Suffix Length
1 Prefix my+ 2
2 Suffix +online 6
3 Prefix the+ 3
4 Suffix +web 3
5 Suffix +media 5
6 Prefix web+ 3
7 Suffix +world 5
8 Suffix +net 3
9 Prefix go+ 2
#man ipsec
Additional Variables
A number of sysctl(8) variables are relevant to ipsec. These are
generally net.inet.ah.*, net.inet.esp.*, net.inet.ip.forwarding,
net.inet6.ip6.forwarding, and net.inet.ip.ipsec-*. Full explanations can
be found in sysctl(2), and variables can be set using the sysctl(8)
#man npppd
Normally npppd works with pipex(4) to accelerate IP packet forwarding,
@hyper3xpl0iter
hyper3xpl0iter / yubikey-gnome.sh
Created May 30, 2017 14:05
A shell script to properly configure GNOME to play nice with a Yubikey. This script allows you to use your Yubikey for GPG and SSH while leaving passwords and PK11 for GNOME keyring (Ubuntu 15.04-17.10)
#!/bin/bash
################################################################################
#
# filename: yubikey-gnome.sh
# description: script to install and configure GNOME for Yubikey GPG/SSH
# author: Andre Mattie
# email: [email protected]
# GPG: 3E72 5D19 3C2D C443 7894 2DD7 4112 2434 0AF0 30EA
# bitcoin: 1ACWeGCHdxwT2qoKConZtaRnP4NYY1cyKy
@reyk
reyk / vmctl start ubuntu -d ubuntu-16.10-server-cloudimg-amd64.raw -n nat -c
Last active July 8, 2021 04:09
OpenBSD vmm and meta-data running ubuntu-16.10-server-cloudimg-amd64.raw
- Get OpenBSD from http://www.openbsd.org/ ;)
- Find an Ubuntu cloud image on https://cloud-images.ubuntu.com/
- Get https://github.com/reyk/meta-data and configure it for cloud-init
- Run the VM ...
Script started on Thu Mar 30 01:53:50 2017
# qemu-img convert ubuntu-16.10-server-cloudimg-amd64.img ubuntu-16.10-server-cloudimg-amd64.raw
# vmctl start ubuntu -d ubuntu-16.10-server-cloudimg-amd64.raw -n nat -c
Connected to /dev/ttyp6 (speed 9600)
Changing serial settings was 0/0 now 3/0
@joemiller
joemiller / he-dns-update.sh
Last active September 4, 2024 18:46
script for updating dynamic DNS records on he.net (hurricane electric)
#!/bin/bash
#
# Script for updating DNS records on Hurricane Electirc's DNS system (https://dns.he.net).
#
# The record will be updated with the IP address that originates the request.
#
# Usage
# -----
#
# Create config file `/etc/he-dns-update.conf`:
@greginvm
greginvm / restore_grub_manjaro.txt
Last active December 21, 2024 07:27
Restore GRUB in UEFI + LVM + LUKS setup (Manjaro)
Setup: UEFI, LVM + LUKS encrypted drive
Bootloader: Grub
Links:
- https://wiki.manjaro.org/index.php/Restore_the_GRUB_Bootloader
-
Restore GRUB (boot into live env):
# get the encrypted partition (crypto_LUKS)
lsblk -f
@nlacourte
nlacourte / ipsec.conf
Created April 29, 2015 08:52
StrongSwan ipsec updown script for mangle TCPMSS
#Ipsec.conf example
conn vrackxxxxx_psk
ikelifetime=60m
keylife=20m
rekeymargin=3m
keyingtries=1
authby=secret
keyexchange=ikev2
mobike=no
auto=add
@fhriley
fhriley / edgerouter-qos
Last active April 16, 2023 05:35
EdgeRouter Lite QOS for upload bandwidth
# new fq-codel style
delete traffic-control
set traffic-control smart-queue wan-qos interface eth1
set traffic-control smart-queue wan-qos rate-up 34mbit
set traffic-control smart-queue wan-qos limit 600
set traffic-control smart-queue wan-qos target 2ms
sudo tc qdisc change dev eth1 parent 1:10 handle 100: fq_codel quantum 300
@heyalexej
heyalexej / gsm-setup.md
Last active June 30, 2024 10:23
SIM Card Management Through GSM Modem On Linux

SIM Card Management Over GSM Modem

A small guide on how to send and receive USSD codes on Linux

I am using the built in GSM (UMTS) modem of my Thinkpad X1 extensively because I am often in places with flaky internet connections. I connect through the standard Network Manager on Ubuntu and everything works fine. There was one major annoyance though. Every time I wanted to top up the SIM balance or book a new package, I needed a phone to send and receive USSD codes. So I took some time to figure out how to do it from the shell. I wrote this down as a help for others and a reminder for myself. Without further ado...

First intsall gammu and picocom.

~  sudo apt-get install -y gammu picocom

Basic

  • Don't try "unprivileged" build from start.
    • First do cross-dirs/cross-tools/cross-distrib as root (sudo).
    • Then change owner/mode of obj directories. This will make development easier.
  • Always use cross build (for development).
    • Otherwise you'll overwrite your /usr/include during build.
    • Cross build can't make release on OpenBSD, unfortunately (because of gnu/, where Makefile.bsd-wrapper is used). So cross build is only for development.