Skip to content

Instantly share code, notes, and snippets.

View HariSekhon's full-sized avatar
🏠
Digital Nomad

Hari Sekhon HariSekhon

🏠
Digital Nomad
View GitHub Profile
@HariSekhon
HariSekhon / ubuntu.md
Created March 22, 2024 01:20
ubuntu.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowlege-Base

Ubuntu

https://ubuntu.com/

The most widely used Linux distribution for cloud installations, derived from the battle tested stable long term Debian distribution which is now the standard for Linux and the eventual winner of the long Linux distro wars, as the result of Redhat abandoning the open source mission in favour of profits and relegating themselves to becoming legacy.

For servers always use LTS releases for stability (LTS = Long Term Support).

@HariSekhon
HariSekhon / travis.md
Created March 22, 2024 01:20
travis.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowlege-Base

Travis CI

One of the original hosted CI/CD systems.

Reasonable UI, but...

travis-ci.org was free for open source, but has been retired.

travis-ci.com remains as a paid offering.

@HariSekhon
HariSekhon / travel-consulting.md
Created March 22, 2024 01:19
travel-consulting.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowlege-Base

Travel Consulting

For Travel Consulting.

HolaFly

Digital eSim where you can buy unlimited internet for up to 20 days pre-paid:

https://esim.holafly.com/

@HariSekhon
HariSekhon / stress-testing.md
Created March 22, 2024 01:19
stress-testing.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowlege-Base

Stress Testing

Stress testing is taking a system to its limit to see how it behaves, how it deteriorates and what the maximum functional capacity is.

Loading testing aka soak testing is sustained loading the system, rather than testing the limits.

This is useful to burn in hardware to avoid early stage production failures, leaving around 3 year later staggered failures, MTTR / MTBF etc.

Things you want to stress

@HariSekhon
HariSekhon / ssh.md
Created March 22, 2024 01:19
ssh.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowlege-Base

SSH

Only SSH to a Remote host using your SSH key

ssh -o PreferredAuthentications=publickey ...

Use SSH Agent

@HariSekhon
HariSekhon / ssh-tunnelling.md
Created March 22, 2024 01:19
ssh-tunnelling.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowlege-Base

SSH Tunnelling

Generic SSH Port Forwarding

SSH login to host1 and bind local port number to forward through the ssh tunnel to host2 on the specified port.

ssh -L <local_port>:<host2>:<host2_port> <user>@<host1>
@HariSekhon
HariSekhon / solr.md
Created March 22, 2024 01:19
solr.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowlege-Base
@HariSekhon
HariSekhon / snowflake.md
Created March 22, 2024 01:19
snowflake.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowlege-Base

Snowflake

SnowPipe

--use role snowpipe_role;
use database demo_db;

create or replace stage demo_db.public.snowstage
    url='s3://snowflake-oregon/'
@HariSekhon
HariSekhon / shell.md
Created March 22, 2024 01:19
shell.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowlege-Base

Shell

  • Bash - the gold standard in shell scripting - see bash.md
  • Bourne - the original unix shell - Bash is the Bourne Again Shell - next generation Bourne shell
  • Ksh - Korn shell - another old unix shell
  • Tcsh - BSD shell - just use Bash
  • Zsh - slightly more feature rich shell than Bash. Not sure it's worth the hassle aside from ** directory recursion globbing
  • Fish - friendly interactive shell - meaning user friendly

Fish

@HariSekhon
HariSekhon / sbt.md
Created March 22, 2024 01:19
sbt.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowlege-Base