Skip to content

Instantly share code, notes, and snippets.

View cecton's full-sized avatar
🦀

Cecile Tonglet cecton

🦀
View GitHub Profile
Computer Information:
Manufacturer: Gigabyte Technology Co., Ltd.
Model: X570 AORUS ULTRA
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD Ryzen 9 5950X 16-Core Processor
CPU Family: 0x19
@cecton
cecton / yew-proposal-rust-y.md
Last active March 29, 2021 13:30
Proposal for a Yew more rust-y
@cecton
cecton / mount_qcow2.md
Created July 31, 2020 09:23 — forked from shamil/mount_qcow2.md
How to mount a qcow2 disk image

How to mount a qcow2 disk image

This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.

Step 1 - Enable NBD on the Host

modprobe nbd max_part=8
@cecton
cecton / git-reset-author.sh
Created July 28, 2020 16:13 — forked from bgromov/git-reset-author.sh
Git: reset author for ALL commits
#!/bin/sh
# Credits: http://stackoverflow.com/a/750191
git filter-branch -f --env-filter "
GIT_AUTHOR_NAME='Newname'
GIT_AUTHOR_EMAIL='new@email'
GIT_COMMITTER_NAME='Newname'
GIT_COMMITTER_EMAIL='new@email'
" HEAD
@cecton
cecton / circleci_comment_on_github.sh
Last active August 17, 2019 12:32
Script to comment on GitHub from a CircleCI build
#!/bin/sh
{ # Prevent execution if this script was only partially downloaded
# NOTE: This script will use the GitHub Personal token stored in GITHUB_AUTH_TOKEN
# to post a comment from CircleCI to your pull request (or commit if there
# is no pull request).
#
# The message must be provided in /tmp/comment
#
@cecton
cecton / docker_listener.py
Created August 31, 2017 09:08
docker_listener.py
import asyncio
import logging
import aiohttp
from aiohttp import web
import aiodocker
from aiodocker.docker import Docker
from aiodocker.exceptions import DockerError
logging.basicConfig(level=logging.DEBUG)
@cecton
cecton / consul.service
Last active May 31, 2017 14:11 — forked from yunano/consul.service
/lib/systemd/system/consul.service
[Unit]
Description=consul agent
Requires=network-online.target
After=network-online.target
[Service]
EnvironmentFile=/etc/environment
Environment=GOMAXPROCS=2
Restart=on-failure
ExecStart=/usr/local/sbin/consul agent $CONSUL_OPTS -data-dir=/var/lib/consul
FROM debian
# Install Forego
ADD https://github.com/jwilder/forego/releases/download/v0.16.1/forego /usr/local/bin/forego
RUN chmod u+x /usr/local/bin/forego
COPY . /app/
WORKDIR /app
CMD ["forego", "start", "-r"]
Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
[0] [11:38:59] ~ > cd /tmp
[0] [11:39:01] /tmp > mkdir c
[0] [11:39:04] /tmp > cd c
[0] [11:39:05] /t/c > g init .
Initialized empty Git repository in /tmp/c/.git/
[0] [11:39:08] /t/c HEAD > touch a
[0] [11:39:10] /t/c HEAD > g add a
[0] [11:39:12] /t/c HEAD > g commit -m a

Keybase proof

I hereby claim:

  • I am cecton on github.
  • I am cecton (https://keybase.io/cecton) on keybase.
  • I have a public key whose fingerprint is 9AA6 4BE5 6498 792F 4D10 046A A72E CEE7 5C7A 9808

To claim this, I am signing this object: