Aggiungere questo a myproject/index.html
<script src="http://localhost:35729/livereload.js"></script>
Eseguire questi comandi:
sudo npm install -g livereload
cd myproject
ffmpeg: skip frames | |
-vf select="gte(n\, 5)" |
var Loop = function (step) { | |
var self = this; | |
var lastFrameTimestamp = null; | |
var nextStep = function (timestamp) { | |
if (lastFrameTimestamp === null) { | |
lastFrameTimestamp = timestamp; | |
} | |
var tslf = timestamp - lastFrameTimestamp; | |
step(tslf); | |
lastFrameTimestamp = timestamp; |
try { | |
String command = "LD_LIBRARY_PATH=/vendor/lib:/system/lib service call activity 42 s16 com.android.systemui"; | |
Process proc = Runtime.getRuntime().exec(new String[] { "su", "-c", command }, null); | |
proc.waitFor(); | |
} catch (java.io.IOException e) { | |
e.printStackTrace(); | |
} catch (java.lang.InterruptedException e) { | |
e.printStackTrace(); | |
} |
dwc_otg.lpm_enable=0 console=tty3 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait loglevel=3 logo.nologo |
#!/bin/bash | |
ACTION=$1 | |
SRC=$2 | |
DST=$3 | |
function pull { | |
mkdir "${DST}" | |
cd "${DST}" | |
mkdir mnt mnt/1 mnt/2 mnt/3 |
date -u "+%Y-%m-%d %H:%M:%S" > /etc/fake-hwclock.data |
#ifndef FORMAT_H_ | |
#define FORMAT_H_ | |
#include <string> | |
#include <cstdarg> | |
#include <cstdio> | |
class Format: public std::string { | |
public: | |
inline Format(const char* format, ...) { |
#!/bin/bash | |
BROWSER=$2 | |
PERMANENT_DIR=$3 | |
function resume { | |
rm ${PERMANENT_DIR} | |
mv ${PERMANENT_DIR}.backup ${PERMANENT_DIR} | |
} |
datetime=$( date +%m%d%H%M%Y ); ssh root@remote_addr "( date $datetime; /sbin/hwclock --systohc )" |