Skip to content

Instantly share code, notes, and snippets.

View deltabravozulu's full-sized avatar
👌
dank memes

deltabravozulu deltabravozulu

👌
dank memes
View GitHub Profile
@deltabravozulu
deltabravozulu / howto_deb_repackage.txt
Last active January 10, 2023 08:56 — forked from axeliodiaz/howto_deb_repackage.txt
Howto repackage deb packages
Use folowing steps to repackage debian package:
1: Make dirs
# mkdir extract/DEBIAN build -p
2: Extract deb package
# dpkg-deb -x <package.deb> extract/
3: Extract control-information from a package
# dpkg-deb -e <package.deb> extract/DEBIAN
@deltabravozulu
deltabravozulu / eBay average price
Created February 18, 2022 06:28 — forked from danomoseley/eBay average price
Find an average sold price of an eBay search.Do a search for a product, check the "Sold listings" option under "Show only" in the left navigation.Run this script by pasting it into the console tab of the chrome developer tools.
// var priceCells = document.querySelectorAll('.s-item__price'); //returns a list with all the elements that have class 'priceCell'
let priceCells = document.querySelectorAll('#srp-river-results > ul > li > div > div.s-item__info.clearfix > div.s-item__details.clearfix > div:nth-child(1) > span > span')
sp = []
const length = priceCells.length
function soldPriceArray() {
for (let i = 0; i < length; i++) {
let soldPrice = parseFloat(priceCells[i].innerText.trim().replace('$', '').replace(',', ''))
sp.push(soldPrice)
}
@deltabravozulu
deltabravozulu / auto_scroll_bookmarklet.js
Last active July 8, 2021 05:50 — forked from jpigla/auto_scroll_bookmarklet.js
Bookmarklet to Autoscroll Webpages (with commands); sped up-- also works on facebook now.
javascript: (function() {
var a = document.body.clientHeight
var b = document.documentElement.scrollHeight
var c = document.documentElement.clientHeight
var d = innerHeight
var e = document.height
console.log("document.body.clientHeight:\t\t\t\t\t" + a + ";\ndocument.documentElement.scrollHeight:\t\t" + b + ";\ndocument.documentElement.clientHeight:\t\t" + c + ";\ninnerHeight:\t\t\t\t\t\t\t\t" + d + ";\ndocument.height:\t\t\t\t\t\t\t" + e);
if (document.URL.includes("facebook.com")) {
@deltabravozulu
deltabravozulu / file_type_sorter.py
Created June 16, 2021 09:53 — forked from notalentgeek/file_type_sorter.py
My Python script to sort file based on its MIME type into separate folders.
# This is a Python script that let you arrange
# files into a folder for each extension. Actually
# I lied, this script is not about file extension
# but about a file's mime type. So, in case there
# are files that has no extension this script can
# predict what the file's extension could be.
# However, the only requirement is that file need
# to be able to be read by the computer's OS. For
# example image files usually has no problem with
# this script also with other media files. But,