This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Jonathan Lestrelin <[email protected]> | |
pkgname=psdoom-ng | |
pkgver=2017.10.02.2.3.0.20170825 | |
pkgrel=1 | |
pkgdesc="A FPS and operating system process killer (when you kill an enemy, it kills a process) based on psDooM and Chocolate Doom." | |
arch=('any') | |
url="https://github.com/keymon/psdoom-ng" | |
license=('GPL') | |
depends=('sdl' 'sdl_mixer' 'sdl_net' 'freedoom1') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- pkg/psdoom-ng/usr/bin/psd.org 2018-12-09 15:07:54.995580001 +0100 | |
+++ pkg/psdoom-ng/usr/bin/psd 2018-12-09 15:10:20.078561219 +0100 | |
@@ -1,4 +1,25 @@ | |
#!/bin/bash | |
+if [[ ! -f /home/${USER}/.psdoom-ng/psdoom-ng.conf ]]; then | |
+ mkdir -p /home/${USER}/.psdoom-ng | |
+ cat << EOF > /home/${USER}/.psdoom-ng/psdoom-ng.conf | |
+PSDOOMPSCMD="${HOME}/.psdoom-ng/ps.sh" | |
+PSDOOMRENICECMD="renice" | |
+PSDOOMKILLCMD="kill -9" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Licence: GPLv3, MIT, BSD, Apache or whatever you prefer; FREE to use, modify, copy, no obligations | |
# Description: Bash Script to Start the process with NOHUP and & - in background, pretend to be a Daemon | |
# Author: Andrew Bikadorov | |
# Script v1.5 | |
# For debugging purposes uncomment next line | |
#set -x |