Skip to content

Instantly share code, notes, and snippets.

Leeroy akaleeroy

Block or report user

Report or block akaleeroy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@paulmallon
paulmallon / install.ps1
Last active Jun 13, 2019
Post windows 10 install script to fix UI stuff and privacy settings.
View install.ps1
#
# Windows 10 post install script
#
# Please see post_install_part1.ps1 and post_install_part2.ps1 for details
#
@thehig
thehig / screenshots.spec.js
Created Sep 19, 2018
js: Storyshots with multiple device/viewport puppeteer screenshots
View screenshots.spec.js
import path from 'path';
import fs from 'fs';
import initStoryshots from '@storybook/addon-storyshots';
import { imageSnapshot } from './storyshots-puppeteer';
import devices from 'puppeteer/DeviceDescriptors';
// Store the screenshots outside the source folder to prevent jest from 'watching' them.
// Since they're outside the src directory we nav to them relatively
const ROOTDIR = path.join(__dirname, '../../../');
@SeriouslyMoe
SeriouslyMoe / fb2k-scripts.md
Last active Mar 18, 2019
foobar2000 Scripts
View fb2k-scripts.md

Foobar2000 scripts

Personal scripts deviating from the defaults provided by foobar2000 out of the box. Curated for my own directory setup and tags, but feel free to use.

Window Title

Playing: ▶ Catch Us by Odyssey (feat. Mortimer)

Paused: Various Artists | foobar2000

View punto.ahk
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; This should be replaced by whatever your native language is. See
; http://msdn.microsoft.com/en-us/library/dd318693%28v=vs.85%29.aspx
; for the language identifiers list.
ru := DllCall("LoadKeyboardLayout", "Str", "00000419", "Int", 1)
@strayge
strayge / shortcuts.ahk
Last active Mar 18, 2018
windows shortcuts
View shortcuts.ahk
; # - win, ! - alt, ^ - ctrl, + - shift
#MaxHotkeysPerInterval 200
global en := DllCall("LoadKeyboardLayout", "Str", "00000409", "Int", 1)
ChangeActiveLayoutToEng()
{
WinGet, window_id, ID, A
pid := DllCall("GetWindowThreadProcessId", "UInt", window_id, "Ptr", 0)
@sidneys
sidneys / youtube-classic.sort-rearrange-organize-playlists.js
Last active Apr 25, 2019
Greasemonkey | YouTube | Advanced Playlist Sorting
View youtube-classic.sort-rearrange-organize-playlists.js
// ==UserScript==
// @name YouTube (Classic) | Sort, Rearrange & Organize Playlists
// @namespace de.sidneys.userscripts
// @homepage https://gist.githubusercontent.com/sidneys/27e704ec4a1d9bad311d634cbab2f218/raw/
// @version 29.0.0
// @description Organize and rearrange your YouTube playlists. Real server-side sorting by duration, title, channel and language.
// @author sidneys
// @icon https://www.youtube.com/favicon.ico
// @noframes
// @include http*://www.youtube.com/*
@joyrexus
joyrexus / README.md
Last active Aug 15, 2019
collapsible markdown
View README.md

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")
@marcus-at-localhorst
marcus-at-localhorst / bookmarklet.js
Last active Jul 21, 2018
[Markdown Quote from Website - Bookmarklet] Select text, click the bookmarklet, get an overlay with the selection styled as Markdown quote with source, click "copy" to get the selection copied to your clipboard.Uses https://github.com/zenorocha/clipboard.js
View bookmarklet.js
/**
* Markdown Quote to Clipboard
*/
var mo = {
version: 1,
btnId: 'clipboard-btn-dceaeae8-1557-4454-883c-05ae99312192',
id:'clipboard-dceaeae8-1557-4454-883c-05ae99312192',
textareaId: 'clipboard-textarea-dceaeae8-1557-4454-883c-05ae99312192',
uniqueId: 'clipboard-script-dceaeae8-1557-4454-883c-05ae99312192',
@christianrondeau
christianrondeau / AutoKeyboardLayout.ahk
Last active May 18, 2019
Automatic keyboard layout change on window focus using AutoHotkey
View AutoKeyboardLayout.ahk
; How to use:
; 1. Install AuthotKey: https://www.autohotkey.com
; 2. Save this script in `My Documents`
; 3. Create a shortcut in the Startup folder (`Win`+`R`, `shell:startup`)
; 4. Change the configurations below
; 5. Start and test the script!
; Configuration
; Cultures can be fetched from here: https://msdn.microsoft.com/en-us/library/windows/desktop/dd318693(v=vs.85).aspx
View RAM Upgrade.vbs
'''''''''''''''''''''''''''''
' Purpose: Allows you to easily get the RAM configuration of a computer. LAN Sweeper won't tell you the RAM type, but this utility will. This should be useful for RAM upgrades.
' Requirements: Probably admin in Active Directory
' Written by: Alex Yancey
' Date: September 15, 2016
'''''''''''''''''''''''''''''
' More info about SMBIOS can be found in the SMBIOS specification: https://www.dmtf.org/standards/smbios, and from this article: http://www.codeguru.com/cpp/misc/misc/system/article.php/c12347/SMBIOS-Demystified.htm
computer_name = InputBox("Computer name: ", "RAM Identifier")
You can’t perform that action at this time.