Skip to content

Instantly share code, notes, and snippets.

View celediel's full-sized avatar

Lilian Jónsdóttir celediel

View GitHub Profile
@celediel
celediel / password.py
Last active March 15, 2020 05:37
simple python sha512 password thing
import getpass
import hashlib
import anymarkup
def init(filename):
try:
users = anymarkup.parse_file(filename)
except:
users = []
@celediel
celediel / ctrlw.patch
Created March 13, 2016 19:38
Patch for ncTelegram to restore sane ^W function.
diff -crB ncTelegram-orig/ncTelegram/ui_msgsendwidget.py ncTelegram/ncTelegram/ui_msgsendwidget.py
*** ncTelegram-orig/ncTelegram/ui_msgsendwidget.py 2016-03-13 12:17:19.222512423 -0700
--- ncTelegram/ncTelegram/ui_msgsendwidget.py 2016-03-13 12:30:16.099188604 -0700
***************
*** 156,164 ****
self.autocomplete()
# deletion of current text
! elif key == 'ctrl w' or key == 'ctrl k':
self.widgetEdit.set_edit_text("")
@celediel
celediel / hugs.rb
Last active March 12, 2016 02:36
Silly plugin for Cinch to send love to IRC people
#!/usr/bin/env ruby
# encoding=utf-8
require 'sequel'
# These are all very annoying.
# rubocop:disable Metrics/LineLength, Metrics/ClassLength, Metrics/CyclomaticComplexity
# rubocop:disable Metrics/MethodLength, Metrics/PerceivedComplexity, Metrics/AbcSize
module Cinch
@celediel
celediel / roulette.rb
Last active February 21, 2016 22:28
Russian Roulette plugin for Cinch
#!/usr/bin/env ruby
# encoding=utf-8
# These are all very annoying.
# rubocop:disable Metrics/LineLength, Metrics/ClassLength, Metrics/CyclomaticComplexity
# rubocop:disable Metrics/MethodLength, Metrics/PerceivedComplexity, Metrics/AbcSize
module Cinch
module Plugins
# Roulette game
@celediel
celediel / automode.rb
Last active February 21, 2016 22:29
Automode plugin for Cinch
#!/usr/bin/env ruby
# encoding=utf-8
require 'sequel'
# These are all very annoying.
# rubocop:disable Metrics/LineLength, Metrics/ClassLength, Metrics/CyclomaticComplexity
# rubocop:disable Metrics/MethodLength, Metrics/PerceivedComplexity, Metrics/AbcSize
module Cinch
@celediel
celediel / sct.ogg
Last active March 13, 2020 09:18
Take screenshots and display system info and scp and stuff.
@celediel
celediel / google_search.rb
Created November 5, 2015 05:03
Cinch Google Plugin
#!/usr/bin/env ruby
# encoding=utf-8
require 'google-search'
require 'cgi'
# These are all very annoying.
# rubocop:disable Metrics/LineLength, Metrics/ClassLength, Metrics/CyclomaticComplexity
# rubocop:disable Metrics/MethodLength, Metrics/PerceivedComplexity, Metrics/AbcSize
@celediel
celediel / hacker.rb
Last active February 14, 2016 19:22
#!/usr/bin/env ruby
# encoding=utf-8
require 'ruby-progressbar'
require 'colorize'
# These are all very annoying.
# rubocop:disable Metrics/LineLength, Metrics/ClassLength, Metrics/CyclomaticComplexity
# rubocop:disable Metrics/MethodLength, Metrics/PerceivedComplexity, Metrics/AbcSize
@celediel
celediel / wcd.rb
Last active October 22, 2020 03:14
WhatCD plugin for Cinch - RIP WhatCD, you'll live on in our hearts forever
#!/usr/bin/env ruby
# encoding=utf-8
require 'whatcd' # Gazelle API wrapper - gem install whatcd
require 'mash' # Cool hashes
# These are all very annoying.
# rubocop:disable Metrics/LineLength, Metrics/ClassLength, Metrics/CyclomaticComplexity
# rubocop:disable Metrics/MethodLength, Metrics/PerceivedComplexity, Metrics/AbcSize
@celediel
celediel / wunder.rb
Last active March 13, 2020 09:13
Cinch Wunderground plugin
#!/usr/bin/env ruby
# encoding=utf-8
# require 'cinch'
require 'wunderground'
require 'mash'
# These are all very annoying.
# rubocop:disable Metrics/LineLength, Metrics/ClassLength, Metrics/CyclomaticComplexity
# rubocop:disable Metrics/MethodLength, Metrics/PerceivedComplexity, Metrics/AbcSize