Skip to content

Instantly share code, notes, and snippets.

@ScottHutchinson
ScottHutchinson / install-vsix.ps1
Last active April 12, 2025 09:57
PowerShell scripts for batch installing Visual Studio extensions
# Based on http://nuts4.net/post/automated-download-and-installation-of-visual-studio-extensions-via-powershell
param([String] $PackageName)
$ErrorActionPreference = "Stop"
$baseProtocol = "https:"
$baseHostName = "marketplace.visualstudio.com"
$Uri = "$($baseProtocol)//$($baseHostName)/items?itemName=$($PackageName)"
@rubyu
rubyu / karabiner-elements.json
Last active April 11, 2023 16:14
F1-12, ←↑↓→, Home-End, PageUp-PageDown
{
"title": "F1-12, ←↑↓→, Home-End, PageUp-PageDown",
"rules": [
{
"description": "fn + 1 -> F1",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "1",
@hvmonteiro
hvmonteiro / config
Created January 29, 2018 14:48
Terminator terminal configuration file with all keybinds disabled
[global_config]
enabled_plugins = TerminalShot, LaunchpadCodeURLHandler, APTURLHandler, Logger, MavenPluginURLHandler, LaunchpadBugURLHandler
title_font = Sans 10
title_inactive_fg_color = "#ffffff"
title_transmit_bg_color = "#494949"
title_use_system_font = False
[layouts]
[[default]]
[[[child1]]]
parent = window0
@santisbon
santisbon / Search my gists.md
Last active April 4, 2025 21:29
How to search gists.

Enter this in the search box along with your search terms:

Get all gists from the user santisbon.
user:santisbon

Find all gists with a .yml extension.
extension:yml

Find all gists with HTML files.
language:html

@mklement0
mklement0 / New-EncodingTestFiles.ps1
Last active August 16, 2022 08:18
PowerShell scripts for creating and reading test files with the standard Unicode character encoding schemes and default encodings.
<#
.SYNOPSIS
Creates test text-based files with various character encodings.
.DESCRIPTION
Creates text-based test files using
* all 5 byte order-marked Unicode character encoding schemes,
both with and without BOM (Unicode signature)
* default encodings,
with the the platform's default encoding, [System.Text.Encoding]::Default
@dingzeyuli
dingzeyuli / check_github_repo_size
Created December 16, 2016 22:34
Check the size of a github repo before downloading
# http://webapps.stackexchange.com/questions/39587/view-estimated-size-of-github-repository-before-cloning
# tested on macOS
echo https://github.com/torvalds/linux.git | perl -ne 'print $1 if m!([^/]+/[^/]+?)(?:\.git)?$!' | xargs -I{} curl -s -k https://api.github.com/repos/'{}' | grep size
# output:
# "size": 1746294,
@natanfelles
natanfelles / theme_darcula.xml
Created June 13, 2016 14:48
gedit darcula theme
<?xml version="1.0" encoding="UTF-8"?>
<style-scheme id="darcula" _name="Darcula" version="1.0">
<author>Sash0k</author>
<_description>Dark color scheme using IntelliJ IDEA colors</_description>
<!-- Scribe Theme Generator 1.3 -->
<!-- COLORS -->
<color name="comment_color" value="#629755"/>
@cvan
cvan / set-up-chromium-keys.md
Last active September 18, 2024 15:35
Launch Chromium with API Keys on Mac OS X and Windows

Last Updated: March 2023

IMPORTANT: Ignore the out-of-date steps below for getting Chromium keys.

Instead, read this up-to-date guide (Jan 2023) written by @LearningToPi.

P.S. Thank you to every contributor below who provided tips over the years on what should be a straightforward process: setting up Chromium for local development.

Long live the web!

@kc135576
kc135576 / scribd_unblurrer.js
Last active November 28, 2022 16:04
Scribd Unblurrer
/* Author: Kenneth Chan (@cub01d)
Title: Scribd Unblurrer
Version: 0.4
Description: JQuery snippet to unblur the Scribd pages "reserved"
for premium access. Make sure you scroll all the way to the bottom
of the page before running this bookmarklet.
TODO: add selectable access
*/
// Make sure page is jquerified first: