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
@robertoestivill
robertoestivill / launcher.sh
Last active November 7, 2019 18:45
Bash alternative to Franz
#!/bin/bash
open -a "Google Chrome" --new --args --new-window \
'https://tweetdeck.twitter.com' \
'https://web.whatsapp.com' \
'https://blastersystems.slack.com/' \
'https://www.messenger.com/' \
'https://web.telegram.org/' \
'https://web.skype.com' \
'https://hangouts.google.com/' \
@oanhnn
oanhnn / using-multiple-github-accounts-with-ssh-keys.md
Last active June 4, 2024 15:48
Using multiple github accounts with ssh keys

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.
@domenic
domenic / 0-github-actions.md
Last active May 26, 2024 07:43
Auto-deploying built products to gh-pages with Travis

Auto-deploying built products to gh-pages with GitHub Actions

This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.

A file below this one contains the steps for doing this with Travis CI. However, these days I recommend GitHub Actions, for the following reasons:

  • It is much easier and requires less steps, because you are already authenticated with GitHub, so you don't need to share secret keys across services like you do when coordinate Travis CI and GitHub.
  • It is free, with no quotas.
  • Anecdotally, builds are much faster with GitHub Actions than with Travis CI, especially in terms of time spent waiting for a builder.
@tmplinshi
tmplinshi / Class_CustomFont.ahk
Last active August 8, 2023 14:55
Load font from file or resource, without needed install to system. https://autohotkey.com/boards/viewtopic.php?f=6&t=813
/*
CustomFont v2.01 (2018-8-25)
---------------------------------------------------------
Description: Load font from file or resource, without needed install to system.
---------------------------------------------------------
Useage Examples:
* Load From File
font1 := New CustomFont("ewatch.ttf")
Gui, Font, s100, ewatch
@aviaryan
aviaryan / HotstringTimed.ahk
Created June 10, 2013 05:19
Hotstrings with expiry time support
gosub, iniths
;######### YOUR HOTSTRING AREA ###################################
::btw::
SendLimit("btw", "by the way", 1500) ;type btw within 1.5 secs
return
::wth::
SendLimit("wth", "what the hell", 1000)
return
@aviaryan
aviaryan / Autohotkeyupdater.ahk
Last active May 28, 2019 16:37
AutoHotkey Updater - Know when there exists update for Autohotkey_L
/*
AutoHotkey Updater by Avi Aryan
Updated 24/4/13
===============================
For AHK_L
As ahk_basic is not updated anymore . Version stuck to 1.0.48.05
===============================
---------
Know-Hows
@aviaryan
aviaryan / sublimetextshortcuts.txt
Created April 22, 2013 12:09
My Useful Sublime Text Shortcuts
Sublime Text 2 Shortcuts
=======================
The List is not complete.
It's just the shortcuts I know and I find useful
=================================================
WINDOWS
=================================================
Ctrl + Click - Add Multiple Cursors
@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 / Github Debug Error Fix.txt
Last active April 13, 2018 17:06
Debug Error - GitHub for Windows, --> debug the state of this repo - Easy Fix
By Avi Aryan
This Text explains how to get around with "debug the state of this repo" Error.
This text does not uses Cmd and Powershell, so it can be followed by a basic user.
If you face the above Error in GitHub for Windows, then ------
* First Go to your local repo i.e. the repo's local folder.
* Show Hidden Files via the Folder Options.
* You will see a ".git" named folder in your local repo as soon as hidden files are set to be seen.
@aviaryan
aviaryan / Delimeter Replacement.ahk
Created April 8, 2013 06:47
Replace variables denoted by delimiters in Notepad
/*
Program Author = Avi Aryan
USAGE::
Run the Script
Open your text file with all variables in NOTEPAD..By Notepad , i mean Notepad
Hit Ctrl+Alt+F to start.
When First Match is found,Change the text to required text and then hit F6 . Spaces will be automatic.
...