Skip to content

Instantly share code, notes, and snippets.

View hrywlms's full-sized avatar
:shipit:
hiding in office bathroom

Harry Williams hrywlms

:shipit:
hiding in office bathroom
View GitHub Profile
@hrywlms
hrywlms / open_in_steam.js
Last active March 8, 2016 06:20
Add a button to Steam store pages to open the current page in the native Steam Client
// ==UserScript==
// @name Open in Steam Client Button
// @include http://store.steampowered.com/app/*
// @grant none
// ==/UserScript==
/* jshint -W097 */
'use strict';
$J('.apphub_OtherSiteInfo').after('<div class="apphub_OtherSiteInfo">' +
'<a class="btnv6_blue_hoverfade btn_medium" style="margin-right: 3px;" href="steam://advertise/' + window.location.href.split('app/')[1] +'">' +
@hrywlms
hrywlms / EnableAchievements.cs
Created February 23, 2016 02:52
C:\Program Files (x86)\Steam\steamapps\common\Cities_Skylines\Files\Mods\mod_name\Source
using ICities;
using ColossalFramework;
namespace SkylinesMod
{
public class EnableAchievements : IUserMod
{
public string Name
{
get { return "Enable Achievements"; }
@hrywlms
hrywlms / generate sox spectrograms.sh
Last active November 29, 2022 20:43
A quick way to generate spectrograms for a bunch of audio files
### Generate PNG spectrograms using SoX
### Use the input file name as the title within the image as well as the output file name
### Set the width to 2000 (seems to output a ~2140px wide image)
### Generate for FLAC
for file in *.flac;do
outfile="${file%.*}.png"
title_in_pic="${file%.*}"
sox "$file" -n spectrogram -t "$title_in_pic" -o "$outfile" -x 2000
done