Skip to content

Instantly share code, notes, and snippets.

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

Łaurent ʘ❢Ŧ Ŧough LaurentFough

👨‍🔬
🕺👨‍✈️🕵️‍♂️
View GitHub Profile
@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 <tim@sneath.org>
### 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/secure-tunnel@.service. 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..."
},
@LaurentFough
LaurentFough / Readme.md
Created July 26, 2017 03:50 — forked from fffonion/Readme.md
Simple GeoIP and ASNnum query server http://ip.yooooo.us
  • nginx with ngx_http_geoip_module, echo-nginx-module, lua-nginx-module is required; libgeoip needs to be installed and geoip database should be placed under /usr/share/GeoIP.
  • http://example.com for current GeoIP and http://example.com/ip for current IP only
  • http://example.com/x.x.x.x to query any IP.
  • http://example.com/domain-name for GeoIP of domain-name and http://example.com/domain-name/ip to return IP of domain-name only. If multiple IPs are set to single domain-name, all of them will be returned. Only A record will be used.
  • Sample requests are:
$ curl http://example.com/
x.x.x.x
Country, City
ASN number
@LaurentFough
LaurentFough / dvm.fish
Created April 26, 2017 23:46 — forked from 7sDream/dvm.fish
Set up dvm command for fish shell.
# Docker Version Manager wrapper for *nix
# Implemented as a POSIX-compliant function
# Should work on sh, dash, bash, ksh, zsh
# To use, source this file from your bash profile
begin # This ensures the entire script is downloaded
set DVM_SCRIPT_SOURCE $_
# __dvm_has() {
# type "$1" > /dev/null 2>&1