Skip to content

Instantly share code, notes, and snippets.

View tchartron's full-sized avatar
☁️

Thomas Chartron tchartron

☁️
View GitHub Profile
@tchartron
tchartron / mysql-docker.sh
Created March 4, 2021 16:22 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@tchartron
tchartron / mraid.js
Created February 19, 2025 22:31 — forked from bensojona/mraid.js
/*
Do not modify this version of the file. It will be copied over when any of the project's targets are built.
If you wish to modify mraid.js, modify the version located at mopub-sdk-common/mraid/mraid.js.
*/
(function() {
var isIOS = (/iphone|ipad|ipod/i).test(window.navigator.userAgent.toLowerCase());
if (isIOS) {
console = {};
console.log = function(log) {
var iframe = document.createElement('iframe');