Skip to content

Instantly share code, notes, and snippets.

@agniswarm
agniswarm / private_fork.md
Created February 27, 2024 07:13 — 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

@agniswarm
agniswarm / ascii-table-alphabets.csv
Created November 15, 2023 09:03
Ascii Table Alphabets - Medium
CAPITAL ALPHABETS POSITIONS BINARY SMALL ALPHABETS POSITIONS BINARY
A 65 1000001 a 97 1100001
B 66 1000010 b 98 1100010
C 67 1000011 c 99 1100011
D 68 1000100 d 100 1100100
E 69 1000101 e 101 1100101
F 70 1000110 f 102 1100110
G 71 1000111 g 103 1100111
H 72 1001000 h 104 1101000
I 73 1001001 i 105 1101001
@agniswarm
agniswarm / readme.md
Created September 12, 2021 20:13 — forked from jdrew1303/readme.md
Market Order Matching Engine

Introduction

The computer driven markets for instruments like stocks and exchange traded stock options, have transformed finance and the flow of capital. These markets are enabled by order matching engines (and the infrastructure that supports this software). Before computer trading networks and matching engines, stocks where traded on cavernous exchange floors and transaction costs where high. When electronic trading fully matured, floor traders were a fading anachronism and transaction costs had been reduced to pennies a share in many cases. Electronic trading could not exist without advanced network infrastructure, but without the software matching engines no shares would change hands. The computer trading networks, the matching engine software has also created a concentrated nexus of potential failure. Failures in these systems have increased as the frequency and volume on the electronic networks has increased. The position of order matching engines in the trading infrastructure makes these systems o

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real

@agniswarm
agniswarm / generate-pushid.js
Created May 18, 2020 08:11 — forked from mikelehen/generate-pushid.js
JavaScript code for generating Firebase Push IDs
/**
* Fancy ID generator that creates 20-character string identifiers with the following properties:
*
* 1. They're based on timestamp so that they sort *after* any existing ids.
* 2. They contain 72-bits of random data after the timestamp so that IDs won't collide with other clients' IDs.
* 3. They sort *lexicographically* (so the timestamp is converted to characters that will sort properly).
* 4. They're monotonically increasing. Even if you generate more than one in the same timestamp, the
* latter ones will sort after the former ones. We do this by using the previous random bits
* but "incrementing" them by 1 (only in the case of a timestamp collision).
*/
@agniswarm
agniswarm / launch.json
Created April 29, 2020 09:16 — forked from cecilemuller/launch.json
Run ts-node in VSCode Debugger
{
"version": "0.2.0",
"configurations": [
{
"name": "Node Inspector",
"type": "node",
"request": "launch",
"args": ["${workspaceRoot}/src/service.ts"],
"runtimeArgs": ["-r", "ts-node/register"],
"cwd": "${workspaceRoot}",
@agniswarm
agniswarm / docker-compose.yml
Last active January 8, 2020 16:07
run keycloak container with postgres
version: '3'
services:
keycloak:
container_name: keycloak
image: jboss/keycloak
environment:
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: admin
DB_VENDOR: postgres
DB_ADDR: $POSTGRES_ADDR
@agniswarm
agniswarm / docker-compose.yml
Last active December 25, 2019 18:10
Neo4j Docker
version: '3'
services:
graphdb:
image: neo4j
ports:
- 7474:7474
- 7687:7687
volumes:
- $HOME/neo4j/data:/data
@agniswarm
agniswarm / jwtRS256.sh
Created November 16, 2019 13:04 — forked from ygotthilf/jwtRS256.sh
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub
@agniswarm
agniswarm / .prettierrc
Created June 11, 2019 16:17
Linting with prettier and TSLint and husky
{
"arrowParens": "avoid",
"bracketSpacing": true,
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxBracketSameLine": false,
"jsxSingleQuote": false,
"printWidth": 100,
"proseWrap": "always",
"quoteProps": "as-needed",