Skip to content

Instantly share code, notes, and snippets.

View home-gihub's full-sized avatar

home-github home-gihub

  • . .
  • \_/
  • 21:02 (UTC +01:00)
View GitHub Profile
@home-gihub
home-gihub / a.js
Created October 23, 2023 12:39
dom element maker
function $(type, inside) {
let el = document.createElement(type)
el.appendChild(inside)
return el
}
@home-gihub
home-gihub / forkbomb.html
Created September 17, 2023 15:23
opens a bunch of moving windows
<html><body><script>function b(ab, bb) {return Math.random()*(bb - ab) + ab}function a(){window.moveTo(b(-screen.width, screen.width),b(-screen.height,screen.height));window.open(window.location)}for (var i = 0; i < Infinity; i++) {a()}</script></body></html>
// OWOifier break any website by adding owo before and after every element
// it is a bookmarklet so you can run it with a pus of a button just make a bookmart and set it to the url
// here it is
javascript:%22use%20strict%22;void%20function(){var%20a=document.createElement(%22style%22);a.innerText=%22\n\t*::before%20{%20\n%20\t%20content:%20\%22owo\%22;%20\n\t}\n\n\t*::after%20{\n\t%20%20content:%20\%22owo\%22;%20\n\t}\n%22,document.head.appendChild(a)}();
// the bookmarklet is made with https://chriszarate.github.io/bookmarkleter/
@home-gihub
home-gihub / setup.ps1
Last active June 17, 2023 17:55
simple script to get a few things for powershell
echo ' ___ _ _ _ _ '
echo '|_ _|_ _ __| |_ __ _| | (_)_ _ __ _ '
echo ' | || ` \(_-< _/ _` | | | | ` \/ _` |'
echo '|___|_||_/__/\__\__,_|_|_|_|_||_\__, |'
echo ' |___/ '
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser # Optional: Needed to run a remote script the first time
irm get.scoop.sh | iex
scoop install git
scoop bucket add extras