Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# This script purges the local history older than 90 days in some rooms, that you can define in an array
#
# crontab -e
# 23 4 * * * bash /home/irc-bridge/.synapse/EIGENE_purge_history_daily > /dev/null 2>&1
cd /home/irc-bridge/.synapse/
DOMAIN="matrix.yourserver.org"
ADMIN="@some_adminuser:matrix.yourserver.org"
@rubo77
rubo77 / filesystem.manifest-remove
Created October 20, 2017 19:15
Ubuntu 17.10 (artful) manifest with packages that re removed after install /capsper/filesystem.manifest-remove
apt-clone
archdetect-deb
btrfs-progs
btrfs-tools
casper
cifs-utils
cryptsetup
cryptsetup-bin
dmeventd
dmraid
'log' @c5c1a9e1
"read":{"lines":"Integer","stream":"Boolean"}
"write":{"event":"String"}
'network' @d1506080
"restart":{}
"reload":{}
"add_host_route":{"target":"String","v6":"Boolean","interface":"String"}
"get_proto_handlers":{}
@rubo77
rubo77 / create-gist.sh
Last active August 30, 2020 09:41 — forked from s-leroux/pgist.sh
A utility to create a gists from command line - for support, please check the repo https://github.com/ceremcem/create-gist
#!/bin/bash
GITHUB_USERNAME=rubo77
if [ "$1" == "" ]; then
echo 'usage: gistfile-post.sh filename [gistname]'
exit 0
fi
# 0. file name for the Gist
@rubo77
rubo77 / matrix-kick-irc-users.sh
Last active November 19, 2016 08:05
bash script to kick all IRC users in a matrix channel
#!/bin/bash
# crontab -e
# 23 4 * * * bash /home/irc-bridge/.synapse/EIGENE_purge_history_daily > /dev/null 2>&1
cd /home/irc-bridge/.synapse/
DOMAIN="matrix.domain.org"
ADMIN="@some_admin:$DOMAIN"
TOKEN=$(sqlite3 homeserver.db "select token from access_tokens where user_id like '$ADMIN' order by id desc limit 1;")
@rubo77
rubo77 / directory-long-index.sh
Last active July 18, 2020 16:37
automatically create an index.html file in the current folder, that contains the whole path
#!/bin/bash
# scriptname: /usr/local/sbin/directory-long-index.sh
#
# the directory_root without slash at the end:
WEB=/var/www/
#reacheable url from inside the server:
URL=http://localhost
P=$(pwd|sed "s|$WEB/||")
echo "download $URL/$P/ to index.html"
@rubo77
rubo77 / keybase.md
Created September 19, 2016 18:28
keybase.md

Keybase proof

I hereby claim:

  • I am rubo77 on github.
  • I am rubo77 (https://keybase.io/rubo77) on keybase.
  • I have a public key whose fingerprint is 738F F888 1B16 BAE0 5562 050B 9174 41C8 1270 5CB0

To claim this, I am signing this object:

From 45b402bed1a53b8acfad397cdf3e59ebf3900d70 Mon Sep 17 00:00:00 2001
From: rubo77 <[email protected]>
Date: Tue, 21 Jun 2016 23:10:35 +0200
Subject: [PATCH 1/1] define username for guest login
---
src/components/structures/MatrixChat.js | 27 +++++++++++++++++++++++++++
src/components/views/rooms/RoomPreviewBar.js | 3 +++
2 files changed, 30 insertions(+)