Skip to content

Instantly share code, notes, and snippets.

@Liandriz
Liandriz / Get-Traceroute.ps1
Created October 27, 2018 09:32 — forked from tylerapplebaum/Get-Traceroute.ps1
MTR for Powershell
<#
.SYNOPSIS
An MTR clone for PowerShell.
Written by Tyler Applebaum.
Version 2.0
.LINK
https://gist.github.com/tylerapplebaum/dc527a3bd875f11871e2
http://www.team-cymru.org/IP-ASN-mapping.html#dns
@Liandriz
Liandriz / user.css
Last active September 28, 2017 12:17
Shaarli Material user.css
/* Config perso de base - START */
body{
padding-top: 65px;
}
.header-main{
position: fixed;z-index: 10;top: 0;left: 0;right: 0;
}
/* Config perso de base - END */
@Liandriz
Liandriz / 01mac.sh
Created August 16, 2017 16:14 — forked from rsdy/01mac.sh
wicd random mac preconnect hook
#!/bin/sh
LOG=/tmp/mac
WIRELESS=wlan0
WIRED=eth0
mac_map() {
case "x$1" in
xfixed) mac='11:22:33:44:55:66'
;;
@Liandriz
Liandriz / framapiaf.user.js
Created June 22, 2017 11:12
Largeur des colonnes auto pour Mastodon
// ==UserScript==
// @name Framapiaf
// @namespace https://libox.fr
// @version 1
// @description Améliore l'affichage et l'ergonomie du réseau social Mastodon, source : https://framapiaf.org/@framasky/1279932
// @author Liandri
// @match *://*/web/*
// @grant GM_addStyle
// ==/UserScript==
(function() {

Keybase proof

I hereby claim:

  • I am Liandriz on github.
  • I am liandri (https://keybase.io/liandri) on keybase.
  • I have a public key whose fingerprint is 606B 593F 2B5B D8F6 2FB5 CA87 A1AF D7FA EB1D 4A0F

To claim this, I am signing this object:

@Liandriz
Liandriz / README.md
Created August 13, 2016 11:17 — forked from addyosmani/README.md
108 byte CSS Layout Debugger

CSS Layout Debugger

A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.

One-line version to paste in your DevTools

Use $$ if your browser aliases it:

~ 108 byte version

@Liandriz
Liandriz / reclaimWindows10.ps1
Created July 22, 2016 20:53 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Forked from http://pastebin.com/gQxCUkLP
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <disassembler@dasm.cz>
# Original Version: 1.4, 2016-01-16
# Tweaked based on personal preferences for @alirobe 2016-03-23 - v1.4.1
# NOTE: MAKE SURE YOU READ THIS SCRIPT CAREFULLY BEFORE RUNNING IT + ADJUST COMMENTING AS APPROPRIATE
# This script will reboot your machine when completed.
##########
# Ask for elevated permissions if required
@Liandriz
Liandriz / Linux Static IP
Created April 14, 2016 15:54 — forked from fernandoaleman/Linux Static IP
How To Configure Static IP On CentOS 6
## Configure eth0
#
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
TYPE=Ethernet
BOOTPROTO=static
param([int]$maxsize = 3840,[string]$folder = ".");
Get-ChildItem $folder -include *.jpg,*.jpe,*.jpeg,*.png -recurse -File | ForEach-Object {
$ext =$_.Extension;
[void][System.Reflection.Assembly]::LoadWithPartialName("System.Drawing")
$image = [System.Drawing.Image]::FromFile($_.FullName)
if ($image.width -gt $maxsize -or $image.height -gt $maxsize) {
$ImageEncoder = [System.Drawing.Imaging.Encoder]::Quality
$encoderParams = New-Object System.Drawing.Imaging.EncoderParameters(1)
$encoderParams.Param[0] = New-Object System.Drawing.Imaging.EncoderParameter($ImageEncoder, 100)
@Liandriz
Liandriz / danbooru.custom.css
Created March 16, 2016 19:42
Custom CSS for Danbooru
/*
//Danbooru Dark
//by cassist
//Modded by Liandri
*/
@-moz-document domain('donmai.us') {
/*General*/
/* Make Things Small ^tm */