Skip to content

Instantly share code, notes, and snippets.

View Mikaela's full-sized avatar

Aminda Suomalainen ⚧ Mikaela

View GitHub Profile
@aadityabhatia
aadityabhatia / supybot-xkcd-plugin.py
Created April 16, 2011 06:22
Xkcd plugin for supybot
###
# Copyright (c) 2011, Aaditya Bhatia
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions, and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright notice,
@romaonthego
romaonthego / NSDateFormatter cheat sheet
Last active April 7, 2025 11:05
Date Formats for NSDateFormatter
a: AM/PM
A: 0~86399999 (Millisecond of Day)
c/cc: 1~7 (Day of Week)
ccc: Sun/Mon/Tue/Wed/Thu/Fri/Sat
cccc: Sunday/Monday/Tuesday/Wednesday/Thursday/Friday/Saturday
d: 1~31 (0 padded Day of Month)
D: 1~366 (0 padded Day of Year)
@larrybolt
larrybolt / cf-ddns.sh
Last active March 14, 2025 14:12
Automatically update your CloudFlare DNS record to the IP, Dynamic DNS for Cloudflare
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
# Automatically update your CloudFlare DNS record to the IP, Dynamic DNS
# Can retrieve cloudflare Domain id and list zone's, because, lazy
# Place at:
# /usr/local/bin/cf-ddns.sh
@maxteufel
maxteufel / Security of cloaks.md
Last active July 2, 2024 02:28
About the security of (unaffiliated) cloaks on freenode

Copyright (c) 2014, 2016, 2017 M. Teufel

Unlimited redistribution and modification of this document is allowed provided that the above copyright notice and this permission notice remains in tact.


If you are reading this, you probably asked for a (unaffiliated) cloak on freenode because you wanted to hide your IP or hostname.

This text is here to tell you that cloaks and vHosts don't hide your IP very well. Cloaks on freenode show your (lack of) affiliation with a project or a group being hosted on freenode.

Most active public GitHub users in Finland

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Fri, 13 Dec 2013 15:07:05 GMT till Sat, 13 Dec 2014 15:07:05 GMT.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

githubUsers
 .filter((user) -> user.followers > 11)
@kythyria
kythyria / commands.md
Created January 19, 2015 09:13
Command discovery?

When prompted (or when it feels like) the server sends RPL_COMMANDUSAGE:

RPL_COMMANDUSAGE <command> <context> <parameter1> <parameter2> ...

command is the verb in question. context is a hint as to what UI element to attach the command to, or what arguments to deduce when the user enters the command as text.

channel     | Any channel
@jaukia
jaukia / gist:1d41a0045ab8e9f411ff
Last active August 25, 2021 05:22
Most active public GitHub users in Finland — Feb 2015

Most active public GitHub users in Finland

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Wed, 12 Feb 2014 13:09:28 GMT till Thu, 12 Feb 2015 13:09:28 GMT.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

githubUsers
 .filter((user) -&gt; user.followers &gt; 11)
@maxpowa
maxpowa / simple_disconnect.cpp
Last active August 8, 2022 22:30
simple_disconnect module for znc 1.6+
/*
* Copyright (C) 2004-2015 ZNC, see the NOTICE file for details.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@ara4n
ara4n / bulk-reject.sh
Last active December 7, 2022 00:12
Bulk reject Matrix invites
access_token=SECRET
# if your sync is large you may need to run this a few times until it completes rather than storing a timeout error
curl "https://matrix.org/_matrix/client/r0/sync?access_token=$access_token" > sync.json
for i in `cat sync.json | jq -r '.rooms.invite|keys|join(" ")'`
do echo $i
curl "https://matrix.org/_matrix/client/r0/rooms/$i/leave?access_token=$access_token" --data '{}'
sleep 5
done
@cryzed
cryzed / fix-infinality.md
Last active March 20, 2025 13:16
A set of instructions on how to fix the harfbuzz + Infinality issue and restoring good-looking, Infinality-like font rendering.

Disclaimer: Please follow this guide being aware of the fact that I'm not an expert regarding the things outlined below, however I made my best attempt. A few people in IRC confirmed it worked for them and the results looked acceptable.

Attention: After following all the steps run gdk-pixbuf-query-loaders --update-cache as root, this prevents various gdk-related bugs that have been reported in the last few hours. Symptoms are varied, and for Cinnamon the DE fails to start entirely while for XFCE the icon theme seemingly can't be changed anymore etc.

Check the gist's comments for any further tips and instructions, especially if you are running into problems!

Screenshots

Results after following the guide as of 11.01.2017 13:08: