Skip to content

Instantly share code, notes, and snippets.

View jakimfett's full-sized avatar

jakimfett jakimfett

View GitHub Profile
#!/bin/bash
# This stupid script can convert slack json exports
# (created with https://solawivuml.slack.com/apps/A19P6G35Y-export?next_id=0)
# to rocket.chat csv imports.
# The zip file can be directelly imported into rocket.chat.
test -z $1 && echo "usage: $0 slack_export_json_file.json channel_name" && exit 1
# format users (needed for import)
cat $1 | jq '.[] | {name,real_name} | @json' | awk -F '"' '{print $5","$5"@dummy.import,"$9}' | sed 's#\\##g' | sort -n | uniq >users.csv
@jakimfett
jakimfett / keybase.md
Last active January 20, 2018 19:47
Verification for keybase.io

Keybase proof

I hereby claim:

  • I am jakimfett on github.
  • I am jakimfett (https://keybase.io/jakimfett) on keybase.
  • I have a public key whose fingerprint is 68E0 1C38 2CBD C718 F3A5 E733 7719 593B F86B BC72

To claim this, I am signing this object:

# .bashrc
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# Set the default editor to nano.
export EDITOR=nano
#!/bin/bash
DISKAVAILABLE=$(df / | awk '{ a = $3 } END { print a }');
DISKUSED=$(df / | awk '{ a = $2 } END { print a }');
DISKTOTAL=$((DISKAVAILABLE+DISKUSED));
DISKPERCENTUSED=$(df / | awk '{ a = $5 } END { print a }');
MEMUSE=$(free -m | head -n 2 | tail -n 1 | awk {'print $3'});
MEMTOTAL=$(free -m | head -n 2 | tail -n 1 | awk {'print $2'});
SWAPUSE=$(free -m | head -n 3 | tail -n 1 | awk {'print $3'});
SWAPTOTAL=$(free -m | head -n 3 | tail -n 1 | awk {'print $2'});
# TODO - Execute curl command once per day via cron, cat file here

Title: Changelog
Date: 2015-10-30 16:04
Slug: changelog
Category: changelog
Authors: Jenkins
Summary: PiCraft modpack changelog, update 566

Set erroring tileEntities to be removed - Minecraft/cd12f51 (2015-10-20 19:12:48 -0700)
Update new version of config comments - Minecraft/613baaf (2015-10-20 14:47:33 -0700)
Merge branch 'master' of git.jakimfett.com:picraft-modpack - jakimfett/1d8e354 (2015-10-18 14:59:34 -0700)

@jakimfett
jakimfett / irc-mod-idea-dump
Last active August 29, 2015 14:01
IRC mod idea dump
Split into serverside and clientside mods.
The server exists purely to provide configuration to the clients and as a listener for non-ingame chat.
The clients, upon connecting to the minecraft server, query the server for a configuration.
The server provides a URL and a channel. The client then directly auto-connects to the specified channel,
using the login info set via a gui or a config file.
Client responds to server with configured username (to prevent double spam in chat)