Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View dethi's full-sized avatar
🔨

Thibault Deutsch dethi

🔨
View GitHub Profile
@dethi
dethi / wiki_prog_notif.py
Created November 22, 2014 02:41
Notify revision in the wiki-prog of EPITA
#!/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
(*
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,
@dethi
dethi / Vagrantfile
Created April 8, 2016 12:53
Vagrantfile for Elixir/Phoenix project
# -*- 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"

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 / cloudSettings
Created October 28, 2020 16:01
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-10-28T16:01:13.565Z","extensionVersion":"v3.4.3"}
@dethi
dethi / unused-files.sh
Last active April 25, 2022 05:34
create-react-app: find files not used in the app bundle, i.e. unused source code
#!/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) \