Skip to content

Instantly share code, notes, and snippets.

View dermidgen's full-sized avatar
:shipit:
Moving units

Danny Graham dermidgen

:shipit:
Moving units
View GitHub Profile
@benjar12sc
benjar12sc / profile.ps1
Created June 8, 2026 19:47
make windows feel more like zsh
# ==============================================================================
# 1. Shell Environment & Initialization
# ==============================================================================
# Eject the default, outdated PSReadLine module from memory
Remove-Module PSReadLine -ErrorAction SilentlyContinue
# Import the newly installed version
Import-Module PSReadLine
export IMAGE=gcr.io/k8s-testimages/kubekins-e2e:latest-master
docker run --privileged -it --rm -v /mydata/docker-graph:/docker-graph -v $(pwd):/workspace/scripts --entrypoint=/bin/bash $IMAGE -c /workspace/scripts/run-test.sh
@tranthamp
tranthamp / gist:2721326
Created May 17, 2012 20:15
D-Bus and Connman notes
# Connman Technology API examples: (Object Path: /net/connman/technology/<wifi/ethernet>, Interface: net.connman.Technology)
# GetProperties
dbus-send --system --dest=net.connman --print-reply /net/connman/technology/wifi net.connman.Technology.GetProperties
# Scan
dbus-send --system --dest=net.connman --print-reply /net/connman/technology/wifi net.connman.Technology.Scan
# Disable/Enable wifi
dbus-send --system --dest=net.connman --print-reply /net/connman/technology/wifi net.connman.Technology.SetProperty string:Powered variant:boolean:true