Skip to content

Instantly share code, notes, and snippets.

View LaurentFough's full-sized avatar
👨‍🔬
🕺👨‍✈️🕵️‍♂️

Łaurent ʘ❢Ŧ Ŧough LaurentFough

👨‍🔬
🕺👨‍✈️🕵️‍♂️
View GitHub Profile
@LaurentFough
LaurentFough / pf.conf
Created April 14, 2021 23:03 — forked from nathwill/pf.conf
a dummy's sample pf.conf
# $OpenBSD: pf.conf,v 1.52 2013/02/13 23:11:14 halex Exp $
#
# See pf.conf(5) for syntax and examples.
#
# Remember to set net.inet.ip.forwarding=1 and/or net.inet6.ip6.forwarding=1
# in /etc/sysctl.conf if packets are to be forwarded between interfaces.
### Macros
# system
@LaurentFough
LaurentFough / README.md
Created December 9, 2020 23:38 — forked from miguelmota/README.md
Multiple accounts with Mutt E-Mail Client (gmail example)

How to set up multiple accounts with Mutt E-mail Client

Thanks to this article by Christoph Berg

Instructions

Directories and files

~/
@LaurentFough
LaurentFough / article-style.css
Created August 6, 2020 00:37 — forked from bangedorrunt/article-style.css
GoldenDict Dark Theme
body
{
margin-top: 1px;
margin-right: 3px;
margin-left: 2px;
margin-bottom: 3px;
background: #201F1F;
color: white;
font-family: Bookerly, Segoe UI, Palatino Linotype, Arial Unicode MS;
}
@LaurentFough
LaurentFough / i3-get-window-criteria
Created May 23, 2020 23:42 — forked from jottr/i3-get-window-criteria
Get window criteria to use with i3 window placement. Taken from: http://bit.ly/1e9pcfe
#!/bin/sh
# i3-get-window-criteria - Get criteria for use with i3 config commands
# To use, run this script, then click on a window.
# Output is in the format: [<name>=<value> <name>=<value> ...]
# Known problem: when WM_NAME is used as fallback for the 'title="<string>"' criterion,
# quotes in "<string>" are not escaped properly. This is a problem with the output of `xprop`,
# reported upstream: https://bugs.freedesktop.org/show_bug.cgi?id=66807
@LaurentFough
LaurentFough / iptables.plugin.zsh
Created May 9, 2020 22:50
OhMyZSH - iptables plug-ins
# Some useful iptables aliases for New SysAdmins
alias fw_show="iptables -L -n -v" # Displaying the Status of Your Firewall
alias fw_show_line="iptables -n -L -v --line-numbers" # Display Line
alias fw_start="service iptables start" # Start the Firewall
alias fw_restart="service iptables restart" # Restart the Firewall
alias fw_stop="service iptables stop" # Stop the Firewall
alias fw_save="service iptables save" # Save the Firewall
alias fw_icmp_drop="iptables -A INPUT -p icmp --icmp-type echo-request -j DROP" # Block ICMP Ping Request
alias fw_flush="iptables -F"
@LaurentFough
LaurentFough / Security of cloaks.md
Created May 5, 2020 02:03 — forked from maxteufel/Security of cloaks.md
About the security of (unaffiliated) cloaks on freenode

Copyright (c) 2014, 2016, 2017 M. Teufel

Unlimited redistribution and modification of this document is allowed provided that the above copyright notice and this permission notice remains in tact.


If you are reading this, you probably asked for a (unaffiliated) cloak on freenode because you wanted to hide your IP or hostname.

This text is here to tell you that cloaks and vHosts don't hide your IP very well. Cloaks on freenode show your (lack of) affiliation with a project or a group being hosted on freenode.

@LaurentFough
LaurentFough / lefile.md
Created May 1, 2020 06:06 — forked from schleumer/lefile.md
My ArchLinux setup

Steps to set up a Arch Linux

Install vim <3

pacman -Syu

pacman -S vim

Create partition

fdisk /dev/sda

Format partition

@LaurentFough
LaurentFough / archlinux-rpi3-serial-and-bluetooth.md
Created April 22, 2020 18:38 — forked from yeokm1/archlinux-rpi3-serial-and-bluetooth.md
Arch Linux Raspberry Pi 3 configuration to use both Serial Debug Port and Bluetooth

The new Raspberry Pi 3 released on 29 Feb 2016 has issues with its UART port as the pinout GPIO 14/15 on the pin header is now based on a low throughput mini-UART.

To understand the issue better than reading the wall of text below, you can see the talk I gave on this issue.

The actual hardware UART on the BCM2837 SoC has now been assigned to handle Bluetooth with the BCM43438 Wifi/Bluetooth chip. More details can be found here and here.

This mini-UART does not produce a stable baud rate as it fluctuates based on the Core clock speed whenever it rises or falls. The result is that the serial debug output is practically unusable. On Raspbian you may see garbage or nothing at all. The solution is simple, add core_freq=250 to /boot/config.txt to cap the core frequency to a constant value. This optio

@LaurentFough
LaurentFough / arch-mac-mini.md
Created April 18, 2020 17:49 — forked from andrsd/arch-mac-mini.md
Install Arch linux on Mac Mini (late 2012)

Install Arch Linux on Mac mini

We will be creating dual boot for OS X and Linux with no special boot loader. For other setup, refer to [1]. We will keep all data on an external hard drive, so we do not need huge amount of space for the linux system. We will install from an USB thumb drive (will need at least 1GB in size), newer Minis do not have CD roms.

Prepare the disk in Mac OS X (El Capitan)

@LaurentFough
LaurentFough / op_session.sh
Created April 8, 2020 17:25 — forked from scottrbaxter/op_session.sh
1password cli session check and expiration variable
#!/usr/bin/env bash
# starts (or restarts) a 1password cli session, sets 30 minute countdown variable
# use: OP_CLOUD_ACCOUNT="[your-account-name]" source /path/to/op_session.sh command
# e.g.: OP_CLOUD_ACCOUNT="familyname" source ~/op_session.sh get account
check_session(){
# attempt sign in if session is not active