Skip to content

Instantly share code, notes, and snippets.

View eexit's full-sized avatar
🌴
On vacation

Joris Berthelot eexit

🌴
On vacation
View GitHub Profile
@eexit
eexit / wp2ghost_image_importer.php
Last active August 29, 2015 14:00
This file a Wordpress to Ghost image importer.
<?php
/*
This file a Wordpress to Ghost image importer.
Before you run this script, you must have done the following:
1. Import your blog content in Ghost with Markdown syntax (very important).
I used ExitWP (https://github.com/thomasf/exitwp) then
replaced all my Ghost data by its equivalent in Markdown
2. Export your Ghost database (yourblogurl/ghost/debug)
3. Configure this script (see variables below)
@eexit
eexit / batman-logo-ascii
Last active October 27, 2015 16:51
batman-logo-ascii
,.ood888888888888boo.,
.od888P^"" ""^Y888bo.
.od8P'' ..oood88888888booo. ``Y8bo.
.odP'" .ood8888888888888888888888boo. "`Ybo.
.d8' od8'd888888888f`8888't888888888b`8bo `Yb.
d8' od8^ 8888888888[ `' ]8888888888 ^8bo `8b
.8P d88' 8888888888P Y8888888888 `88b Y8.
d8' .d8' `Y88888888' `88888888P' `8b. `8b
@eexit
eexit / lister.sh
Created September 19, 2017 09:18
AWS S3 List + Rename Specific Files
#!/bin/bash
export AWS_ACCESS_KEY_ID=
export AWS_SECRET_ACCESS_KEY=
# Very importe: KEEP the --dryrun flag!!
aws s3 cp s3://bucket-name . --dryrun --recursive --exclude '*' --include '*.gzip' \
| tr "\r" "\n" \
| grep -v '^Completed ' \
| cut -d' ' -f3 > filename

Keybase proof

I hereby claim:

  • I am eexit on github.
  • I am eexit (https://keybase.io/eexit) on keybase.
  • I have a public key ASBA_xPOhPPBPMv-2ynWqZ9AoIyX6Sb-mV7nHomaM5gfnQo

To claim this, I am signing this object:

@eexit
eexit / hint.md
Created November 21, 2018 15:49
macOS quarantine
@eexit
eexit / out.log
Created July 7, 2020 20:19
Go basic string slice filter
=== RUN Test_remove
=== RUN Test_remove/want_and_list_are_empty
=== RUN Test_remove/list_is_empty
=== RUN Test_remove/list_contains_only_one_occurence_of_wanted
=== RUN Test_remove/list_contains_only_occurences_of_wanted
=== RUN Test_remove/list_contains_one_occurence_of_wanted
=== RUN Test_remove/list_does_not_contain_occurence_of_wanted
--- PASS: Test_remove (0.00s)
--- PASS: Test_remove/want_and_list_are_empty (0.00s)
--- PASS: Test_remove/list_is_empty (0.00s)
@eexit
eexit / Getting a Moto X back to stock on OSX Raw.md
Last active November 28, 2020 17:37
Getting a Moto X back to stock on OSX

Getting a Moto X back to stock on OSX

Backup, first!

  1. Downloads the Android SDK Command Line Tools

     $ unzip android-sdk-macosx.zip
     $ cd android-sdk-macosx
    
  2. Create a backup folder

Rooting Moto Z2 Play

Guide to root your device without installing a custom recovery.

Requires:

@eexit
eexit / memcached-clean.pl
Created July 21, 2021 12:18
I don't recall who is the author of this script.
#!/usr/bin/perl
use 5.10.0;
use Cache::Memcached;
use Data::Dumper;
use MIME::Base64;
use strict;
@eexit
eexit / README.md
Last active March 14, 2022 17:59
YouTube Watch History Replayer