Skip to content

Instantly share code, notes, and snippets.

View ooonea's full-sized avatar
🏠
Working from home

ooonea.eth ooonea

🏠
Working from home
View GitHub Profile
#!/bin/sh
revert() {
xset dpms 0 0 0
}
trap revert HUP INT TERM
xset +dpms dpms 5 5 5
i3lock -n
revert
@ooonea
ooonea / 1-setup.md
Created May 29, 2022 16:00 — forked from troyfontaine/1-setup.md
Signing your Git Commits using GPG on MacOS Sierra/High Sierra

Methods of Signing with GPG

Last updated March 28, 2021

There are now two ways to approach this:

  1. Using gpg and generating keys
  2. Using Kryptonite by krypt.co

This Gist explains how to do this using gpg in a step-by-step fashion. Kryptonite is actually wickedly easy to use-but you will still need to follow the instructions

@ooonea
ooonea / ufw_vpn_killswitch_tutorial.md
Created May 13, 2022 11:27 — forked from Necklaces/ufw_vpn_killswitch_tutorial.md
GNU/Linux UFW VPN kill switch tutorial

GNU/Linux UFW VPN kill switch tutorial

This is a quick guide for setting up a kill switch using UFW (Uncomplicated FireWall). It is assumed you are using OpenVPN and optionally Network-Manager with network-manager-openvpn.

1. (Optional) IP Addresses

Before we can start we're going to need the IP address (or the IP addresses) of your VPN so that we can whitelist those later on, write them down. They are obviously going to be different for every VPN and VPNs with multiple servers, so I'll leave this up to you.

2. Install UFW

On some systems UFW is installed and enabled by default (Ubuntu, for example). Installation procedure is going to be different for every distribution of GNU/Linux, but it's usually something like

@ooonea
ooonea / keybase.md
Last active December 2, 2019 12:17

Keybase proof

I hereby claim:

  • I am lucenera on github.
  • I am lucenera (https://keybase.io/lucenera) on keybase.
  • I have a public key ASDmCF-QwtsqnnpS9UWxSy8QLyCTMM-GfQXgztfKyjCHPAo

To claim this, I am signing this object:

@ooonea
ooonea / 3.11.8-diagnostics.txt
Created November 1, 2019 15:48
3.11.8 diagnostics
This file has been truncated, but you can view the full file.
############## atsha
0000000C0000BE09
************** atsha
############## certs
Package: cznic-cacert-bundle
Version: 38-3
Depends: libc, cert-backup, c-rehash
Status: install user installed
Architecture: mvebu
Installed-Time: 1570492974
@ooonea
ooonea / 2019-10-31_d754a4cd.txt
Created November 1, 2019 13:17
Diagnostics for PPPoE problem
############## cron
== Is cron running? ==
4751 root 732 S /usr/sbin/cron -n
== Package providing crond or cron ==
There is no crond nor cron executable!
== Cronfiles from /etc/cron.d ==
/etc/cron.d/get-api:MAILTO=""
/etc/cron.d/get-api:*/30 * * * * root /usr/bin/get-api-crl
/etc/cron.d/logrotate:MAILTO=""
/etc/cron.d/logrotate:12 * * * * root /usr/sbin/logrotate -s /tmp/logrotate.state /etc/logrotate.conf
@ooonea
ooonea / network
Created October 30, 2019 09:11
/etc/config/network on Turris OS 3.11.8
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd2a:5be2:a9d1::/48'