Skip to content

Instantly share code, notes, and snippets.

View 8dcc's full-sized avatar
™️
™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️

​8dcc​ 8dcc

™️
™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️
View GitHub Profile
@8dcc
8dcc / compile.sh
Last active January 18, 2022 15:00
#!/bin/sh
##############################
# For linux only. Usage:
# ./compile.sh FILE.c [run]
##############################
# Check if sdl2 is installed
if [[ $(command -v sdl2-config) == "" ]]; then
echo "Cant' find sdl2. Exiting..."
@8dcc
8dcc / compile.sh
Last active May 30, 2022 10:58
Draw a window example in C. Tested in arch with dwm and sdl2.
#!/bin/bash
# Check if sdl2 is installed
if [[ $(command -v sdl2-config) == "" ]]; then
echo "Cant' find sdl2. Exiting..."
exit 1;
fi
SDL_FLAGS=$(sdl2-config --cflags --libs)
// ==UserScript==
// @name Remove autodownload shit from moodle
// @namespace Violentmonkey Scripts
// @match https://yoursite.org/*
// @grant none
// @version 1.0
// @author Null / r4v10l1
// @description 01/10/2021, 01:23:03
// ==/UserScript==
@8dcc
8dcc / hide-telegram-bar.js
Created October 19, 2021 02:08
Userscript to remove telegram contact list.
// ==UserScript==
// @name Hide bar telegram
// @namespace Violentmonkey Scripts
// @include *.telegram.org/*
// @grant GM_addStyle
// @run-at document-start
// @author r4v10l1
// ==/UserScript==
GM_addStyle (`
@8dcc
8dcc / remove-a-commit.md
Last active November 30, 2021 23:09
How to remove a recent commit.

How to remove a recent commit.

By restoring a recent commit, previous to the ones you want to delete, and then adding the ones you want to recover.

Based on here. Cherry Pick method.

Let's say these are our recent commits:

Number | Hash | Commit Message | Author

@8dcc
8dcc / remove-telegram-chat-list.js
Created October 12, 2021 19:54
Remove telegram chat list.
// ==UserScript==
// @name Hide bar telegram
// @namespace Violentmonkey Scripts
// @include *.telegram.org/*
// @grant GM_addStyle
// @run-at document-start
// @author Null
// ==/UserScript==
GM_addStyle (`
@8dcc
8dcc / remove-element.js
Created October 10, 2021 18:24
Remove element with violentmonkey.
GM_addStyle ( `
.element-thing {
display: none !important;
}
` );
@8dcc
8dcc / stringToCamelCase.py
Created October 6, 2021 16:51
Convert string to camel case
import re
def to_camel_case(text):
result = ""
first = True
if ("-" in text) or ("_" in text):
for word in re.findall(r"[a-zA-Z0-9]+", text):
if first:
result = result + word
@8dcc
8dcc / custom-scrollbar.css
Created September 29, 2021 14:40
Custom scrollbar for html
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
background: #999;
@8dcc
8dcc / 4chan.css
Created September 29, 2021 13:40
Custom 4chan css. Fuck stylish.
@font-face {
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: 400;
src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'), url(https://fonts.gstatic.com/s/sourcesanspro/v10/ODelI1aHBYDBqgeIAH2zlNV_2ngZ8dMf8fLgjYEouxg.woff2) format('woff2');
}
body {
background: #1c1c1c;
color: #C3C3C3;
font-family: 'Source Sans Pro', sans-serif;