Skip to content

Instantly share code, notes, and snippets.

View scottstensland's full-sized avatar
💭
You learn more from a person at play than a year of conversation - Plato

Scott Stensland scottstensland

💭
You learn more from a person at play than a year of conversation - Plato
View GitHub Profile
@scottstensland
scottstensland / gist:0987e22e59d3881cecf08f89a64334bf
Created February 2, 2025 16:50
vim or neovim how to enable or disable copilot in your edit session
below is taken from the excellent video tut
Quickly Turn off Vim's Copilot - i.e. When Learning
https://www.youtube.com/watch?v=qhZYfVpC3fg
add below snippet to your ~/.vimrc
to map F12 key to toggle on / off github copilot for your vim or neovim
vi ~/.vimrc
@scottstensland
scottstensland / gist:14a0b212f8f151fb154c236f07ff71ee
Created April 23, 2024 12:27
one liner to update installed packages on a Debian based linux box
# one liner to update installed packages on a Debian based linux box like my laptop
#
# on debian based linux put below one liner into your ~/.bashrc
# to define an alias I use to update installed packages
# then just type in doit to perfom updates
alias doit='echo "sudo service packagekit restart"; sudo service packagekit restart; echo; kill $( ps -eafww|grep update-manager|grep -v grep | grep update-manager | tr -s " " |cut -d" " -f2 ) > /dev/null 2>&1; echo "sudo ucf --purge /boot/grub/menu.lst" ; sudo ucf --purge /boot/grub/menu.lst ; echo; echo "DEBIAN_FRONTEND=noninteractive sudo apt-get update" ; DEBIAN_FRONTEND=noninteractive sudo apt-get update ; echo; echo "DEBIAN_FRONTEND=noninteractive sudo apt-get --fix-broken install -y " ; DEBIAN_FRONTEND=noninteractive sudo apt-get --fix-broken install -y ; echo; echo "DEBIAN_FRONTEND=noninteractive sudo apt-get -f install -y " ; DEBIAN_FRONTEND=noninteractive sudo apt-get -f install -y ; echo; echo "sudo env DEBIAN_FRONTEND=noninteractive UC
E. Dehillerin
18 et 20 rue Coquilliere, 75001 Paris
THE best kitchenware shop !!!! world's best shop for copper pots
incredible store ... old fashioned ... must see the cellar as well
https://www.edehillerin.fr/en/
Passage des Panoramas 11 boulevard Montmartre - 75002 Paris
@scottstensland
scottstensland / show_cpu_and_memory_usage.sh
Last active August 18, 2022 12:36
issue process list to show top cpu and ram usage
#!/bin/bash
# ... issue process list to show top cpu and ram usage
# usage :
#
# show_cpu_and_memory_usage.sh >> /file/holding/usage.log
SLEEP_PERIOD=5
output_header=$( ps aux|head -1 )
var defaultCellSize = 48 * window.devicePixelRatio;
function createParticles(canvas, width, height, cellSize = defaultCellSize)
{
canvas.width = width;
canvas.height = height;
// defaults
canvas.showCells = false;

Keybase proof

I hereby claim:

  • I am scottstensland on github.
  • I am chainsawhaircut (https://keybase.io/chainsawhaircut) on keybase.
  • I have a public key ASA0ve0TLSb91VPRy8VnxIxNUJltUNUeAu_YbZesbgPRoAo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am scottstensland on github.
  • I am infinitenow (https://keybase.io/infinitenow) on keybase.
  • I have a public key ASBd1Cem-5YmwOmR2Xq8XJvJwZqTOXav0ovSkwYq4t5SFwo

To claim this, I am signing this object:

Verifying that +eventhorizon is my blockchain ID. https://onename.com/eventhorizon
@scottstensland
scottstensland / output of kubectl get pods -o json
Last active December 16, 2019 23:13
google cloud command sample output of command : kubectl get pods -o json
{
"kind": "List",
"apiVersion": "v1",
"metadata": {},
"items": [
{
"kind": "Pod",
"apiVersion": "v1",
"metadata": {
"name": "mongo-controller-h714w",
{
"body": {
"key": {
"eldest_kid": "01207651e74235d830f3dc1f72a779f83b75c7ac83cc8378b5b9c8c0420cf86d821e0a",
"host": "keybase.io",
"kid": "01207651e74235d830f3dc1f72a779f83b75c7ac83cc8378b5b9c8c0420cf86d821e0a",
"uid": "ec4e587cf17aeea3c00c3f36e4123419",
"username": "chainsawhaircut"
},
"service": {