Skip to content

Instantly share code, notes, and snippets.

View adumont's full-sized avatar
😃

Alexandre Dumont adumont

😃
View GitHub Profile
{
"path_checkpoints": "/content/Fooocus/models/checkpoints",
"path_loras": "/content/Fooocus/models/loras",
"path_embeddings": "/content/Fooocus/models/embeddings",
"path_vae_approx": "/content/Fooocus/models/vae_approx",
"path_upscale_models": "/content/Fooocus/models/upscale_models",
"path_inpaint": "/content/Fooocus/models/inpaint",
"path_controlnet": "/content/Fooocus/models/controlnet",
"path_clip_vision": "/content/Fooocus/models/clip_vision",
"path_fooocus_expansion": "/content/Fooocus/models/prompt_expansion/fooocus_expansion",
@adumont
adumont / TPLink-HS100-Taskers.xml
Created July 25, 2020 10:05
Tasker tasks for TP-Link HS100

Python - Surround with a function in VScode.md

You can create a code snippet for your function call by going to File > Preferences > User Snippets and selecting the language you're working with (in this case, Python). Then, select "New Global Snippets file" and enter a name for your snippet file.

{
	"myfunc": {
		"prefix": "Surround with...",
		"body": [
 "${1:function}(${TM_SELECTED_TEXT})"
@adumont
adumont / make.sh
Created October 8, 2022 18:15
building esp32forth via command line
# Arduino Installation directory
ARDUINO_DIR=~/opt/arduino-1.8.13
ESP32_DIR=~/.arduino15/packages/esp32
BUILD_DIR=/tmp/.build
CACHE_DIR=/tmp/.cache
SOURCE_DIR=~/esp32c3/esp32forth/ESP32forth
# Cleaning
[ -d "${BUILD_DIR}" ] && rm -rf ${BUILD_DIR}
[ -d "${CACHE_DIR}" ] && rm -rf ${CACHE_DIR}
@adumont
adumont / ccache_help
Created December 6, 2011 10:29
Use ccache to reduce build time
Install ccache:
In Arch:
$ sudo pacman -S ccache
Or Ubuntu:
$ sudo apt-get install ccache
@adumont
adumont / gist:dbc679320ca68f6c1a149c2f4fe9a439
Created July 7, 2019 11:33
TP-Link Cloud API subflow for HS100 in Node-Red
[
{
"id":"577621a6.54f19",
"type":"http request",
"z":"cc2c159c.fd5868",
"name":"login",
"method":"POST",
"ret":"obj",
"url":"https://wap.tplinkcloud.com",
"tls":"",
@adumont
adumont / CA.fth
Last active May 9, 2022 11:21
Cellular Automaton in (my) FORTH
\ This is a FORTH program to draw Cellular Automaton
\ usage: RUN-CA ( RULE LINES -- )
\ Author: Alexandre Dumont
\ Runs in my own FORTH for 6502
\ https://github.com/adumont/hb6502/tree/main/forth
HEX
3F CONSTANT MXCOL

Keybase proof

I hereby claim:

  • I am adumont on github.
  • I am adumont (https://keybase.io/adumont) on keybase.
  • I have a public key ASAl8VhQq9NmC4cM4MLt50NKjwtP25YFzoGY-unn3qQ_aQo

To claim this, I am signing this object:

@adumont
adumont / archlinux_android
Created November 14, 2011 00:12
ArchLinux for building Android
pacman -Sy
pacman -S --needed python2 openjdk6 perl git gnupg flex bison gperf zip unzip sdl wxgtk squashfs-tools ncurses libpng zlib libusb libusb-compat readline inetutils
pacman -S --needed gcc-multilib gcc-libs-multilib binutils-multilib libtool-multilib lib32-libusb lib32-libusb-compat lib32-readline lib32-glibc bash-completion lib32-zlib
Install yaourt (& package-query):
add to /etc/pacman.conf:
[archlinuxfr]
Server = http://repo.archlinux.fr/$arch
@adumont
adumont / URL-ScreenShots.ps1
Created January 3, 2017 17:22
Takes screenshot of multiple websites by URL
[Reflection.Assembly]::LoadWithPartialName("System.Drawing")
function Screenshot([Drawing.Rectangle]$bounds, $path) {
$bmp = New-Object Drawing.Bitmap $bounds.width, $bounds.height
$graphics = [Drawing.Graphics]::FromImage($bmp)
$graphics.CopyFromScreen($bounds.Location, [Drawing.Point]::Empty, $bounds.size)
$bmp.Save($path)