Skip to content

Instantly share code, notes, and snippets.

Avatar
😎
Everything's gonna be A-OK

Akshat Singh HackerDaGreat57

😎
Everything's gonna be A-OK
View GitHub Profile
@HackerDaGreat57
HackerDaGreat57 / darkpdf.css
Created February 19, 2023 01:44
Paste this into your console to make PDFs dark mode! (this also inverts the color of images) Works best on Firefox
View darkpdf.css
viewer.style = 'filter: grayscale(100%) invert(84%) contrast(178%) brightness(82%)'
@HackerDaGreat57
HackerDaGreat57 / hztest1.cpp
Last active December 8, 2022 19:31
A simple Hex-Zip test
View hztest1.cpp
//Recursive division test by HackerDaGreat57
#include <iostream>
int main()
{
std::cout << "Please enter a number: ";
unsigned long long int input_num;
std::cin >> input_num;
std::cout << "Recieved number " << input_num << ". Now seeing what it's divisible by..." << std::endl;
@HackerDaGreat57
HackerDaGreat57 / git_create_orphan.sh
Created October 9, 2022 03:33 — forked from seanbuscay/git_create_orphan.sh
Create an orphan branch in a repo.
View git_create_orphan.sh
cd repository
git checkout --orphan orphan_name
git rm -rf .
rm '.gitignore'
echo "#Title of Readme" > README.md
git add README.md
git commit -a -m "Initial Commit"
git push origin orphan_name