Skip to content

Instantly share code, notes, and snippets.

@lleaff
lleaff / Youtube_-_Copy_short_URL_to_clipboard.user.js
Last active February 17, 2022 16:10
Youtube Userscript: Copy short URL to clipboard on video title click
// ==UserScript==
// @name Youtube - Copy short URL to clipboard
// @namespace lleaff
// @supportURL https://gist.github.com/lleaff/48db35c180ab1b684a0f2c7d9c493244#comments
// @match https://www.youtube.com/*
// @version 2
// @run-at document-end
// @grant GM_setClipboard
// @noframes
// @description Copy short URL to clipboard on video title click
@lleaff
lleaff / imagepanel.php
Last active July 30, 2016 01:16
Create a grid of images from those in a given webpage
#!/usr/bin/env php
<?php
/* =Config
*------------------------------------------------------------*/
$FONT_PATH = "OpenSans-Regular.ttf";
/* pixels */
$CELL_WIDTH_IDEAL = 100;
@lleaff
lleaff / skippy-xd.rc
Created November 2, 2015 14:13
~/.config/skippy-xd/skippy-xd.rc
# Copy this to ~/.config/skippy-xd/skippy-xd.rc and edit it to your liking
#
# Notes:
#
# - colors can be anything XAllocNamedColor can handle
# (like "black" or "#000000")
#
# - distance is a relative number, and is scaled according to the scale
# factor applied to windows
#
#!/bin/bash
#
# skippy-wrapper - B. Murphy
#
# a work around for the bug in skippy-xd that prevents minimized
# windows being included in the selection screen.
#
# dependency: xdotool
#
@lleaff
lleaff / Unreal Engine AZERTY Keyboard shortcuts
Created March 4, 2015 23:35
Editor preferences > Keyboard shortcuts > Import...
[UserDefinedGestures]
UserDefinedGestures=~OpenBracket~~Quote~BindingContext~Quote~:~Quote~EditorViewportClient~Quote~,~Quote~CommandName~Quote~:~Quote~Forward~Quote~,~Quote~Control~Quote~:false,~Quote~Alt~Quote~:false,~Quote~Shift~Quote~:false,~Quote~Command~Quote~:false,~Quote~Key~Quote~:~Quote~Z~Quote~~CloseBracket~
UserDefinedGestures=~OpenBracket~~Quote~BindingContext~Quote~:~Quote~EditorViewportClient~Quote~,~Quote~CommandName~Quote~:~Quote~FovZoomOut~Quote~,~Quote~Control~Quote~:false,~Quote~Alt~Quote~:false,~Quote~Shift~Quote~:false,~Quote~Command~Quote~:false,~Quote~Key~Quote~:~Quote~W~Quote~~CloseBracket~
UserDefinedGestures=~OpenBracket~~Quote~BindingContext~Quote~:~Quote~EditorViewportClient~Quote~,~Quote~CommandName~Quote~:~Quote~Left~Quote~,~Quote~Control~Quote~:false,~Quote~Alt~Quote~:false,~Quote~Shift~Quote~:false,~Quote~Command~Quote~:false,~Quote~Key~Quote~:~Quote~Q~Quote~~CloseBracket~
UserDefinedGestures=~OpenBracket~~Quote~BindingContext~Quote~:~Quote~EditorViewportClient~Quote~,~Quote~C