Skip to content

Instantly share code, notes, and snippets.

[Unit]
Description=LanguageTool Server Proxy
Requires=languagetool-server.service
After=languagetool-server.service
JoinsNamespaceOf=languagetool-server.service
[Service]
ExecStart=/lib/systemd/systemd-socket-proxyd 127.0.0.1:8082
PrivateTmp=yes
@somini
somini / languagetool-wrapper.py
Last active November 16, 2017 16:13
LanguageTool NeoMake Definitions
#!/usr/bin/python3
import sys
import subprocess
import json
LANGUAGETOOL = 'languagetool'
LANG = 'en-GB'
input_file = None
if len(sys.argv) > 1:
@somini
somini / apply-patch.sh
Last active February 25, 2016 01:36
Planescape: Torment Bugfixing Patch
#!/bin/bash
# usage: bspatch oldfile newfile patchfile
cp 'torment.exe' 'torment.exe~'
bspatch 'torment.exe~' 'torment.exe' 'torment.exe.bspatch'
@somini
somini / pomf
Last active August 29, 2015 14:16 — forked from KittyKatt/pomf
#!/usr/bin/env bash
# pomf.se uploader
# requires: curl
dest_url='http://pomf.se/upload.php'
return_url='http://a.pomf.se'
if [[ -n "${1}" ]]; then
file="${1}"
if [ -f "${file}" ]; then
@somini
somini / mint_update_background.py
Last active August 29, 2015 14:15
Python Script to update the XML for Linux Mint Background Slideshow
#!/usr/bin/env python
import os,sys,re
from lxml import etree as ET
folders = sys.argv[1:]
if len(folders) == 0:
sys.stderr.write("No folders given\n")
sys.exit()
@somini
somini / systemd-sleep_dpms
Last active August 29, 2015 14:08
SystemD Sleep DPMS Stuff
#!/bin/bash
if [ "$1" == "post" ]; then
sleep 1
DISPLAY=':0' xset dpms force standby
fi
@somini
somini / magnet.ruleset
Last active August 29, 2015 14:08
Policeman rulesets: Allow MAGNET links
magic: policeman_ruleset
version: 0.1
id: "scheme_magnet"
l10n:
en-US:
name: "Allow Magnet Links"
description: "This allows clicking in magnet links"
rules: