Skip to content

Instantly share code, notes, and snippets.

View n4n0GH's full-sized avatar
💀
[screeching in bone]

n4n0 n4n0GH

💀
[screeching in bone]
View GitHub Profile
@n4n0GH
n4n0GH / repo-reset.md
Created August 3, 2022 07:06 — forked from heiswayi/repo-reset.md
GitHub - Delete commits history with git commands

First Method

Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this:

# Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH

# Add all the files:
git add -A
@n4n0GH
n4n0GH / rooted_servicemenu.desktop
Last active November 17, 2019 08:53
Root actions for KDE's dolphin
[Desktop Entry]
Type=Service
ServiceTypes=KonqPopupMenu/Plugin
MimeType=all/all;
Icon=folder-root
Actions=rchown;rdolphin;rdelete;
X-KDE-Priority=TopLevel
X-KDE-StartupNotify=false
X-KDE-Submenu=Root actions
X-KDE-Submenu[de]=Root Aktionen
@n4n0GH
n4n0GH / 99-noto-mono-color-emoji.conf
Last active November 11, 2019 07:43 — forked from IgnoredAmbience/99-noto-mono-color-emoji.conf
Noto Emoji Color fontconfig for Konsole
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!--
Noto Mono + Color Emoji Font Configuration.
Currently the only Terminal Emulator I'm aware that supports colour fonts is Konsole.
Usage:
0. Ensure that the Noto fonts are installed on your machine.
1. Install this file to ~/.config/fontconfig/conf.d/99-noto-mono-color-emoji.conf
@n4n0GH
n4n0GH / autismo.js
Last active October 17, 2019 20:55 — forked from fl4ke/autismo.js
Memescript for Cordless
function onMessageSend(message){
return message.replace(/%%([^%]*)%%/g, function(autismo){
autismo = autismo.split('')
for(var i=0; i<autismo.length; i++){
autismo[i] = i%2?autismo[i].toLowerCase():autismo[i].toUpperCase()
}
autismo.unshift(':npc: ')
return autismo.join('')
})
.replace(/°°([^°]*)°°/g, function(autismo){
@n4n0GH
n4n0GH / deepcrawl.js
Last active September 1, 2019 09:51
Crawls page 0 of any given 4channel board
/* general setup */
const rp = require('request-promise')
const cheerio = require('cheerio')
const fs = require('fs')
const url = 'https://boards.4channel.org/'
const board = 'a'
const threadList = []
console.log('Loading config..')