Skip to content

Instantly share code, notes, and snippets.

@dracorp
dracorp / joemonster_key_navigation.user.js
Last active October 17, 2017 20:47
Key navigation for joemonster.org
// ==UserScript==
// @name joemonster.org key navigation
// @namespace dracorp.pl
// @include http://joemonster.org/mg/*
// @include http://joemonster.org/filmy/*
// @include http://joemonster.org/art/*
// @version 0.1
// @grant none
// @require https://code.jquery.com/jquery-2.1.1.min.js
// vim: syntax=jquery
@dracorp
dracorp / sjp.user.js
Last active October 18, 2017 06:43
Ustawia skupienie na kontrolce input dla sjp.pl
// ==UserScript==
// @name sjp.pl
// @description Ustawia skupienie na kontrolce input i zaznacza wprowadzony tekst
// @namespace dracorp.pl
// @include http://sjp.pl/*
// @include https://sjp.pl/*
// @version 0.1
// @grant none
// ==/UserScript==
window.onload = function(){
@dracorp
dracorp / reexport.sh
Created November 25, 2014 23:57
Bash reexport
#!/bin/bash -
declare -A before
while read linia; do
key=${linia%=*}
value=${linia#*=}
before+=(["$key"]="$value")
done < <(export -p | cut -d' ' -f3-)
. original.script.sh
[Adblock Plus]
! Title: LubieCiasteczka
! Last modified: 1 Apr 2014 10:11 GMT
! Expires: 2 days (update frequency)
! Homepage: http://lubieciasteczka.net/
~komunikacja.bialystok.pl,~nvidia.com##:not(input)[id*="cookie"]
##:not(input)[id*="Cookie"]
~bt4.pl,~kolba.pl,~ezakupy.tesco.pl##div[class*="cookie"]
#!/usr/bin/env bash
#===============================================================================
# NAME
# repo-manage.sh - manage local ArchLinux repo for AUR packages
#
# SYNOPSIS
# repo-manage.sh [-hu] package action
#
# DESCRIPTION
# The program maintain local package database. Is auxilary program to adding or removing a package from local database when the package will be built by makepkg program or when will be removed.
# prefer terminal safe colored and bold text when tput is supported
if [[ -n "$PREFER_TPUT" && `command -v tput 1>/dev/null 2>&1` ]]; then
# Attributes
NORMAL=$(tput sgr0)
NC=$(tput sgr0)
RESET=$(tput sgr0)
ALL_OFF=$(tput sgr0)
BOLD=$(tput bold)
BRIGHT=$(tput bold)
if [ "${BASH_SOURCE[0]}" == "$0" ] || [ "${.sh.file}" == "$0" ] || [ "${(%):-%x}" == "$0" ]; then
# invoked as script
printf "You should source this script not invoke as program\n" >&2
exit 1
fi
# Maintainer: Piotr Rogoza <piotr.r.public at gmail dot com>
pkgbase=sqlitestudio
pkgname=sqlitestudio
true && pkgname=(
sqlitestudio
sqlitestudio-plugins
)
_pkgname=SQLiteStudio
pkgver=3.1.1
pkgname=nix
arch=(x86_64 i686)
pkgver=1.11.4
pkgrel=1
url="https://nixos.org/nix/download.html"
license=('GPL')
makedepends=(bzip2 openssl sqlite perl-dbd-sqlite perl-www-curl)
depends=(libsodium gcc-libs curl bzip2 xz sqlite)
source=(
"https://nixos.org/releases/nix/nix-${pkgver}/nix-${pkgver}.tar.xz"
#!/usr/bin/env bash
clear
printf '\033[3J'