Skip to content

Instantly share code, notes, and snippets.

View openbookings26's full-sized avatar
🖥️

Frak openbookings26

🖥️
View GitHub Profile
@openbookings26
openbookings26 / 2024-03-22.zip
Last active March 22, 2024 18:41
2024-03-22.zip
This file has been truncated, but you can view the full file.
@openbookings26
openbookings26 / 2023-12-17.zip
Last active December 18, 2023 02:59
dotnet-2023-12-17
This file has been truncated, but you can view the full file.
@openbookings26
openbookings26 / convert_url.user.js
Last active March 9, 2023 18:35
technicolor -> vantiva URL converter
// ==UserScript==
// @name Technicolor -> Vantiva
// @run-at document-start
// @namespace http://tampermonkey.net/
// @version 0.5
// @description Replace technicolor.com with vantiva.com in URLs so that old links work without manual intervention.
// @author You
// @match https://*.technicolor.com/*
// @icon https://github.com/frakman1/icons/raw/main/rainbow-convert.png
// @grant none
@openbookings26
openbookings26 / amazon_url_cleaner
Created May 23, 2020 02:00
Amazon URL Cleaner
// ==UserScript==
// @name Amazon URL Cleaner
// @description Show the shortest possible URL for Amazon items.
// @namespace http://tampermonkey.net/
// @match https://www.amazon.com/dp/*
// @match https://www.amazon.com/*/dp/*
// @match https://www.amazon.com/gp/product/*
// @match https://www.amazon.com/*/ASIN/*
// @run-at document-start
// @version 0.2
@openbookings26
openbookings26 / screenshot.py
Last active December 30, 2022 14:18
screenshot utility
#!/usr/bin/env python
# Python screenshot tool (fullscreen/area selection)
# Ported from https://gist.github.com/initbrain/6628609
# Tested on Windows 7 64bit using PyQt5 and python 3.7
# area selection NOT working
import sys
from PyQt5 import QtCore, QtGui, QtWidgets
from subprocess import getoutput
@openbookings26
openbookings26 / screenshot.py
Created January 31, 2019 04:08
screenshot utility using PyQt5 on Windows 7 and python 3.7
#!/usr/bin/env python
# Python screenshot tool (fullscreen/area selection)
# Tested on:
# Lubuntu 13.04 x86_64
# Gentoo 4.1.7-hardened-r1 x86_64
import sys
from PyQt5 import QtCore, QtGui, QtWidgets
from subprocess import getoutput
@openbookings26
openbookings26 / screenshot.py
Created January 31, 2019 04:08
screenshot utility using PyQt5 on Windows 7 and python 3.7
#!/usr/bin/env python
# Python screenshot tool (fullscreen/area selection)
# Tested on:
# Lubuntu 13.04 x86_64
# Gentoo 4.1.7-hardened-r1 x86_64
import sys
from PyQt5 import QtCore, QtGui, QtWidgets
from subprocess import getoutput
@openbookings26
openbookings26 / pre-receive
Last active November 15, 2022 17:16
pre-receive hook in python to enforce commit message rules (and log violations)
#!/usr/bin/python
# coding: utf-8
import sys
import re
import subprocess
import datetime
class bcolors:
HEADER = '\033[95m'