Skip to content

Instantly share code, notes, and snippets.

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

Łaurent ʘ❢Ŧ Ŧough LaurentFough

👨‍🔬
🕺👨‍✈️🕵️‍♂️
View GitHub Profile
@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
@echo off
Title Converter Office 2016 Retail to Volume
echo Press Enter to start VL-Conversion...
echo.
pause
echo.
for /f "tokens=6 delims=[]. " %%G in ('ver') do set win=%%G
@LaurentFough
LaurentFough / profile.ps1
Created January 6, 2020 19:44 — forked from timsneath/profile.ps1
PowerShell template profile: adds some useful aliases and functions
### PowerShell template profile
### Version 1.03 - Tim Sneath <[email protected]>
### From https://gist.github.com/timsneath/19867b12eee7fd5af2ba
###
### This file should be stored in $PROFILE.CurrentUserAllHosts
### If $PROFILE.CurrentUserAllHosts doesn't exist, you can make one with the following:
### PS> New-Item $PROFILE.CurrentUserAllHosts -ItemType File -Force
### This will create the file and the containing subdirectory if it doesn't already
###
### As a reminder, to enable unsigned script execution of local scripts on client Windows,
@LaurentFough
LaurentFough / Installing Arch on a ThinkPad X1 Extreme.md
Created December 22, 2019 06:07 — forked from CodingCellist/Installing-Arch-on-a-ThinkPad-X1-Extreme-Gen-1.md
A detailed overview of how I installed Arch Linux on my Lenovo ThinkPad X1 Extreme, having never installed Arch before.

DISCLAIMER

I am not responsible for any damages, loss of data, system corruption, or any other mishap you may somehow cause by following this guide.

This is mainly a step-by-step reminder/log for myself of how I installed Arch on my laptop. I am putting this out there in case it is useful for someone else, it is not intended to be an official guide. As a result, you may find that this guide is very tedious or lists a lot of unnecessary/intuitive steps or just straight up does things in a way that is considered bad practice. Apart from the latter, this is intentional, as I did not find these steps intuitive at all when

basic pfctl control

Related: http://www.OpenBSD.org Last update: Tue Dec 28, 2004 Note: this document is only provided as a basic overview for some common pfctl commands and is by no means a replacement for the pfctl and pf manual pages.

General PFCTL Commands

disable packet-filtering: pfctl -d

@LaurentFough
LaurentFough / pfctl-cheat-sheet-gist.txt
Last active December 12, 2019 08:12
pfctl cheat sheet
# basic pfctl control
# ==
# Related: http://www.OpenBSD.org
# Last update: Tue Dec 28, 2004
# ==
# Note:
# this document is only provided as a basic overview
# for some common pfctl commands and is by no means
# a replacement for the pfctl and pf manual pages.
@LaurentFough
LaurentFough / README-setup-tunnel-as-systemd-service.md
Created February 28, 2019 08:11 — forked from drmalex07/README-setup-tunnel-as-systemd-service.md
Setup a secure (SSH) tunnel as a systemd service. #systemd #ssh #ssh-tunnel #ssh-forward

README

Create a template service file at /etc/systemd/system/[email protected]. The template parameter will correspond to the name of target host:

[Unit]
Description=Setup a secure tunnel to %I
After=network.target
@LaurentFough
LaurentFough / index.php
Created September 14, 2018 08:16
Remake of the famous Raspberry Pi Sysinfo Script
<?php
// modified by PROXIMO https://gist.github.com/PROX1MO
// Remake of the famous Raspberry Pi Sysinfo Script
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 26 May 1983 13:00:00 GMT");
header("Pragma: no-cache");
function NumberWithCommas($in)
{
return number_format($in);
}
@LaurentFough
LaurentFough / CBC_Podcast_Data.json
Last active August 27, 2018 04:26
CBC Podcast Data (oldish)
[
{
"_comment": "https://github.com/caryan/CBC-Radio-Player/blob/develop/resources/stationData/PodCastData.json",
},
{
"RSSFeed": "http://www.cbc.ca/podcasting/includes/andthewinneris.xml",
"description": "Award-winning radio fresh from the winners-circle to your computer. From the Peabody Awards, to the Prix Italia to the New York Festivals - every mp3 is a champ.",
"imgLink": "http://www.cbc.ca/podcasting/images/promo-andthewinneris-sm.jpg",
"title": "And the Winner Is..."
},