Skip to content

Instantly share code, notes, and snippets.

View tonybenoy's full-sized avatar
🦀

Tony Benoy tonybenoy

🦀
View GitHub Profile

Arch Linux ARM on Crostini

Screenshot

I got Arch Linux ARM installed on a Lenovo Chromebook Duet! I mostly used the instructions from the Arch Wiki as reference.

0. Before we begin

@sandys
sandys / Fastapi-sqlalchemy-pydantic-dataclasses-reloadable-logging.md
Last active June 30, 2024 09:23
fastapi with python 3.10 dataclasses - used to create both sqlalchemy and pydantic models simultaneously. And setting up sqlalchemy the right way (without deadlocks or other problems). Additionally, this also takes care of unified logging when running under gunicorn..as well as being able to run in restartable mode.
@miguelgrinberg
miguelgrinberg / .vimrc
Last active January 30, 2025 22:30
My .vimrc configuration for working in Python with vim
" plugins
let need_to_install_plugins = 0
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
let need_to_install_plugins = 1
endif
call plug#begin()
Plug 'tpope/vim-sensible'
anycast.slackware.in
bind 2a07:1c44:4800::1
log logs/mysite.log
tls {
dns vultr
}
proxy / localhost:81 localhost:82 localhost:83 localhost:84 localhost:85 {
}
@bradtraversy
bradtraversy / docker-help.md
Last active April 14, 2025 16:45
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@sandys
sandys / hardware_token.md
Last active May 19, 2020 14:14
Registering a hardware token
@posener
posener / go-shebang-story.md
Last active March 15, 2025 16:08
Story: Writing Scripts with Go

Story: Writing Scripts with Go

This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.

Why Go is good for scripting?

While python and bash are popular scripting languages, C, C++ and Java are not used for scripts at all, and some languages are somewhere in between.

@njourdane
njourdane / pub.py
Created March 7, 2017 18:48
A script to convert notes from markdown / PlantUML to HTML and Redmine wiki syntax, then publish files through rsync.
#!/usr/bin/env python
# -*- coding: utf-8 -*
"""
From a folder containing a set of markdown files, this script:
- generate HTML files;
- generate RedMine-compliant Textile files;
- generate UML diagrams (from PlantUML syntax) and insert the in HTML and Textile files;
- send images and HTML files to a server through rsync.
"""
@PurpleBooth
PurpleBooth / README-Template.md
Last active April 18, 2025 02:49
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites