Skip to content

Instantly share code, notes, and snippets.

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

Antoine Girard thetoine

🏠
Working from home
View GitHub Profile
=== Epic Snow Leopard Upgrayyyyd Guide ===
Son, you’re now living in the land of 64-bit systems.
That means that some of your 32-bit shit is now broken.
Not all is lost.
== Fixing MySQL weirdness
# twitter-autofollow.rb
# 2010-04-01 Antoine Girard <thetoine@gmail.com>
# This script will search all you follower and add them as a friend
# Also post any privately received message to your public timeline.
require 'rubygems'
require 'twitter'
class AutoFollow
@thetoine
thetoine / sketchfab-test.html
Last active August 29, 2015 14:00
sketchfab fallback for non supported browsers
<div data-embeded-3d-object='<iframe width="100%" height="480" frameborder="0" allowFullScreen webkitallowfullscreen mozallowfullscreen src="//sketchfab.com/models/cc615fcd8fd04354b370e2107a3ee7bf/embed"></iframe>'>
<img src="fallback.jpg">
</div>
<script>
// insert 3d object for supported browser only
if (Modernizr.webgl) {
$("[data-embeded-3d-object]").each(function() {
var html = $(this).data("embeded-3d-object");
$(this).html(html)
@thetoine
thetoine / 0_reuse_code.js
Created June 13, 2014 18:37
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@thetoine
thetoine / gulpfile.js
Created January 28, 2016 03:25 — forked from mlouro/gulpfile.js
gulpfile.js with browserify, jshint, libsass, browserSync for livereload, image optimization and system notifications on errors
'use strict';
var gulp = require('gulp');
var gutil = require('gulp-util');
var del = require('del');
var uglify = require('gulp-uglify');
var gulpif = require('gulp-if');
var exec = require('child_process').exec;
var notify = require('gulp-notify');
import React from 'react'
import moment from 'moment'
import axios from 'axios'
const intervalDelay = 5000
class BuildDebug extends React.Component {
constructor(props) {
super(props)
@thetoine
thetoine / docker-db-export.sh
Last active May 26, 2022 13:46
Docker mysql export bash script tool
#!/usr/bin/env bash
# Backup usage
#
# ./docker-db-export.sh backup my-project-folder-name_db_1
#
# output to : ./my-project-folder-name_db_1.sql
# Restore usage
#