Skip to content

Instantly share code, notes, and snippets.

View aviaryan's full-sized avatar

Avi Aryan aviaryan

View GitHub Profile
@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 / 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"
@aviaryan
aviaryan / CDN.md
Created October 2, 2019 07:54 — forked from vinkla/CDN.md
A guide on how to upload images to GitHub's CDN through issue and pull request text fields.

Upload Images to GitHub's CDN

  1. First, visit any repository on GitHub and click your way through to the issues page.

  2. Create a new issue by clicking the New Issue button. You'll now see title and description fields.

  3. Drag-and-drop an image on to the description field. This will start the uploading process.

  4. Copy the URL and use it in README, issues or pull requests however you like.

@aviaryan
aviaryan / open-note-taking-format
Last active December 14, 2018 08:18
open note taking format
----
note_id: b1fd72f5-ff0a-46f9-a41b-4e3f4208bf18
notebook_id: 49bf069c-08b8-465f-845b-e39b24a513c4
title: Open Note-taking Format
tags: spec rant
created: 2018-12-10T10:00:43
modified: 2018-12-12T20:09:32
is_trashed: false
----
Verifying my Blockstack ID is secured with the address 1CYA733ju6n6VSnYtqymNfikoYBdwrJGvY https://explorer.blockstack.org/address/1CYA733ju6n6VSnYtqymNfikoYBdwrJGvY
@aviaryan
aviaryan / btc-eth-dca-buy.php
Created September 17, 2017 12:19 — forked from levelsio/btc-eth-dca-buy.php
This script runs daily and "Dollar Cost Average"-buys $40 BTC and $10 ETH per day
<?
//
// [ BUY BTC & ETH DAILY ON BITSTAMP ]
// by @levelsio
//
// 2017-08-23
//
// 1) buy $40/day BTC
// 2) buy $10/day ETH
//