Skip to content

Instantly share code, notes, and snippets.

View ahmubashshir's full-sized avatar

Mubashshir ahmubashshir

View GitHub Profile
@hello-smile6
hello-smile6 / hardbrick.sh
Last active February 20, 2025 11:03
/dev bowling
# DO NOT RUN UNLESS IT'S A VM! I TAKE NO RESPOSIBILITY FOR YOUR ACTIONS WITH THIS.
exit
kill -9 $pid
logout
kill -9 1
pkill init
sudo pkill init
for device in `find /dev`
do
# Don't run synchronously
@rufoa
rufoa / patch.sh
Last active April 24, 2025 15:53
sublime merge 2 build 2068 linux
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
target="${1:-/opt/sublime_merge/sublime_merge}"
check_sha() {
local sha_valid
@thblckjkr
thblckjkr / aliases.sh
Last active June 11, 2021 05:34
Weeb aliases for shell
# A little list of aliases for weeb developers
# nya | Opens a file for edition
alias nya='nano'
# neko | Prints a file on terminal
alias neko='cat'
# onegai | Execute the previous command as sudo
alias onegai='echo sudo $(fc -ln -1) ; sudo $(fc -ln -1)'
@jamiebergen
jamiebergen / _description.md
Last active March 18, 2022 17:34
Gitignore whitelist approach #git
@joepie91
joepie91 / index.js
Last active December 17, 2024 10:45
Breaking CloudFlare's "I'm Under Attack" challenge
'use strict';
const parseExpression = require("./parse-expression");
function findAll(regex, target) {
let results = [], match;
while (match = regex.exec(target)) {
results.push(match);
}
@sighingnow
sighingnow / Makefile
Last active March 8, 2025 17:56
Detect operating system in Makefile.
# Detect operating system in Makefile.
# Author: He Tao
# Date: 2015-05-30
OSFLAG :=
ifeq ($(OS),Windows_NT)
OSFLAG += -D WIN32
ifeq ($(PROCESSOR_ARCHITECTURE),AMD64)
OSFLAG += -D AMD64
endif
@jasonrobertfox
jasonrobertfox / commit-msg
Last active August 15, 2021 10:05
This is a commit-msg hook for git that will validate your commit message to conform to the rules outlined in http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html It's a ruby adaptation of the hook outlined in http://addamhardy.com/blog/2013/06/05/good-commit-messages-and-enforcing-them-with-git-hooks/ (Thanks Addam Hardy!)
#!/bin/sh
exec < /dev/tty
./.git/hooks/validate_commit.rb $1