Skip to content

Instantly share code, notes, and snippets.

View crescentrose's full-sized avatar
🐈‍⬛
hehe

Ivan crescentrose

🐈‍⬛
hehe
View GitHub Profile
@crescentrose
crescentrose / log4rs.yml
Last active February 4, 2024 13:43
Stream Deck plugin in Rust, proof of concept
refresh_rate: 2 seconds
appenders:
stdout:
kind: console
logfile:
kind: file
# create a logs directory in the .sdPlugin directory first
path: "logs/sonos-controller.log"
encoder:
pattern: "{d} - {m}{n}"
#!/bin/bash
posta() {
curl -XPOST "https://www.posta.hr/chrome.aspx?vrsta=1&query=$1" \
-H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36' \
--silent | jq
}
@crescentrose
crescentrose / list.txt
Created April 26, 2016 19:46
Best NT dailies per character so far (2016-04-26)
name | steamid | character | score | created_at
------------------------------+-------------------+-----------+-------+---------------------
Smokepipe | 76561198044935308 | 1 | 7030 | 2016-04-10 19:22:51
Smokepipe | 76561198044935308 | 2 | 10625 | 2016-04-19 00:07:18
One eyed Joe O_x | 76561198044816800 | 3 | 12328 | 2016-03-21 13:51:47
www.youtube.com/c/horheristo | 76561198253790329 | 4 | 11097 | 2016-03-06 02:13:17
One eyed Joe O_x | 76561198044816800 | 5 | 4621 | 2016-04-13 12:04:09
www.youtube.com/c/horheristo | 76561198253790329 | 6 | 18515 | 2016-03-19 07:08:18
www.youtube.com/c/horheristo | 76561198253790329 | 7 | 6780 | 2016-03-13 09:38:03
@crescentrose
crescentrose / top100.txt
Created October 20, 2015 18:56
Top 100 of final all-time standings on Thronebutt.com
+-------------------------------+--------+
| name | score |
+-------------------------------+--------+
| Devil Azite | 673856 |
| squerc | 575986 |
| Krinku | 536319 |
| squireofthedance | 528069 |
| horheristo | 485603 |
| ideaot | 436011 |
| Zanderful | 391213 |
@crescentrose
crescentrose / BaseChat.ui
Last active September 25, 2015 20:38
Hudas Iscariote lowered chat - http://hudas.kinevonetwork.com
"Resource/UI/BaseChat.res"
{
"HudChat"
{
"ControlName" "EditablePanel"
"fieldName" "HudChat"
"visible" "1"
"enabled" "1"
"xpos" "10"
"ypos" "260"
@crescentrose
crescentrose / wordcheck.rb
Last active September 11, 2015 20:51
match words from a text file to Unix dictionary
#!/usr/bin/env ruby
# Usage:
# ./wordcheck.rb --regex "regular expression" [--dictionary "dictionary file"] file
require "optparse"
options = {:regex => nil, :dict => nil}
parser = OptionParser.new do |opts|
opts.banner = "Usage: wordcheck.rb [options] file(s)"
@crescentrose
crescentrose / lmr-flair.patch
Created August 3, 2015 10:53
patch for /r/linuxmasterrace flairs
--- old.css 2015-08-03 12:51:36.632448726 +0200
+++ new.css 2015-08-03 12:52:26.699114857 +0200
@@ -102,190 +102,188 @@
line-height: 23px;
vertical-align: middle;
}
-
.flair-fedora {
- border: none 0;
- height: 23px;