Skip to content

Instantly share code, notes, and snippets.

@cirrusUK
cirrusUK / haxfoxglobal.css
Created October 8, 2015 19:26
firefox global css theme
@namespace html url(http://www.w3.org/1999/xhtml);
@namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
/* Browser Background */
browser[type="content-primary"] {
background-color: #141414 !important;
}
@-moz-document url-prefix(http://), url-prefix(https://), url-prefix(ftp://), url-prefix(file://) {
@cirrusUK
cirrusUK / arena.sh
Last active April 27, 2024 06:25
Simple dialouge box for choosing streams, requires sopcast-launcher, acestream-launcher, zenity & mpv
#! /bin/bash
#dialouge box for playing acestream streams, requires acestream launcher & mpv
action=$(zenity --window-icon "/usr/share/zenity/zenity.png" --list \
--column=" 📺 Stream Listing 📺" --text=" 🐧 Pick a stream: ⏬↓📺📺📺📺📺↓⏬ 🐧 " \
"acetv" "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" "16" "17" "18" "19" "20" "21" "22" "23" "24" "25" "26" "27" "28" "29" "30" "31" "32" "33" "34" "35" "36" "37" "38" "39" "40" "41" "42" "43" "44")
ret=$?
[[ $ret -eq 1 ]] && exit 0
case $action in
mpv 'https://www.youtube.com/playlist?list=PL7ykCJqlS3T4Z2L8Xxld2OqCZ07B4ntKZ'
mpv 'https://www.youtube.com/playlist?list=PL7ykCJqlS3T4dgZtfNE7dxDDA38G48tCD'
mpv 'https://www.youtube.com/playlist?list=PL7ykCJqlS3T6ZLFVh__IXwg4uACQk2-ax'
mpv 'https://www.youtube.com/playlist?list=PL7ykCJqlS3T4lolVT98aiTpI5VGJMvtf-'
@QWxleA
QWxleA / Readme.md
Last active April 27, 2024 06:24
Obsidian zotero template for use with "obsidian-zotero-integration" plugin

QWxlea's over-engineered zotero template

Faq

What are these %% begin id-pn2xitti%% and %% end id-pn2xitti %% and ^pn2xitti? These are the persistance-markers of the indivual highlights, and the reference-id to that highlight.

The markers are meant for the importer. It will skip all text within those markers, so they stay when updating a zotero-import. Removing a marked block does not work well, it will not be reimported. Don't know how to fix that. If you want to reimport a highlight-block, best is to change the highlight in zotero (for example change the color). This will update the id, and on the next import the new highlight will be imported.

The reference-id is used like this: [[@name-of-the-note#^pn2xitti]]

@cirrusUK
cirrusUK / soma
Created October 30, 2016 22:26
radio shell script
#!/bin/bash
red=`tput setaf 1`
tput setaf 1
echo '
| _)
_| _` | _` | | _ \
_| \__,_| \__,_| _| \___/
'
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>AudioList</key>
<array>
<dict>
<key>AudioBitrate</key>
<string>160</string>
@cirrusUK
cirrusUK / acer
Last active April 27, 2024 06:23
wrapper for watching sports with acestream/arenavision | usage: ./acer <insert number shown at end of desired stream>
#!/usr/bin/zsh
readonly TMP="$(mktemp /tmp/areavision.XXXXXX)"
curl --location-trusted -k --silent "http://arenavision.in/schedule" --output "${TMP}"
function schedule() {
awk -v RS='</tr>' -v F='<td>' '{gsub(/<[^<>]*>/,"");print $1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14}' "${TMP}"
}
function play() {
/usr/local/bin/ace.sh "$(xmllint http://arenavision.in/av"$1" --html --xpath "string(//p[@class='auto-style1']/a/@href)" 2> /dev/null)"
@cirrusUK
cirrusUK / cirrus.css
Last active April 27, 2024 06:22
css for lighttpd
@import url(https://fonts.googleapis.com/css?family=Raleway:200,400,600);
body, html { background: #191919; margin:0; }
html { font: 14px/1.4 Raleway, 'Helvetica Neue', Helvetica, sans-serif; color: #cb4b16; font-weight: 400; }
h2 { font-weight: 200; font-size: 45px; margin: 20px 35px; }
div.list { background: #111; padding: 20px 35px; }
div.foot { color: #777; margin-top: 15px; padding: 20px 35px; }
td { padding: 0 20px; line-height: 21px; }
@skeeto
skeeto / triangle.c
Last active April 27, 2024 06:22
Draw a triangle on Windows using OpenGL 1.1
// Draw a triangle on Windows using OpenGL 1.1
// $ gcc -mwindows -o triangle triangle.c -lopengl32
// This is free and unencumbered software released into the public domain.
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <GL/gl.h>
#define countof(a) (int)(sizeof(a) / (sizeof(*(a))))
static LRESULT CALLBACK handler(HWND h, UINT msg, WPARAM wparam, LPARAM lparam)
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/fonts.conf file to configure system font access -->
<fontconfig>
<!--
DO NOT EDIT THIS FILE.
IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED.
LOCAL CHANGES BELONG IN 'local.conf'.