Skip to content

Instantly share code, notes, and snippets.

View mqu's full-sized avatar
🏠
Working from home

Marc Quinton mqu

🏠
Working from home
  • DGAC / DTI
  • Toulouse / France
View GitHub Profile
@mqu
mqu / README.md
Created August 18, 2023 09:09
passhport-admin / {user,target} create
@mqu
mqu / docker_svn-server.md
Created July 20, 2023 14:10 — forked from dpmex4527/docker_svn-server.md
Set up SVN server on docker
@mqu
mqu / echo.rb
Created August 10, 2022 14:39 — forked from dtchepak/echo.rb
Simple Ruby HTTP server to echo whatever GET or POST requests come through. Largely based on https://www.igvita.com/2007/02/13/building-dynamic-webrick-servers-in-ruby/.
# Reference: https://www.igvita.com/2007/02/13/building-dynamic-webrick-servers-in-ruby/
require 'webrick'
class Echo < WEBrick::HTTPServlet::AbstractServlet
def do_GET(request, response)
puts request
response.status = 200
end
def do_POST(request, response)
puts request
@mqu
mqu / README.md
Created May 16, 2022 14:19
excalidraw / multi-user mode

This is Excalidraw + Excalidraw-room (web-socket server) behind an apache reverse-proxy using docker-compose.

usage :

  • clone this projet
  • clone Excalidraw source code in build/src :
mkdir -p build/src ; git clone https://github.com/excalidraw/excalidraw.git build/src/excalidraw
  • build docker-compose stack
@mqu
mqu / README.md
Last active March 2, 2022 16:29
déchiffrement des fichiers envoyés par ENEDIS/pro chiffrés en AES/CBC-256

tags: ENEDIS, ENEDIS-pro, AES/CBC-265, java

@mqu
mqu / hyperfido-hypersecu.bash
Last active March 4, 2024 01:47
Hypersecu HyperFIDO udev rules for Linux.
sudo bash
cat > /tmp/60-u2f-hyperfido.rules <<EOF
# Hypersecu HyperFIDO
# reload with "udevadm control --reload-rules"
# URL:
# - https://www.hypersecu.com/products/hyperfido ; https://www.hypersecu.com/faq -> HyperFido / Linux
# - https://gist.github.com/mqu/9def140cc4ebe253bc495a71f9afe37d
#
@mqu
mqu / rc-local.service
Last active November 13, 2020 06:30
enable /etc/rc.local with systemd
cat > /etc/systemd/system/rc-local.service <<'EOF'
[Unit]
After=network.service
[Service]
ExecStart=/etc/rc.local start
[Install]
# WantedBy=default.target
@mqu
mqu / docker-compose.yml
Last active May 24, 2023 15:14
diacamma + docker-compose : gestion de copropriété (syndic) et association.
version: '3.6'
# links:
# - https://www.diacamma.org/
# - https://syndic.diacamma.org/static/diacamma.syndic/doc_fr/
# - https://github.com/mgodlewski/dockerfiles/tree/master/diacamma
# - https://github.com/Diacamma2/syndic
# - https://github.com/Diacamma2/syndic/issues/46
# keywords: docker, docker-compose.yml, docker-compose, syndic, assos, assoc, copro, copropriété, compta, syndic bénévole.
@mqu
mqu / docker-compose.yml
Created August 21, 2020 08:34
cryptcheck/docker-compose.yml
# links:
# - https://hub.docker.com/u/aeris22
# - https://cryptcheck.fr/
# - https://github.com/aeris/cryptcheck
x-aliases:
cryptcheck: &cryptcheck
image: aeris22/cryptcheck-rails
logging:
driver: "json-file"
options:
@mqu
mqu / README.md
Last active June 19, 2020 08:11 — forked from ukautz/README.md
Dump LDAP search result as JSON

What can you do with ldapsearch outputs? Not much. With JSON, though ..

# from LDAP search tool ...
ldapsearch -h 127.0.0.1 -p 10389 \
	-D "cn=me,ou=Acme,dc=local" -w 'mypa$$w00t" \
	-b "ou=machines,ou=Acme,dc=local" \
	-s sub "(objectclass=machine)"