Skip to content

Instantly share code, notes, and snippets.

View frakman1's full-sized avatar
🖥️
What's Frakalakin'?

Frak frakman1

🖥️
What's Frakalakin'?
View GitHub Profile
@frakman1
frakman1 / 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.
@frakman1
frakman1 / 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.
@frakman1
frakman1 / 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
@frakman1
frakman1 / sources.list
Created August 20, 2021 02:08
Contents of /etc/apt/sources.list for Ubuntu 12.04 Precise Pangolin
# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ dists/precise/main/binary-i386/
# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ dists/precise/restricted/binary-i386/
# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ precise main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://old-releases.ubuntu.com/ubuntu precise main restricted
deb-src http://old-releases.ubuntu.com/ubuntu precise main restricted
@frakman1
frakman1 / 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
@frakman1
frakman1 / 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
@frakman1
frakman1 / 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
@frakman1
frakman1 / 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
@frakman1
frakman1 / 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'