Skip to content

Instantly share code, notes, and snippets.

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

Bangon Kali bangonkali

🏠
Working from home
View GitHub Profile
@bangonkali
bangonkali / change_author.sh
Created November 21, 2019 18:47
This script changes the author of a certain git repository.
#!/bin/bash
# Change the GIT author
git filter-branch --env-filter '
export GIT_AUTHOR_NAME="bangonkali"
export GIT_AUTHOR_EMAIL="[email protected]"
' --tag-name-filter cat -- --branches --tags
#include "SoftwareSerial.h"
SoftwareSerial swSer1;
void setup() {
// Debug serial
Serial.begin( 115200 );
// Serial connected to LIDAR sensor
// Serial.begin( 115200 );
export class JsonUtils {
public static getCircularReplacer(): object {
const seen = new WeakSet();
return (key: string, value: object): any => {
if (typeof value === 'object' && value !== null) {
if (seen.has(value)) {
return;
}
seen.add(value);
}

Installing Synergy on Ubuntu 18.04

sudo apt-get install -y libavahi-compat-libdnssd1
sudo dpkg -i synergy_1.11.1.stable_b35+55ec3105_ubuntu18_arm64.deb

To start the Synergy client with systemd, create a service file: ~/.config/systemd/user/synergyc.service

https://www.snapchat.com/unlock/?type=SNAPCODE&uuid=249672733a114405ac286a0dd2dd1b9c&metadata=01
@bangonkali
bangonkali / README.md
Created October 22, 2020 05:20
Azure Container Notes

Download all files in a container

az login
az account set --subscription "subscription_id"
az storage blob download-batch -d . \
  --pattern "*.*" \
  -s "container_name" \
  --account-name "storage_account_name" \
 --connection-string "conntection_string"
@bangonkali
bangonkali / README.md
Created February 7, 2021 18:39
Certbot & NGINX Autorenew System

Certbot & NGINX Autorenew System

Manual Renewal

certbot renew --pre-hook "service nginx stop" --post-hook "service nginx start"

Automated Renewal

@bangonkali
bangonkali / README.md
Created May 20, 2021 11:34
Proxmox Notes
@bangonkali
bangonkali / README.md
Last active May 16, 2022 04:01
Jetson Xavier NX Notes

Docker Snippets

Create a deepstream-l4t docker container instance.

sudo docker run -it \
  --rm \
  --net=host \
  --runtime nvidia \
 -e DISPLAY=$DISPLAY \
@bangonkali
bangonkali / README.md
Created March 30, 2022 04:06
Bangon Kali's Favorite PowerShell Configuration

Bangon Kali's PowerShell Configuration

Install desired PowerShell Version

Configure PowerShell

Apply configuration on each Powershell version. Use command mklink /h target/Profile.ps1 source/Profile.ps1 to create a symlink so that you only need to edit 1 Profile.ps1 file.

  1. Install oh-my-posh using winget.