- Copy files to computer using 3uTools.
- Rename files with
for c in save-renames rename; do deno run -A --unstable rename.ts $c; done
. - Remove
.webp
files because they are trash. - Move video files in
./video
directory (.mp4
,.mov
). - Create
./video_x264
and run./convert.sh
. - Wait for million years.
- Check
./video_x264
and remove./video
. - Review media collection with Filter UI.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"github.com/mitchellh/go-ps" | |
"os" | |
"os/signal" | |
"syscall" | |
"time" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -ETexuo pipefail | |
shopt -s inherit_errexit | |
# -e - stop on error. | |
# -E - traps will work with -e. | |
# -x - debug output each command. | |
# -u - error on unexpected variables. | |
# -o pipefail - handle errors of '|'. | |
# -s inherit_errexit - fail in subshell failures. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"math/rand" | |
"path/filepath" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/rand" | |
"fmt" | |
) | |
func main() { | |
for i := 1; i <= 10000; i++ { | |
n, err := rand.Reader.Read(make([]byte, 10)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
await Deno.stdout.write(new TextEncoder().encode('v'.repeat(20000))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env -S deno run --unstable | |
while (true) { | |
const buffer = new Uint8Array(1); | |
Deno.setRaw(0, true); | |
await Deno.stdin.read(buffer); | |
Deno.setRaw(0, false); | |
console.log(buffer); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//usr/bin/env go run "$0" "$@"; exit "$?" | |
package main | |
import "fmt" | |
func main() { | |
fmt.Println("ok") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -ex | |
ram_dir=~/RAM_test | |
# Create directory and mount RAM-based filesystem: | |
mkdir $ram_dir | |
sudo mount tmpfs -t tmpfs $ram_dir | |
( | |
cd $ram_dir | |
dd if=/dev/zero of=data_tmp bs=1M count=512 # - write. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Random; | |
import java.util.Timer; | |
import java.util.TimerTask; | |
import javax.microedition.lcdui.Canvas; | |
import javax.microedition.lcdui.Command; | |
import javax.microedition.lcdui.CommandListener; | |
import javax.microedition.lcdui.Display; | |
import javax.microedition.lcdui.Displayable; | |
import javax.microedition.lcdui.Font; | |
import javax.microedition.lcdui.Graphics; |
NewerOlder