Skip to content

Instantly share code, notes, and snippets.

Avatar

nurupo

  • nurupo at irc://irc.libera.chat:6697
View GitHub Profile
@nurupo
nurupo / purge_quassel_db-sqlite.sh
Last active Aug 15, 2021 — forked from Und3rf10w/purge_quassel_db-sqlite.sh
Weekly purge of Quassel chat database for sqlite instances
View purge_quassel_db-sqlite.sh
#!/bin/sh
# Taken from http://blog.encomiabile.it/2011/02/03/prune-quassel-database/
# Taken from https://gist.github.com/Und3rf10w/36a2034cb2c8eafbfb801c1a89e1f8bc
BAK_PATH="${HOME}/.config/quassel-irc.org/quassel-storage.sqlite.bak"
CURRENT_PATH="${HOME}/.config/quassel-irc.org/quassel-storage.sqlite"
# first day of data that will be maintained
# -7 day means that *every* chatline stored before 8 days ago and so on are going to be eliminated.
# only the last 7 days are keeped.
DATE_TO_PRUNE='-7 day'
@nurupo
nurupo / #toktok.log
Last active May 26, 2021
Freenode dropping / taking over channels with irc.libera.chat in the /title
View #toktok.log
=== 2021-05-23 ===
/cs info #toktok
[06:38:26] [ChanServ] Information on #toktok:
[06:38:26] [ChanServ] Founder : iphy
[06:38:26] [ChanServ] Registered : Nov 02 12:23:24 2009 (11y 29w 1d ago)
[06:38:26] [ChanServ] Mode lock : +ntcg
[06:38:26] [ChanServ] URL : https://toktok.ltd
[06:38:26] [ChanServ] Flags : KEEPTOPIC GUARD
[06:38:26] [ChanServ] The #toktok namespace is registered to the toktok project
@nurupo
nurupo / irc_network_migration_guide.md
Last active Jun 7, 2021
How to close a channel on Freenode when migrating to Libera
View irc_network_migration_guide.md

How to close a channel on Freenode when migrating to Libera

Run /msg NickServ LISTCHANS to see what permissions you have in what channels.

For each channel you have +s, +R and either +o or +O or +t permissions in, run:

/msg ChanServ OP #channel
/msg ChanServ SET #channel TOPICLOCK OFF
/msg ChanServ TOPIC #channel We have moved to irc.libera.chat
@nurupo
nurupo / !README.md
Last active Jun 25, 2020
Fix GitHub June Redesign
View !README.md

Fix GitHub June Redesign

An attempt to make GitHub's June redesing more bearable.

Usage

Install the Stylus browser extension (Chrome Firefox) and add the user style into it.

Screenshots

View gist:cbfc08b1a862b17e08a3b1447b00dae4


This October the Tox developer community will be holding its third annual conference in the @metalabvie in the heart of Vienna, Austria.
The event will be 3 full days, from Friday, October 11th to Sunday, October 13th.

We will talk about Tox, and other security related and interesting topics.
If you would like to attend, meet the Tox devs, do some live hacking, or just socialize, get your free ticket (and reserve a T-shirt) here:
  https://pretix.eu/ZMetalab/ToxCon2019/
You can find the exact address on your ticket!

View blog_toxcon2018_after_the_event.md

ToxCon 2018 report

This year's ToxCon was super fun, thanks to everyone who attended it!

If you have missed the event, list of talks, talk slides and some photos from the event are available online. No videos are available as it was decided not to record the talks.

We are planning to hold another ToxCon the next year, so keep an eye for announcements. If you are working on anything fun with Tox and want to share it with the world, consider giving a talk at the next ToxCon -- we would be happy to host your talk.

View keybase.md

Keybase proof

I hereby claim:

  • I am nurupo on github.
  • I am nurupo (https://keybase.io/nurupo) on keybase.
  • I have a public key whose fingerprint is 1D4E 9375 AD9B D50F 80FF 55AC 6F55 0977 4B1E F0C2

To claim this, I am signing this object:

View reclaimWindows10.ps1
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <disassembler@dasm.cz>
# Original Version: 1.4, 2016-01-16
# Tweaked based on personal preferences for @alirobe 2016-03-23 - v1.4.1
# NOTE: MAKE SURE YOU READ THIS SCRIPT CAREFULLY BEFORE RUNNING IT + ADJUST COMMENTING AS APPROPRIATE
# This script will reboot your machine when completed.
##########
# Ask for elevated permissions if required
View tox-example.md

#Tox Echo Bot Example

##Getting started

This example is aimed at introducing people to basics of using toxcore C API. It's assumed that the reader is familiar with the C programming language.

Before jumping to coding, we need to install toxcore library, which can be done by following installation instructions from toxcore's git repository.

For the sake of simplicity, we will use a couple of helper functions from the sodium library, which is a dependency of toxcore, so it should be installed along with it.

View gist:304870d1d572eff1bd00
template<typename Func, Func func> struct thunk;
template<typename Class, typename R, typename ...Args, R(Class::*func)(Args...)>
struct thunk<R(Class::*)(Args...), func>
{
static R call(Tox *tox, Args ...args, void *userData)
{
return ((*static_cast<Class *>(userData)).*func)(args...);
}
};