Skip to content

Instantly share code, notes, and snippets.

Avatar
🤷‍♂️

Thibault Deutsch dethi

🤷‍♂️
View GitHub Profile
@dethi
dethi / cloudSettings
Created Oct 28, 2020
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2020-10-28T16:01:13.565Z","extensionVersion":"v3.4.3"}
@dethi
dethi / unused-files.sh
Last active Mar 15, 2021
create-react-app: find files not used in the app bundle, i.e. unused source code
View unused-files.sh
#!/bin/bash
# Launch inside a create-react-app project after building the production build.
# Require `jq`.
diff \
<(find src -type f \( -name '*.js' -o -name '*.jsx' -o -name '*.css' \) | sort) \
<(cat build/**/*.map | jq --raw-output '.sources | join("\n")' \
| grep -v '\.\./' | grep -E '\.(js|jsx|css)$' \
| sed "s#^#src/#" | sort | uniq) \
View keybase.md

Keybase proof

I hereby claim:

  • I am dethi on github.
  • I am dethi (https://keybase.io/dethi) on keybase.
  • I have a public key whose fingerprint is 2DDD 1BE9 6DB7 7FC4 A9CB D5E5 EEDA E300 3DE4 B4E3

To claim this, I am signing this object:

@dethi
dethi / Vagrantfile
Created Apr 8, 2016
Vagrantfile for Elixir/Phoenix project
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/wily64"
config.vm.hostname = "ubuntu-ex"
config.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.memory = "1024"
@dethi
dethi / wiki_prog_notif.py
Created Nov 22, 2014
Notify revision in the wiki-prog of EPITA
View wiki_prog_notif.py
#!/usr/bin/env python
#
# The MIT License (MIT)
#
# Copyright (c) 2014 Thibault Deutsch <thibault.deutsch@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
View Cellular automaton.ml
(*
Cellular automaton
Copyright (C) 2013 Thibault 'Dethi' Deutsch <thibault.deutsch@epita.fr>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,