- Download MP4:
https://github.com/alfg/mp4/blob/master/test/tears-of-steel.mp4?raw=true
- Run
go run mp4_example.go tears-of-steel.mp4
go run mp4_example_2.go tears-of-steel.mp4
""" | |
Non blocking example: | |
1. Browse to `localhost:8000/sleep1` | |
2. Browse to `localhost:8000/` | |
You'll observe that the first call will take 5 seconds and the second call will be executed immediately. | |
Blocking example: | |
1. Browse to `localhost:8000/sleep2` | |
2. Browse to `localhost:8000/` |
https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-2.02-mac_osx-10.11-setup.pkg |
All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker
. This will install the whole docker suite, left only Tini to be compiled manually.
#!/usr/bin/env bash | |
# Josh Skidmore <[email protected]> | |
# Basic example of using an HTTP range header to extract EXIF data | |
# from a JPEG file without having to download the entire image. | |
# This has no error handling and assumes the EXIF data is embedded | |
# within the first $KB_TO_DOWNLOAD kilobytes of the image | |
# Requirements: | |
# * curl |
package mycrypto | |
import ( | |
"crypto/aes" | |
"crypto/cipher" | |
"crypto/rand" | |
"encoding/base64" | |
"io" | |
"time" | |
) |
Note: This gist may be outdated, thanks to all contributors in comments.
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 is useful tips, thanks guys for this !
use constant PRIMITIVES => join( '', 0 .. 9, 'a' .. 'z', 'A' .. 'Z' ); | |
sub encode_base62 { | |
my( $num ) = @_; | |
my @c; | |
do { | |
push( @c, substr( PRIMITIVES, $num % length(PRIMITIVES), 1 ) ); | |
$num = int( $num / length(PRIMITIVES) ); | |
} while( $num ); | |
join( '', reverse @c ); |
package main | |
import ( | |
"flag" | |
"fmt" | |
"io" | |
"log" | |
"net/http" | |
"net/http/httputil" | |
"net/url" |