I hereby claim:
- I am jujhars13 on github.
- I am jujhars13 (https://keybase.io/jujhars13) on keybase.
- I have a public key ASAeglvTR_nhA9rKjRcQaBdkPWx6vNOBRP-mhCBos2rl_go
To claim this, I am signing this object:
#!/bin/bash | |
echo "SELECT * FROM people" | sqlite3 person.sqlite | |
echo "INSERT INTO people (firstName,lastName) | |
VALUES | |
('john', 'marsden-"{$RANDOM_ID}"') | |
" | sqlite3 person.sqlite | |
echo "SELECT * FROM people" | sqlite3 person.sqlite |
MY_NAME=nitish |
#!/bin/bash | |
# inspired by Leafshade software https://www.youtube.com/watch?v=zB_3FIGRWRU&t=333s | |
# daily notes | |
#noteFilename="$HOME/Dropbox/notes/notes/note-$(date +%Y-%m-%d).md" | |
# weekly notes | |
fileDate="$(date +%Y-%m-%d)" | |
if [[ "$(date +%a)" != "Mon" ]]; then | |
fileDate="$(date -dlast-monday +%Y-%m-%d)" | |
fi |
#!/bin/bash | |
# Thanks to https://medium.com/@craignewtondev/how-to-fix-kubernetes-namespace-deleting-stuck-in-terminating-state-5ed75792647e | |
# NB this can be dangerous, so use sparingly | |
export ns=broken-app; kubectl get ns "${ns}" -o json | sed s/\"kubernetes\"//g | kubectl replace --raw /api/v1/namespaces/"${ns}"/finalize -f - |
# log what I'm working on to a text file unde `$repo/<year>/<month>/<day>.md` | |
# change the $repo variable to point to a dir on your machine | |
# if the dir is a git repo then it will also commit to git, otherwise just do nothing | |
# | |
# USAGE: on "working on creating a script to make things better" | |
function on(){ | |
local version="1.1.4" | |
local repo="/home/jujhar/proj/jujhar-daily-log" | |
local year=$(date +%Y) | |
local month=$(date +%m) |
#!/bin/bash | |
# 2018-06-04 script to add your current IP address to access a specific | |
# $PORT on a security group | |
# for az cli tools install see https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest | |
# | |
# to run for your current IP address: | |
# NAME="mySecGroup" PORT=6379 ./azOpenPortOnRg.sh | |
# or to run for another IP address: | |
# IP=43.22.33.11 NAME="mySecGroup" PORT=6379 ./azOpenPortOnRg.sh |
I hereby claim:
To claim this, I am signing this object:
# perform a fresh install of Ubuntu 17.10 | |
# upgrade the kernel to v4.13.10 | |
mkdir ~/kernel-v4.13.10 | |
cd ~/kernel-v4.13.10 | |
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13.10/linux-headers-4.13.10-041310_4.13.10-041310.201710270531_all.deb | |
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13.10/linux-headers-4.13.10-041310-generic_4.13.10-041310.201710270531_amd64.deb | |
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13.10/linux-image-4.13.10-041310-generic_4.13.10-041310.201710270531_amd64.deb | |
sudo dpkg -i *.deb |
package main | |
import ( | |
"net/http" | |
"strings" | |
"fmt" | |
) | |
func sayHello(w http.ResponseWriter, r *http.Request) { | |
fmt.Print("Request made to ", r.URL.Path) | |
message := r.URL.Path | |
message = strings.TrimPrefix(message, "/") |
/** | |
* Plain Rest Web api, no external deps | |
* Nodejs > 14 | |
*/ | |
const http = require("http"); | |
const { | |
port = 8080, | |
yourName = "Themba", | |
environment = "development", | |
} = process.env; |