Skip to content

Instantly share code, notes, and snippets.

View benzntech's full-sized avatar

Benson benzntech

  • Tech enthusiast
  • Coimbatore
View GitHub Profile
@DinoChiesa
DinoChiesa / delete-youtube-shorts-watch-history.user.js
Created April 14, 2024 17:05
Tampermonkey script that removes watch history of youtube shorts
// ==UserScript==
// @name autodelete-Youtube-watch-history-shorts - youtube.com
// @namespace youtube
// @description automatically deletes watch history of shorts.
// @match https://myactivity.google.com/product/youtube/
// @grant none
// @version 0.1.0
// @run-at document-end
// @license Apache 2.0
// ==/UserScript==
@miketromba
miketromba / deleteYoutubeWatchHistory.js
Last active April 13, 2024 18:02
Delete YouTube watch history with filter
const ENABLED = false // Keep this false while testing to verify that it's working correctly
const DELETE_INTERVAL = 1000 // Amount of time in MS to wait between deletion (more likely to fail with a small number)
// This filter should return a boolean (true == delete video, false == keep video)
const MIN_DURATION_MS = 1000 * 60 * 1.5 // 1:30 mins
const SHOULD_DELETE = videoElement => {
try {
// Get the duration string
$(".new-goods-submit-button").on('click',function(){
console.log('submitting goood');
//get hash of the good
var file_unique_hash = $("#good_file_input").data('uniquehash');
var file_name = "canoe";
var file_description = "a wooden boat";
@dev-ext
dev-ext / install.sh
Last active July 12, 2018 04:08
ubuntu gitkraken install from terminal
wget https://release.gitkraken.com/linux/gitkraken-amd64.deb
sudo dpkg -i --force-depends gitkraken-amd64.deb
sudo apt-get install -f
rm -f gitkraken-amd64.deb
@craigminihan
craigminihan / gist:229b0ee9dcf4ab6d794c4c8ee1f0d92e
Last active February 9, 2018 05:16
Install GCC-4.9 and LLVM/Clang-3.6 on Ubuntu 12 a bit like Travis CI
# replace your local package mirror if it is borked
#apt-get clean
#sed -i 's/http\:\/\/..\.archive\./http:\/\/us.archive./g' /etc/apt/sources.list
apt-get update
# add launchpad's ppa to apt
apt-get install -y python-software-properties
add-apt-repository -y ppa:ubuntu-toolchain-r/test
apt-get update
@kenchung
kenchung / The Technical Interview Cheat Sheet.md
Last active April 8, 2018 01:52 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@mingfang
mingfang / convert id_rsa to pem
Last active March 3, 2024 08:46
Convert id_rsa to pem file
openssl rsa -in ~/.ssh/id_rsa -outform pem > id_rsa.pem
chmod 600 id_rsa.pem
@kostaz
kostaz / Compile_Bitcoin_on_Ubuntu_14_04
Last active September 3, 2023 10:31
Compile Bitcoin on Ubuntu 14.04
Assuming the username of the Ubuntu user is "theusername".
Preparation
-----------
```
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential libtool autotools-dev autoconf pkg-config libssl-dev