Skip to content

Instantly share code, notes, and snippets.

View elyrly's full-sized avatar

Richard Yang elyrly

  • San Francisco, CA
View GitHub Profile
@phx
phx / sms-to-csv.sh
Last active November 23, 2020 17:38
Dump iOS SMS/iMessage database to CSV.
#/bin/bash
# not an actual script - these are only commands, but the script would be basically the same.
# requires jailbroken iOS device
# get into the filesystem
ssh root:alpine@iphone
# update your package list, and install sqlite
apt-get update
var numberOfUsers = 3000 // the nubmer of users you want to follow (it will break after about 5000)
function harvest() {
// keep scrolling the page to the bottom
$("#search").scrollTop($("#search")[0].scrollHeight);
// get all the follow buttons
var bs = $('*[data-capture="noiseClicked"]')//.length
// figure out how many follow buttons you have
var len = bs.length
// show the number of people you have on the page because you're impatient
console.log(len)
@jhaddix
jhaddix / Testing_Checklist.md
Last active November 16, 2024 11:54 — forked from amotmot/WAHH_Task_Checklist.md
Fast Simple Appsec Testing Checklist
@stefanocoding
stefanocoding / macos_on_ubuntu.md
Last active August 17, 2024 21:04
Install macOS in a VirtualBox machine on Ubuntu

Important: I'm writing this when the last version of macOS (and the one I have installed) is Mojave. There is already a script which installs Mojave in a virtual machine here https://github.com/img2tab/okiomov. But if you are curios how to do everything manually to install High Sierra, then this guide may be useful.

After reading a few articles I ended up with these steps:

  1. On macOS, download the High Sierra installer (even if you have Mojave installed): https://itunes.apple.com/us/app/macos-high-sierra/id1246284741?ls=1&mt=12
  2. If the High Sierra Installer starts, quit it.
  3. Open "Disk Utility".
  4. Click on "File" > "New Image" > "Blank image...". Or just press cmd+N.
@stungeye
stungeye / 01_flickr_to_google_with_exiftool.md
Last active November 25, 2022 10:15
Export Flickr Photos To Google Photos Using Exiftool CLI

Backing Up All Photos from Flickr to Google Photos

  • Request an archive of your photos and metadata (json) from the "Your Flickr Data" section of your Flickr user account page.

  • Extract all provided zip files to a single folder with the JSON files unzip to a json subfolder.

  • Install exiftool, a command-line application for reading, writing and editing meta information in a wide variety of files..

  • Sort your Flickr photos into yearly folders by EXIF timestamp and set file-system timestamps from the command line: