Skip to content

Instantly share code, notes, and snippets.

GautierMichelin gautiermichelin

Block or report user

Report or block gautiermichelin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@gautiermichelin
gautiermichelin / jessie2stretch.sh
Last active Sep 30, 2018 — forked from waja/jessie2stretch.sh
Migration from Debian Jessie to Stretch
View jessie2stretch.sh
# Release notes : http://www.debian.org/releases/stretch/releasenotes
# upgrade to UTF-8 locales (http://www.debian.org/releases/stretch/amd64/release-notes/ap-old-stuff.en.html#switch-utf8)
dpkg-reconfigure locales
# remove unused config file
rm -rf /etc/network/options /etc/environment
# migrate over to systemd (before the upgrade) / you might want reboot if you install systemd
@gautiermichelin
gautiermichelin / transfer.fish
Created Jul 5, 2017 — forked from nl5887/transfer.fish
Bash and zsh alias for transfer.sh. Transfers files and directories to transfer.sh.
View transfer.fish
function transfer
if test (count $argv) -eq 0
echo "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"
return 1
end
## get temporarily filename, output is written to this file show progress can be showed
set tmpfile ( mktemp -t transferXXX )
## upload stdin or file
@gautiermichelin
gautiermichelin / mysql_backup.sh
Created Jun 10, 2017 — forked from guiyomh/mysql_backup.sh
Mysql Backup data and schema
View mysql_backup.sh
#!/bin/bash
# Configuration de base: datestamp e.g. YYYYMMDD
DATE=$(date +"%Y%m%d")
# Dossier où sauvegarder les backups (créez le d'abord!)
BACKUP_DIR="/backup/mysql"
@gautiermichelin
gautiermichelin / backup.sh
Created Jun 10, 2017 — forked from amityweb/backup.sh
Incremental RSync Backup with 14 Day Retention for Databases and Home Folder
View backup.sh
#!/bin/sh
rsync="/usr/bin/rsync"
################################
# VARIABLES
################################
# General Variables
remote_server="yourserver.com"
remote_port="22"
@gautiermichelin
gautiermichelin / LICENSE.txt
Last active Mar 21, 2017 — forked from mejackreed/LICENSE.txt
Leaflet-IIIF Annotation Example
View LICENSE.txt
MIT License
Copyright (c) 2016 Jack Reed
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
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@gautiermichelin
gautiermichelin / .block
Created Nov 7, 2016 — forked from mbostock/.block
Heatmap (Canvas, JSON)
View .block
license: gpl-3.0
@gautiermichelin
gautiermichelin / README.md
Last active Nov 7, 2016 — forked from rfilmyer/README.md
D3 Sun Heatmap example
View README.md

This is a D3.js Heatmap example showing how the highest sun position of the day (which directly correlates with average temperature) changes over the year depending on the latitude of the place. The actual temperature chart would be shifted to the right a bit beacuse of thermal lag.

The data for the chart is calculated using SunCalc.

View gist:da0f5e74b318fd1a64e807881234c376
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@gautiermichelin
gautiermichelin / .block
Last active May 16, 2016 — forked from mbostock/.block
Focus+Context via Brushing
View .block
license: gpl-3.0
license: gpl-3.0
@gautiermichelin
gautiermichelin / zip.php
Created Feb 27, 2016 — forked from jonmaim/zip.php
PHP script to remotely create zip archives of your FTP
View zip.php
<?php
/*
*
* This script will backup your web site by remotely archiving all files on the root FTP directory.
* It will work even if your web server is memory limited buy splitting zips in several arhive files it they are too many files.
* All zip files will be stored in a directory called temporary which must be writable.
*
* How to use it:
* - Place the script at the root of your FTP.
You can’t perform that action at this time.