This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" Output on stdout the current track song and artist on Nectarine. | |
It's mainly useful if you work with terminals around and don't want to keep the | |
Nectarine tab under your eyes all the time (even if it's raina's design). Due to | |
its nature it can be used with conky, but as it requests the nectarine page at | |
each execution, it would be better if you use it with the ${execi} command and a | |
big interval (10 or 20 seconds). Respect their servers, and long live Nectarine! | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" Adaptation of the original cb-exit script found in the Crunchbang | |
distribution to work with SystemD. | |
I replaced "cb" with "ob" to match the Openbox tool names (obconf, obmenu) | |
because that script fits well with the Openbox WM. | |
""" | |
import os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" Send a DBus notification on low battery. | |
Install Dependencies: | |
$ sudo apt-get install libdbus-glib-1-dev | |
$ sudo pip3 install batinfo python-daemon dbus-python notify2 | |
""" | |
import subprocess | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Update a Firefox version from shell. | |
# Useful for Debian stable and its ESR shenanigans. | |
# Can break due to a lot of things but w/e get off my lawn. | |
FFX_DIR="/opt/firefox" | |
INSTALL_DIR="$(dirname $FFX_DIR)" | |
# You can add a 'lang' query param to URL if you want (e.g. 'fr', 'it', ...) | |
BASE_URL="https://download.mozilla.org/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"encoding/json" | |
"image" | |
_ "image/jpeg" | |
_ "image/png" | |
"log" | |
"os" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# Spoupsify - Mute Spotify ads automatically | |
# WTFPL - github @dece - twitter @postdroned | |
# | |
# Run this script to automatically mute the Linux Spotify desktop application | |
# when it plays an audio ad. If your Spotify is not in English, you will need to | |
# add to the TITLES_TO_MUTE list the Spotify window title shown during ads. | |
# | |
# Please note that this script needs the Spotify window to be kept open or |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 5de9b0584edbb214a062386526ff464e4f011cad Mon Sep 17 00:00:00 2001 | |
From: Dece <[email protected]> | |
Date: Thu, 6 Jun 2019 16:58:50 +0200 | |
Subject: [PATCH] Remove onboarding Webview from firing at startup | |
By removing the onboarding view it prevents the application from forcing | |
you to register a Mailspring ID. A side effect is it removes the whole | |
welcoming process and initial setup of accounts, but nothing that can't | |
be set afterwards. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.UnsupportedEncodingException; | |
import java.security.InvalidAlgorithmParameterException; | |
import java.security.InvalidKeyException; | |
import java.security.Key; | |
import java.security.KeyPair; | |
import java.security.KeyPairGenerator; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.NoSuchProviderException; | |
import java.security.PrivateKey; | |
import java.security.PublicKey; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" IDAPython plugin to demangle the string under the cursor and set the result | |
as comment. This relies on the DbgHelp DLL on your system, so it should work for | |
most recent VC versions. This can be run as a standalone tool as well. """ | |
import argparse | |
import ctypes | |
import ctypes.util | |
import platform | |
try: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
try: | |
import irc.client | |
except ImportError: | |
exit("You need the IRC package to run this bot: pip3 install irc") | |
def main(): | |
argparser = argparse.ArgumentParser(description="\"pick up that chan, leetizen\"") |
OlderNewer