Skip to content

Instantly share code, notes, and snippets.

@mdiluz
mdiluz / steam_purchase.awk
Last active June 20, 2018 16:01
Simple script to total up steam purchases
# Simple script to total up steam purchases from https://store.steampowered.com/account/history/
# Make sure you've fully loaded all purchases and copy & paste the whole table text in a text file.
#
# $ awk -f steam_purchases.awk my_logs.txt
# Cash purchases: £1000.00
# Wallet purchases: £200.00
# Total 'spent': £3000.00
# Wallet balance bought: £180.00
# Total gifted: £100.00
@mdiluz
mdiluz / fix_screen_tear.pl
Created May 13, 2016 10:58
Quickly set ForceFullCompositionPipeline with nvidia-settings for all currently connected screens, useful for gamers seeing screen tear issues
#!/usr/bin/perl
# Quickly set ForceFullCompositionPipeline with nvidia-settings for all currently connected screens, useful for gamers seeing screen tear issues
use strict;
use warnings;
# Grab xrandr output for parsing
my $xrandrOutput = `xrandr`;
# Filter all currently selected modes
my @modes = $xrandrOutput =~ /.*\sconnected.*/g;