Skip to content

Instantly share code, notes, and snippets.

View sporniket's full-sized avatar

David SPORN sporniket

View GitHub Profile
@sporniket
sporniket / Setting-up-xrdp.md
Last active October 16, 2025 17:00
Setting up xrdp (xubuntu)

Overview

Just installing xrdp is not enough to make it work

  • There are other packages to install
  • some configuration so that xrdp user enough permission
  • I use a bepo layout, how to get this layout instead of US layout

Packages to install

@sporniket
sporniket / Pico_toolchain_setup.md
Last active April 3, 2025 16:29
Setup pico c/c++ toolchain manually
@sporniket
sporniket / gist:6274f942f06135d5e519f04ea8d8b69a
Last active March 7, 2025 07:24
Oneline bash to report installed (not automatically) packages and which packages it depends from, requires apt and aptitude, french locale
for pk in $(apt list --installed | grep "\[installé\]" | grep -o "^[^/]*"); do echo -e "\n## ${pk}\n\n\`\`\`"; aptitude why ${pk} ; echo -e "\`\`\`\n" ;done > ~/apt-report.md
@sporniket
sporniket / gist:7e316989660028999dc8bf05a074542b
Created February 4, 2024 07:19
Convert MTS files from my SONY digital camera to mp4, so that it works on OpenShot
avconv -i <source>.MTS -vcodec mpeg4 -b:v 15M -acodec libmp3lame -b:a 192k <source>-converted.mp4
@sporniket
sporniket / gist:f8c6af7418efe4ba89201fb0a712bd09
Created January 1, 2024 06:45
[python] extract the list of classes defined in a file, to build __all__ list
grep "class " fs_disk.py | grep -o " [0-9A-Za-z]*" | grep -o "[0-9A-Za-z]*" | sort