Skip to content

Instantly share code, notes, and snippets.

View T31337's full-sized avatar

Trenton T31337

  • 1337 Software
  • In The Interwebz, For All To See And Access Equally
View GitHub Profile
@Retr0ville
Retr0ville / Backup android app, data included with adb.md
Last active October 10, 2023 15:55
Backup android app, data included, with adb

Backup android app, data included, no root needed, with adb

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there are useful tips, arigato!

Fetch application APK

@KrisKodira
KrisKodira / phone.sh
Created December 23, 2018 19:27
Android Phone Backupscript
#!/bin/bash
{
echo "Started phone backup at " $(date) >> /home/kris/scripts/backup/phone-backup-log.txt
backupFolder=phone_$(date +%d_%m_%Y)
mkdir /home/kris/backups/$backupFolder
cd /home/kris/backups
adb pull /sdcard/DCIM/Camera $backupFolder
adb pull /sdcard/Documents $backupFolder
adb pull /sdcard/Pictures $backupFolder
zip -r $backupFolder.zip $backupFolder
@kopiro
kopiro / README.md
Created June 22, 2018 11:48
Download entire INTERNET

Internet Downloader

Simple POC

Compilation

brew install wget
gcc -lcurl download_internet.c
@kopiro
kopiro / aws-say.js
Created April 24, 2018 14:14
Convert text to mp3 using AWS Polly
const aws = require('aws-sdk');
aws.config.loadFromPath('aws.json');
const locale = 'it-IT';
const fs = require('fs');
const pollyClient = new aws.Polly({
signatureVersion: 'v4',
region: 'eu-west-1'
@mtking2
mtking2 / apod.md
Last active September 1, 2022 23:40
NASA APOD wallpaper script

NASA APOD wallpaper for Unix systems

script

Save to a file wherever it please you (I saved it to ~/scripts/apod.sh)
Maybe make sure it is executable: chmod 755 ~/scripts/apod.sh

#!/bin/bash
# apod.sh
@manuthu
manuthu / ssl_server.py
Last active January 26, 2018 09:43
Simple Python SSL Server
"""
Generate a server.key and server.cert.
>> mike:tmp$ openssl req -nodes -new -x509 -keyout server.key -out server.cert
Combine the generated keys.
>> mike:tmp$ cat server.key server.cert > server.pem
Now run the script
@gpetuhov
gpetuhov / firebase.txt
Last active June 4, 2019 07:23
Firebase
Firebase Features
https://firebase.google.com/features/
Firebase Console
https://console.firebase.google.com/
Udacity Course App (Friendly Chat)
https://github.com/udacity/and-nd-firebase
Firebase Cloud Messaging
@menuka94
menuka94 / MainActivity.java
Created March 3, 2017 09:01
Android Firebase Authentication
// Firebase instance variables
private FirebaseAuth mFirebaseAuth;
private FirebaseUser mFirebaseUser;
private String mUsername;
private String mPhotoUrl;
@Override
protected void onCreate(Bundle savedInstanceState){
// Initialize Firebase Auth
mFirebaseAuth = FirebaseAuth.getInstance();
@Crowles
Crowles / backup.sh
Last active October 10, 2023 15:35
Android ADB
#!/bin/bash
# Backup device
adb backup -apk -shared -all -f 'C:\android_backup.ab'
# confirm
# keyevents:
# 22 - KEYCODE_DPAD_RIGHT - "back up my data"
# 23 - KEYCODE_DPAD_CENTER - "enter"
# adb shell input text <your password>
@red-leaf1
red-leaf1 / simplehttpserver.py
Last active December 4, 2017 01:26
Networking projects
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
from os import curdir, sep
PORT_NUMBER = 8080
#message = "\nThis is a test WebServer.\n"
#This class will handle any incoming request from
#the browser
class MyHandler(BaseHTTPRequestHandler):