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

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.

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:

@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"
@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

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 / 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
@musale
musale / .travis.yml
Created April 2, 2018 21:17 — forked from ryboe/.travis.yml
Example .travis.yml for Golang
language: go
# Only the last two Go releases are supported by the Go team with security
# updates. Any versions older than that should be considered deprecated.
# Don't bother testing with them. tip builds your code with the latest
# development version of Go. This can warn you that your code will break
# in the next version of Go. Don't worry! Later we declare that test runs
# are allowed to fail on Go tip.
go:
- 1.9
# update the leave_duration function like this to return holidays and number_of_leave_days
def leave_duration(date_from, date_to):
with open('outfile', 'rb') as fp:
holidays = pickle.load(fp)
return number_of_holidays(holidays, date_from, date_to), holidays
package controllers
import javax.inject.Inject
import play.api.mvc._
import play.api.libs.json._
// Quotes contoller
class QuotesController @Inject()(cc: ControllerComponents) extends AbstractController(cc) {
@musale
musale / routes
Last active March 12, 2018 09:13
GET /quotes controllers.QuotesController.fetch
POST /quotes controllers.QuotesController.add