Skip to content

Instantly share code, notes, and snippets.

View aviaryan's full-sized avatar
:electron:
Working

Avi Aryan aviaryan

:electron:
Working
View GitHub Profile
@aviaryan
aviaryan / zsh-on-windows.md
Last active February 9, 2024 03:22
Installing zsh and oh-my-zsh on Windows
  1. Install zsh from cygwin
  2. Install oh-my-zsh from https://github.com/robbyrussell/oh-my-zsh . Follow the manual instructions
  3. To make zsh default on ConEmu, create a task with C:\cygwin64\bin\mintty.exe /usr/bin/zsh - . Make it the defaut shell.
  4. To start a zsh shell on demand, add this batch script to your path or start menu or wherever.
start C:\cygwin64\bin\mintty.exe /usr/bin/zsh -
@aviaryan
aviaryan / css-box-noimage.html
Last active August 19, 2023 03:10
CSS message boxes without using any image or icon
<html>
<head><title>Testing boxes</title>
<style>
.symbol {
font-size: 0.9em;
font-family: Times New Roman;
border-radius: 1em;
padding: .1em .6em .1em .6em;
font-weight: bolder;
@aviaryan
aviaryan / Everything.ahk
Last active June 8, 2023 23:48
Everything Integration with AutoHotkey - Faster Search in Windows
EverythingPath = ;specify the path here
#IfWinActive ahk_class CabinetWClass
{
F6::
folder := GetFolder()
run, %EverythingPath% -path "%folder%"
return
}
@aviaryan
aviaryan / mac-setup-redis.md
Created July 20, 2021 13:21 — forked from tomysmile/mac-setup-redis.md
Brew install Redis on Mac

type below:

brew update
brew install redis

To have launchd start redis now and restart at login:

brew services start redis
@aviaryan
aviaryan / Clipjump - Temp Clipboard.ahk
Created August 24, 2013 03:51
Temporary Clipboards for use with Clipjump - Provides shortcuts to capture data to another private Clipboard.
;---------------------------------------
;TEMPORARY SYSTEM CLIPBOARD FOR CLIPJUMP
;v0.1
;---------------------------------------
;The shortcuts are Alt+C , X , V
!C::
copy("^c")
return
@aviaryan
aviaryan / index.html
Last active December 29, 2020 07:57
forEach v/s map speed test (https://jsbench.github.io/#6ff0c668d4b07112b9ea11ff19cdf59f) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>forEach v/s map speed test</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Font
:set guifont=Source\ Code\ Pro:h14
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Hide pointless junk at the bottom, doesn't work in .vimrc for some reason?
:set laststatus=0
:set noshowmode "don't show --INSERT--
:set noruler "don't show line numbers/column/% junk
@aviaryan
aviaryan / twittermute.txt
Created January 31, 2020 12:39 — forked from IanColdwater/twittermute.txt
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@aviaryan
aviaryan / listnodemodules.sh
Last active November 11, 2019 11:53
listing node modules by size
# ~/github
# ~/freelance
# ~/dev
# are directories with code projects
alias lsnodemodules="find ~/github ~/freelance ~/dev -type d -name 'node_modules' -prune -print0 | xargs -0 du -sh | sort -rh"