Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View nurupo's full-sized avatar

nurupo

  • nurupo at irc://irc.libera.chat:6697
View GitHub Profile
@nurupo
nurupo / purge_quassel_db-sqlite.sh
Last active August 15, 2021 10:09 — forked from Und3rf10w/purge_quassel_db-sqlite.sh
Weekly purge of Quassel chat database for sqlite instances
#!/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 06:04
Freenode dropping / taking over channels with irc.libera.chat in the /title
=== 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 October 14, 2023 16:16
How to close a channel on Freenode when migrating to Libera

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 February 3, 2023 21:59
Fix GitHub June Redesign

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


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!

@nurupo
nurupo / blog_toxcon2018_after_the_event.md
Last active November 12, 2018 22:38 — forked from zoff99/blog_toxcon2018_after_the_event.md
blog_toxcon2018_after_the_event

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.

@nurupo
nurupo / keybase.md
Last active January 15, 2019 22:46

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:

##########
# 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
@nurupo
nurupo / tox-example.md
Created November 3, 2015 04:27
Tox example

#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.

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...);
}
};