This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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")) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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, |