Skip to content

Instantly share code, notes, and snippets.

View Fusselwurm's full-sized avatar
🥸

Moritz Schmidt Fusselwurm

🥸
View GitHub Profile
@Fusselwurm
Fusselwurm / extract_header_files.sh
Created August 30, 2018 21:40
extract header files from an arma mod (CBA/ACE, that's you!)
#!/bin/bash
while getopts d:f: option
do
case "${option}"
in
d) DIRECTORY="$OPTARG";;
f) ARCHIVEFILE="$OPTARG";;
esac
done
@Fusselwurm
Fusselwurm / query2json.js
Last active September 27, 2017 16:18
query params to JSON
const fs = require('fs');
const paramsFile = process.argv[2] || process.argv[1];
if (!paramsFile) {
process.exit(1);
}
console.log("paramsFile: " + paramsFile);
#!/usr/bin/env bash
# cid:<cid>:tids <--topics in category
# (ZSET; score:=timestamp) tag:<tag>:topics AND (SET) topic:<tid>:tags
CID=3 #20,27
for TID in `redis-cli zrange cid:${CID}:tids 0 -1`; do
TITLE=`redis-cli hget "topic:$TID" title`
TIMESTRING=`echo "$TITLE" | grep -o -E "[0-9]{4}-[0-9]{2}-[0-9]{2}"`
#!/bin/bash
STEAMCOUNT=0
TOTAL=0
for NUM in `seq 1 500`
do
STEAMID=`redis-cli hget user:$NUM steamid`
POSTCOUNT=`redis-cli hget user:$NUM postcount`
if [[ $STEAMID == "" ]]
#20:27
p arma3_x64_2017-07-03_20-27-28-946.avi
if 00:50 01:57 #watching c-1 from above at LZ1 + Funkverwirrung
fnf 12:45 13:00 # down aufnehmen C-1 LZ1
fnf 14:22 14:32 # lift c-1 lz1
fnf 15:30 15:40 # down c-1 lz3
fnf 16:07 16:17 # lift empty lz3
#video danach extrem korrupt, kaum noch bild mehr
@Fusselwurm
Fusselwurm / dark-business-slot-list.xml
Created June 3, 2017 12:20
dark business slotliste
<!DOCTYPE match SYSTEM "match.dtd">
<match>
<squad side="blufor" callsign="Hostage">
<slot shortcode="HOS" description="hostage with greenfor"/>
</squad>
<company side="blufor">
<squad side="blufor" callsign="Heli" vehicletype="MH-9" natosymbol="air">
<slot shortcode="PLT" description="pilot"/>
<slot shortcode="PLT" description="pilot"/>
</squad>
@Fusselwurm
Fusselwurm / user-interact.js
Last active April 13, 2017 13:37
blechadler strichscript
// Description:
// kleine Spielereien
//
// Dependencies:
//
// Configuration:
//
// Commands:
// hubot strich <username> fügt einen strich hinzu
// hubot striche <username> liest striche aus
@Fusselwurm
Fusselwurm / 2017-01-23-teil.rpt
Created January 23, 2017 22:14
o.O beim JIP als Zeus
20:55:10 [GRAD] (loadout) INFO: no loadout config values could be found for heli1D
20:55:10 [GRAD] (loadout) INFO: no loadout config values could be found for O Wolverin 1-1:2 REMOTE
20:55:10 [GRAD] (loadout) INFO: no loadout config values could be found for heli2D
20:55:10 [GRAD] (loadout) INFO: no loadout config values could be found for O Wolverin 1-2:2 REMOTE
20:55:10 [GRAD] (loadout) INFO: no loadout config values could be found for lift2D
20:55:10 [GRAD] (loadout) INFO: no loadout config values could be found for lift2G
20:55:10 [GRAD] (loadout) INFO: no loadout config values could be found for O Ant 1-2:3 REMOTE
20:55:10 [GRAD] (loadout) INFO: no loadout config values could be found for lift1D
20:55:10 [GRAD] (loadout) INFO: no loadout config values could be found for lift1G
@Fusselwurm
Fusselwurm / nodebb-last-online.bash
Created October 8, 2016 11:34
Get "last online" date for all users of a Redis based NodeBB instance
#!/bin/bash
TEMPFILE=`tempfile`
for IDX in `seq 1 1000`
do
USERNAME=`redis-cli hget user:$IDX username`
if [[ "$USERNAME" != "" ]]
then
LASTONLINE=$((`redis-cli hget user:$IDX lastonline` / 1000))
echo `date -d@$LASTONLINE -I` $USERNAME >> $TEMPFILE
fi
<div class="column" id="column-left">
<div class="controls">
<ul>
<li data-version="#version1">version 1</li>
<li data-version="#version2">version 2</li>
</ul>
</div>
<div class="content">
version x drin