Skip to content

Instantly share code, notes, and snippets.

View digitalcircuit's full-sized avatar

Shane Synan digitalcircuit

View GitHub Profile
@Daniel15
Daniel15 / GtkDimScreen.cs
Created November 21, 2011 04:31
Semi-transparent window in GTK# (Mono, C#)
using System;
using System.Reflection;
using System.Runtime.InteropServices;
using Cairo;
using Gtk;
public class GtkDimScreen
{
private DrawingArea drawingArea;
@hamgammon
hamgammon / gpg-offline-master.md
Last active January 8, 2017 01:44 — forked from abeluck/gpg-offline-master.md
GPG Offline Master Key w/ smartcard
@chrisdiana
chrisdiana / gist:f0777eb35a5adece8422
Last active November 2, 2017 16:20
Reset GIT to commit force push
# Local reset:
git reset --hard fj5789sufj
# Remote reset:
git push -f origin fj5789sufj:master
<script>
kiwi.plugin('gecos', function(kiwi, log) {
kiwi.on('network.new', function(event) {
var queryGecos = kiwi.exports.helpers.Misc.queryStringVal('gecos');
event.network.gecos = queryGecos || "Fallback Gecos";
});
});
</script>
@fourkbomb
fourkbomb / README.md
Last active December 22, 2018 15:11
switch from CM to Lineage non-destructively

Switch from CyanogenMod to LineageOS without redownloading everything

  1. Init the Lineage manifest: repo init -u ssh://git@github.com/LineageOS/android.git -b cm-14.1 (or cm-13.0 if you prefer that)
  2. Update your local manifest (.repo/local_manifests/roomservice.xml), if it exists - find and replace "CyanogenMod" with "LineageOS" globally.
  3. Move the git objects: mv .repo/project-objects/CyanogenMod .repo/project-objects/LineageOS
  4. curl https://gist.github.com/fourkbomb/0d94e286dc6f173eb9053c0d75e84783/raw/cc1bb94337eab5e30efa689fe1d050db25a1124a/fixlinks.sh > ~/fixlinks.sh
  5. chmod +x ~/fixlinks.sh
  6. cd .repo/projects
  7. find . -name '*.git' -exec ~/fixlinks.sh {} \;
  8. And finally, fix the actual tree:

IRC Roleplay Commands

Daniel Oaks daniel@danieloaks.net


Introduction

People like to use IRC to roleplay. In other words, to act out characters as part of a channel and between clients. Often, this means it's desirable to send messages with names other than the client's nickname, and to send messages not explicitly attached to a name at all.

#!/bin/bash
declare -A fileinfo
# Resets the fileinfo map
fileinfo_reset() {
fileinfo[year]="0000"
fileinfo[month]="00"
fileinfo[day]="00"
fileinfo[hour]="00"
// stop quasselcore
select pg_get_indexdef('sender_sender_realname_avatarurl_uindex'::regclass);
alter table backlog alter constraint backlog_senderid_fkey deferrable;
set session_replication_role = replica;
begin;
create or replace temp view foo
as select min.senderid min_senderid, other.*
from
(select min(senderid) senderid, sender, realname, avatarurl
jail.d/quasselcore.conf:
[quasselcore]
enabled = true
port = 6697
findtime = 3600
filter = quasselcore
logpath = /var/log/messages
maxretry = 2
filter.d/quasselcore.conf:
@gabrielfin
gabrielfin / userChrome.css
Created August 31, 2018 20:24
Chromeless Firefox
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
#PersonalToolbar,
#BookmarksToolbar,
#MenuToolbar,
#nav-bar{ display: none !important; }
#tabbrowser-tabs, #tabbrowser-tabs > .tabbrowser-arrowscrollbox {
min-height: 0 !important;
}
#tabbrowser-tabs tab[first-visible-tab="true"][last-visible-tab="true"] {