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: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
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": {
1457141318223 browserwindow.syncui DEBUG _loginFailed has sync state=success.login
1457141318223 browserwindow.syncui DEBUG _loginFailed has sync state=success.login
1457141318226 browserwindow.syncui DEBUG _loginFailed has sync state=success.login
1457141318228 browserwindow.syncui DEBUG _loginFailed has sync state=success.login
1457141318230 browserwindow.syncui DEBUG observed: weave:ui:sync:finish
1457141318230 browserwindow.syncui DEBUG observed: weave:ui:sync:finish
1457141318508 Hawk DEBUG (Response) /account/device: code: 200 - Status text: OK
1457141318508 Sync.RESTResponse TRACE Processing response headers.
1457141318508 Hawk DEBUG Clock offset vs https://api.accounts.firefox.com/v1: -508
1457141318509 FirefoxAccounts DEBUG _updateAccountData with items: ["deviceId","isDeviceStale"]