Skip to content

Instantly share code, notes, and snippets.

View sandaruonline's full-sized avatar
🏠
Working from home

Sandaru Fernando sandaruonline

🏠
Working from home
View GitHub Profile
@sandaruonline
sandaruonline / terminal-line-cursor-effect.css
Created June 6, 2022 20:27 — forked from kristofgilicze/terminal-line-cursor-effect.css
Terminal cursor style blinking dash at the end of the element with pure css
.terminal-line-cursor-effect::after {
content: ' _';
animation: animate 1.5s linear infinite;
}
@keyframes animate {
0% {
opacity: 0;
}
50% {
@sandaruonline
sandaruonline / AuthyToOtherAuthenticator.md
Created December 21, 2021 06:05 — forked from gboudreau/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Generating Authy passwords on other authenticators


There is an increasing count of applications which use Authy for two-factor authentication. However many users who aren't using Authy, have their own authenticator setup up already and do not wish to use two applications for generating passwords.

Since I use 1Password for all of my password storing/generating needs, I was looking for a solution to use Authy passwords on that. I couldn't find any completely working solutions, however I stumbled upon a gist by Brian Hartvigsen. His post had a neat code with it to generate QR codes for you to use on your favorite authenticator.

His method is to extract the secret keys using Authy's Google Chrome app via Developer Tools. If this was not possible, I guess people would be reverse engineering the Android app or something like that. But when I tried that code, nothing appeared on the screen. My guess is that Brian used the

@sandaruonline
sandaruonline / free-database-hosting.md
Created September 9, 2021 02:04 — forked from bmaupin/free-database-hosting.md
Free database hosting
@sandaruonline
sandaruonline / regex.md
Created September 1, 2021 01:55 — forked from vitorbritto/regex.md
Regex Cheat Sheet

Regular Expressions

Basic Syntax

  • /.../: Start and end regex delimiters
  • |: Alternation
  • (): Grouping

Keybase proof

I hereby claim:

  • I am sandaruonline on github.
  • I am sandaru (https://keybase.io/sandaru) on keybase.
  • I have a public key ASDs_iWkoBPkG9SgBzPQZJokUoYLJd9_nYH18P7jAll_Nwo

To claim this, I am signing this object:

@sandaruonline
sandaruonline / private_fork.md
Created July 23, 2021 01:23 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

@sandaruonline
sandaruonline / meta-tags.md
Created August 26, 2020 19:12 — forked from whitingx/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>

Discord

(Unofficial) Discord server rules suggestions list

Author's Note

I'll start off with letting you know this is a fork from someone else. However, for some bizarre reason, this is the one everyone finds, so I better get round to updating this. Credit to Cristiano#2233 for the original idea.

Also, I've had a lot of people saying the rules are to strict. If you pick all the rules here, you're right, it would be very strict. However the rules below are guidelines! They are there for you to pick the ones you desire, you can ignore ones you don't want. Hopefully they might help with rules you wouldn't have thought of otherwise.

// Discord all events!
// A quick and dirty fleshing out of the discord.js event listeners (not tested at all!)
// listed here -> https://discord.js.org/#/docs/main/stable/class/Client
// Learn from this, do not just copy it mofo!
//
// Saved to -> https://gist.github.com/koad/316b265a91d933fd1b62dddfcc3ff584
/*
koad-was-here
@sandaruonline
sandaruonline / markdown-text-101.md
Created September 15, 2019 18:02 — forked from matthewzring/markdown-text-101.md
A guide to Markdown on Discord.

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

Sweet Styles

Italics *italics* or _italics_

Underline italics __*underline italics*__