Skip to content

Instantly share code, notes, and snippets.

View hctilg's full-sized avatar
🌱
Studying for the entrance exam (Konkour)

Mahi hctilg

🌱
Studying for the entrance exam (Konkour)
View GitHub Profile
@tavallaie
tavallaie / secure_erase.sh
Last active May 21, 2024 01:54
**Secure Data Erasure Script (Bash)** This Bash script securely erases data from a specified device with random data, ensuring irrecoverability. Use with caution.
#!/bin/bash
# Check if the script is run with superuser privileges
if [ "$EUID" -ne 0 ]; then
echo "Please run this script as root (sudo)."
exit 1
fi
# Prompt the user for the target devices
read -p "Enter the target devices (e.g., /dev/sdX /dev/sdY): " target_devices
@ascpixi
ascpixi / decrease.js
Last active March 6, 2024 03:07
🔊 YouTube gain control bookmarklets
javascript:(()=>{var $=(d)=>{return document.querySelector(d)};if(!window.K){var a=new AudioContext();var g=a.createGain();window.e=g;window.K=1.5;g.gain.value=1.5;a.createMediaElementSource($("video")).connect(g);g.connect(a.destination)}else{window.K/=2;window.e.gain.value=window.K}var f=$("#gV");if(f){f.remove()}let V=document.body.appendChild(document.createElement("div"));V.style="padding:8px;position:fixed;z-index:9999;background-color:#000000ee;color:#fff;font-size:2em;border-bottom:red solid 1px";V.innerText="Gain changed to "+window.K;V.id="gV";setTimeout(()=>{V.remove()},2000)})()
@pvrego
pvrego / Colored Github README.md
Last active May 30, 2024 12:00
How to make README.md files with colored texts in Github

Colored text #1

You can use the diff language tag to generate some colored text:

- text in red
+ text in green
! text in orange
# text in gray
@@ text in purple (and bold)@@
From Zero to ZeroDay Journey: Router Hacking (WRT54GL Linksys Case)
===================================================================
- Leon Juranic <leon[at]defensecode.com>
http://www.defensecode.com/
Date: 03/10/2013
@natebass
natebass / quotes.json
Created June 20, 2016 07:29
A list of random quotes
[{"quote": "Life isn’t about getting and having, it’s about giving and being.", "author": "Kevin Kruse"},
{"quote": "Whatever the mind of man can conceive and believe, it can achieve.", "author": "Napoleon Hill"},
{"quote": "Strive not to be a success, but rather to be of value.", "author": "Albert Einstein"},
{"quote": "Two roads diverged in a wood, and I—I took the one less traveled by, And that has made all the difference.", "author": "Robert Frost"},
{"quote": "I attribute my success to this: I never gave or took any excuse.", "author": "Florence Nightingale"},
{"quote": "You miss 100% of the shots you don’t take.", "author": "Wayne Gretzky"},
{"quote": "I’ve missed more than 9000 shots in my career. I’ve lost almost 300 games. 26 times I’ve been trusted to take the game winning shot and missed. I’ve failed over and over and over again in my life. And that is why I succeed.", "author": "Michael Jordan"},
{"quote": "The most difficult thing is the decision to act, the rest is merely tenacity.", "author": "
@roachhd
roachhd / README.md
Last active June 3, 2024 11:26
Basics of BrainFuck

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

BrainFuck Programming Tutorial by: Katie

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

INTRODUCTION