Skip to content

Instantly share code, notes, and snippets.

View musale's full-sized avatar
Breaking Things 😜

Musale Martin musale

Breaking Things 😜
View GitHub Profile
@musale
musale / mysql-docker.sh
Created July 26, 2018 17:32 — 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

Keybase proof

I hereby claim:

  • I am musale on github.
  • I am musale (https://keybase.io/musale) on keybase.
  • I have a public key ASCDQz0cmuDrr7Fs0YRDe4z9l0oZapj4zuiAoXYsn6uyYwo

To claim this, I am signing this object:

@musale
musale / README-Template.md
Created April 17, 2019 12:08 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@musale
musale / main.go
Created December 2, 2019 11:57
Solution to a string comparison question
package main
// Write a function that takes an array containing two strings where
// each string represents keypresses separated by commas. For this
// problem, a keypress can be either a printable character or a
// backspace (represented by -B). Your function should determine if
// the two strings of keypresses are equivalent.
import (
"fmt"
"reflect"

Keybase proof

I hereby claim:

  • I am musale on github.
  • I am musale (https://keybase.io/musale) on keybase.
  • I have a public key whose fingerprint is 3221 FA53 3423 D5BF 0902 721B 63DE C6F4 E62D 272C

To claim this, I am signing this object:

Delete All your Tweets

This script it based on @chrisalbon's original script, but instead of fetching the users timeline via the Twitter API it uses the archive of the users data to workaround the 3200 tweet limitation.

Setup

  1. Create a virtualenv
  2. Run pip install -r requirements.txt
  3. Create a Twitter developer app.