Skip to content

Instantly share code, notes, and snippets.

@spcmd
spcmd / ubsi
Last active August 29, 2015 14:17
ubsi (Ubuntu System Info bash script)
#!/bin/bash
# ========================================================= #
# ubsi (Ubuntu System Info bash script) #
# Created by: spcmd #
# Website: http://spcmd.github.io #
# https://github.com/spcmd #
# https://gist.github.com/spcmd #
# License: GNU GPLv3 - http://www.gnu.org/copyleft/gpl.html #
# ========================================================= #
@spcmd
spcmd / userChrome.css [archived]
Last active April 2, 2017 22:08
UserChrome.css (One Liner Firefox) #archived
/*
# ========================================================= #
# One Liner Firefox userChrome.css #
# Created by: spcmd #
# Website: http://spcmd.github.io #
# https://github.com/spcmd #
# https://gist.github.com/spcmd #
# ========================================================= #
*/
@spcmd
spcmd / Userstyle - PH! Forum Dark [archived]
Last active December 25, 2015 13:55
#userstyle #archived
@-moz-document
url-prefix(http://logout.hu/forum),
url-prefix(http://logout.hu/tema),
url-prefix(http://logout.hu/muvelet/hsz),
url-prefix(http://prohardver.hu/forum),
url-prefix(http://prohardver.hu/tema),
url-prefix(http://prohardver.hu/muvelet/hsz),
url-prefix(http://mobilarena.hu/forum),
url-prefix(http://mobilarena.hu/tema),
url-prefix(http://mobilarena.hu/muvelet/hsz),
__---~~~~--__ __--~~~~---__
`\---~~~~~~~~\\ //~~~~~~~~---/'
\/~~~~~~~~~\|| ||/~~~~~~~~~\/
`\\ //'
`\\ //'
|| || Hey Doc!
______--~~~~~~~~~~~~~~~~~~--______
___ // _-~ ~-_ \\ ___
`\__)\/~ ~\/(__/'
_--`-___ ___-'--_
@spcmd
spcmd / Script - elementary OS logo
Last active December 25, 2015 14:05
#script #ogo
@spcmd
spcmd / youtube_rss_feeds
Created January 8, 2016 16:21
Youtube RSS feed urls
# Chris Were Digital | Linux, Tech and Open Source
https://www.youtube.com/feeds/videos.xml?channel_id=UCAPR27YUyxmgwm3Wc2WSHLw
# The Ben Heck Show
https://www.youtube.com/feeds/videos.xml?channel_id=UChturLXwYxwTOf_5krs0qvA
# Lazy Game Reviews
https://www.youtube.com/feeds/videos.xml?channel_id=UCLx053rWZxCiYWsBETgdKrQ
# LinusTechTips
https://www.youtube.com/feeds/videos.xml?channel_id=UCXuqSBlHAE6Xw-yeJA0Tunw
# TekLinux
https://www.youtube.com/feeds/videos.xml?channel_id=UCOWcZ6Wicl-1N34H0zZe38w
@spcmd
spcmd / magnet2rtorrent.desktop
Created March 20, 2016 13:01
.desktop file for my magnet2rtorrent script
[Desktop Entry]
Version=1.0
Type=Application
Name=magnet2rtorrent
Comment=Load magnet links to rtorrent (usable with Firefox, Luakit or other browsers)
Icon=/home/spcmd/.icons/rtorrent.png
Exec=magnet2rtorrent
Terminal=false
@spcmd
spcmd / youtube_redirect.lua
Created March 25, 2016 16:28
luakit redirect youtube.com to m.youtube.com
-- Put it in your rc.lua above the "End user script loading" part.
-- Redirect youtube.com to m.youtube.com
webview.init_funcs.youtube_redirect = function (view, w)
view:add_signal("navigation-request", function (v, uri)
if string.match(uri, "^https://www%.youtube%.com/-$") then
v.uri = "https://m.youtube.com/?app=m"
return false
end
if string.match(uri, "www%.youtube%.com/watch%?v=") then
@spcmd
spcmd / privoxy-blocklist
Created March 30, 2016 12:54
/etc/conf.d/privoxy-blocklist
# Config of privoxy-blocklist
# array of URL for AdblockPlus lists
# for more sources just add it within the round brackets
URLS=("https://easylist-downloads.adblockplus.org/easylist.txt" "https://easylist-downloads.adblockplus.org/easyprivacy.txt" "https://easylist-downloads.adblockplus.org/fanboy-social.txt")
# config for privoxy initscript providing PRIVOXY_CONF, PRIVOXY_USER and PRIVOXY_GROUP
INIT_CONF="/etc/conf.d/privoxy"
# !! if the config above doesn't exist set these variables here !!
@spcmd
spcmd / ranger_simple_titlebar.py
Created April 26, 2016 10:24
Ranger titlebar which shows trash info
# Simple titlebar plugin for ranger with trash indicator on the left side
# Trash indicator appears only if trash contains at least one file
# Indicator is a unicode symbol, it may not appear on some systems (plugin is tested on Arch Linux)
# Copy this file to ~/.config/ranger/plugins
from ranger.gui.widgets.titlebar import TitleBar
import os
def _get_left_part(self, bar):