Skip to content

Instantly share code, notes, and snippets.

View jd-boyd's full-sized avatar

Joshua Boyd jd-boyd

View GitHub Profile
jsonObjURL := 'https://api.github.com/repos/squeak-smalltalk/squeak.org/languages'.
respObj := WebClient httpGet: jsonObjURL.
respObj content. '{"TeX":261905,"SCSS":226665,"HTML":20292,"JavaScript":2738,"Ruby":2607}' .
respCont := respObj content.
jO := Json readFrom: (ReadStream on: respCont).
jO at: 'SCSS'.
https://docs.google.com/spreadsheets/d/1XQM3fbY7qvfGKGyE984TBx9ZEFJIIHizdgtbxoXn9Ys/edit?usp=sharing
@jd-boyd
jd-boyd / windows_10_force_no_11_update.ps1
Created May 13, 2023 07:03
Force Windows 10 to no try to update to Windows 11.
# must run as admin
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate /v TargetReleaseversion /t REG_DWORD /d 1
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate /v TargetReleaseversionInfo /t REG_SZ /d 22H2
gpupdate /force
@jd-boyd
jd-boyd / post_example.ps1
Created April 3, 2023 04:11
PowerShell POST form, POST JSON
$params = @{"@type"="login";
"username"="xxx@gmail.com";
"password"="yyy";
}
Invoke-WebRequest -Uri http://foobar.com/endpoint -Method POST -Body $params
Invoke-WebRequest -Uri http://foobar.com/endpoint -Method POST -Body ($params|ConvertTo-Json) -ContentType "application/json"
import (
"os"
"os/signal"
)
func setupExitHandler() {
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt)
go func() {
<-c
@jd-boyd
jd-boyd / README
Created July 13, 2019 16:52
Dynamically Create SSID for Linux AP Hotspot
make_ssid.sh goes in /etc/hostapd/
The service file goes in /etc/systemd/system/
@jd-boyd
jd-boyd / gist:1b56aab752b5570f7dcde0de51a5faa3
Created January 23, 2019 18:44
gcompris on rpi working notes
First starting from the october release of raspbian (because I didn't want to wait for the november download):
Update raspi-config using its built in menu option.
Use Raspi-config to force audio to 3.5mm jack (advanced menu, audio, then force 3.5mm).
Test headphone jack is working with noisy webpage in web browser.
use raspi-config to expand file system to fill flash card.
sudo apt update
sudo apt upgrade
reboot
Download the rpi package of gcompris from their website.
@jd-boyd
jd-boyd / qt5-cxrosscompile-env-for-rpi.md
Created October 24, 2017 14:41 — forked from Brainiarc7/qt5-cxrosscompile-env-for-rpi.md
Setting up a Raspberry Pi QT5 cross compile environment on Linux

Generating an environment on Linux to cross-compile QT applications for a Raspberry Pi running Debian Wheezy:

Grab tools (for the cross-compiler tool chain) and firmware (for the OpenGL libraries) from the Raspberry Pi GitHub repository:

git clone https://github.com/raspberrypi/tools.git --depth=1
git clone https://github.com/raspberrypi/firmware.git --depth=1

Copy OpenGL stuff to the toolchain's sysroot:

@jd-boyd
jd-boyd / qt5-cxrosscompile-env-for-rpi.md
Created October 24, 2017 14:41 — forked from Brainiarc7/qt5-cxrosscompile-env-for-rpi.md
Setting up a Raspberry Pi QT5 cross compile environment on Linux

Generating an environment on Linux to cross-compile QT applications for a Raspberry Pi running Debian Wheezy:

Grab tools (for the cross-compiler tool chain) and firmware (for the OpenGL libraries) from the Raspberry Pi GitHub repository:

git clone https://github.com/raspberrypi/tools.git --depth=1
git clone https://github.com/raspberrypi/firmware.git --depth=1

Copy OpenGL stuff to the toolchain's sysroot:

@jd-boyd
jd-boyd / Three.JS Template.markdown
Created December 15, 2015 23:26
Three.JS Template