Skip to content

Instantly share code, notes, and snippets.


Abhishek Sudhakaran itzurabhi

  • Blackfig Technologies
  • India
View GitHub Profile
spalladino /
Created December 22, 2015 13:47
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
kizzx2 / fun.cpp
Created January 11, 2012 14:29
Illustrative C++ Lua binding example/tutorial
View fun.cpp
// fun.cpp
extern "C"
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
#include <iostream>