Skip to content

Instantly share code, notes, and snippets.

View mattkirwan's full-sized avatar

Matt Kirwan mattkirwan

View GitHub Profile
Matts-MacBook-Air:cleveland-land-services.co.uk mattkirwan$ grunt --env=production
Running "replace:modxSettings" (replace) task
Replace web/z64ml/config.core.php → web/z64ml/config.core.php
Replace web/n3yu9/config.core.php → web/n3yu9/config.core.php
Replace web/config.core.php → web/config.core.php
Replace core_tY670_uW/config/No3r4kXHBbNdLJdw9ryZJrfrP52Jvy1q.inc.php → core_tY670_uW/config/No3r4kXHBbNdLJdw9ryZJrfrP52Jvy1q.inc.php
Running "copy:build" (copy) task
Created 17 directories, copied 120 files
@mattkirwan
mattkirwan / RDAD_Twitch_Status
Created June 1, 2015 10:33
A quick bash script to get the latest RDAD twitchers and show there current streaming status.
#!/bin/bash
twitch_accounts=()
while read line
do
twitch_accounts+=("$line")
done < <(curl http://www.reddit.com/r/RedditDads/wiki/twitch_and_youtube | grep "* http://www.twitch.tv/" | sed 's/* http\:\/\/www\.twitch\.tv\//\ /;s//\n/')
for twitch_account in "${twitch_accounts[@]}"
do
@mattkirwan
mattkirwan / firefox-vim-vixen.cfg
Last active September 22, 2018 08:49
Firefox - Vim Vixen Config
{
"keymaps": {
"0": { "type": "scroll.home" },
":": { "type": "command.show" },
"o": { "type": "command.show.open", "alter": false },
"O": { "type": "command.show.open", "alter": true },
"t": { "type": "command.show.tabopen", "alter": false },
"T": { "type": "command.show.tabopen", "alter": true },
"w": { "type": "command.show.winopen", "alter": false },
"W": { "type": "command.show.winopen", "alter": true },
@mattkirwan
mattkirwan / 01.java
Created December 1, 2022 20:08
01.Java
File file = new File("./input.txt");
Scanner sc = new Scanner(file);
Integer currentElf = 0;
ArrayList<Integer> elfCalories = new ArrayList<>();
elfCalories.add(0);
while (sc.hasNextInt()) {
String line = sc.nextLine();