Skip to content

Instantly share code, notes, and snippets.

@wgirhad
wgirhad / lsd_trip.js
Last active February 25, 2023 15:40
LSD Trip - Paste in console
(function(){let r=1;const s=_=>{document.body.style.setProperty('filter',`hue-rotate(${1.25*++r}deg)blur(${Math.max((Math.sin(r/20)+.3)*1.5,0)}px)`);window.requestAnimationFrame(s);};s()})()
@wgirhad
wgirhad / bash_to_zsh_history.sh
Last active July 9, 2024 17:28
Import bash history to zsh history
cat ~/.bash_history | awk '{print ": '`date +%s`':0;" $0}' >> ~/.zsh_history
@wgirhad
wgirhad / merge-to.sh
Last active December 17, 2021 13:07
Script to merge/push your current branch to n different branches
#!/bin/bash
# Usage examples:
# merge-to master staging development
# merge-to master, staging, development
# merge-to origin/master, origin/staging, origin/development
current=`git rev-parse --abbrev-ref HEAD`
remotes=`git remote`
@wgirhad
wgirhad / convert.php
Created August 23, 2019 19:21
Convert text to 8bit text emoji
<?php
$dictionary = [
'A' => <<<EOT
⬜⬜⬜⬜⬜⬜⬜⬜⬜
⬜⬜⬛⬛⬛⬛⬜⬜⬜
⬜⬛⬛⬜⬜⬜⬛⬜⬜
⬜⬛⬛⬜⬜⬜⬛⬜⬜
⬜⬛⬛⬛⬛⬛⬛⬜⬜
⬜⬛⬛⬜⬜⬜⬛⬜⬜