Skip to content

Instantly share code, notes, and snippets.

View Get-Traceroute.ps1
<#
.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 Sep 28, 2017
Shaarli Material user.css
View 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 Aug 16, 2017 — forked from rsdy/01mac.sh
wicd random mac preconnect hook
View 01mac.sh
#!/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 Jun 22, 2017
Largeur des colonnes auto pour Mastodon
View framapiaf.user.js
// ==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() {
View keybase.md

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 Aug 13, 2016 — forked from addyosmani/README.md
108 byte CSS Layout Debugger
View README.md

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 Jul 22, 2016 — 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
View reclaimWindows10.ps1
##########
# 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 Apr 14, 2016 — forked from fernandoaleman/Linux Static IP
How To Configure Static IP On CentOS 6
View Linux Static IP
## 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
View resize.ps1
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 Mar 16, 2016
Custom CSS for Danbooru
View danbooru.custom.css
/*
//Danbooru Dark
//by cassist
//Modded by Liandri
*/
@-moz-document domain('donmai.us') {
/*General*/
/* Make Things Small ^tm */
You can’t perform that action at this time.