Skip to content

Instantly share code, notes, and snippets.

@vihang
vihang / private_fork.md
Created June 11, 2025 07:05 — 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 [email protected]:usi-systems/easytrace.git

@vihang
vihang / matrix-bridge-python.md
Created January 3, 2024 07:19
How to develop a Matrix Bridge in Python

How to develop a Matrix Bridge in Python

Creating a Matrix bridge involves connecting the Matrix ecosystem with another chat service, enabling users to communicate across different platforms. In this guide, we'll develop a simple Matrix bridge using Python 3.12 and the Matrix Application Service (AppService) API with Synapse.

@vihang
vihang / fn_ksuid.sql
Created May 5, 2022 05:51 — forked from fabiolimace/ksuid.sql
Function for generating Segment's KSUIDs on PostgreSQL
/**
* Returns a Segment's KSUID.
*
* Reference implementation: https://github.com/segmentio/ksuid
* Also read: https://segment.com/blog/a-brief-history-of-the-uuid/
*/
create or replace function fn_ksuid() returns text as $$
declare
v_time timestamp with time zone := null;
v_seconds numeric := null;
@vihang
vihang / 0_reuse_code.js
Created June 23, 2014 09:31
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@vihang
vihang / asgard.log
Created July 25, 2012 14:21
Asgard stuck at "Asgard is starting up. This may take a few minutes. "
[2012-07-25 22:16:55,351] [localhost-startStop-1] com.netflix.asgard.ConfigService Initializing...
[2012-07-25 22:16:55,760] [localhost-startStop-1] com.netflix.asgard.InitService Initializing...
[2012-07-25 22:16:55,776] [localhost-startStop-1] com.netflix.asgard.RegionService Initializing...
[2012-07-25 22:16:58,035] [localhost-startStop-1] com.netflix.asgard.MonkeyPatcherService Initializing...
[2012-07-25 22:16:58,427] [localhost-startStop-1] com.netflix.asgard.InitService Starting caches
[2012-07-25 22:16:58,432] [localhost-startStop-1] com.netflix.asgard.SshService Initializing...
[2012-07-25 22:16:58,433] [localhost-startStop-1] com.netflix.asgard.SecretService Initializing...
[2012-07-25 22:16:58,437] [localhost-startStop-1] com.netflix.asgard.AwsClientService Initializing...
[2012-07-25 22:16:58,562] [localhost-startStop-1] com.netflix.asgard.AwsSimpleDbService Initializing...
[2012-07-25 22:16:58,803] [localhost-startStop-1] com.netflix.asgard.EmailerService Initializin