deno run -A --unstable rename.ts save-renames
deno run -A --unstable rename.ts rename- Remove
.WEBPfiles because they are trash.
| #!/usr/bin/env php | |
| <?php | |
| $path = $argv[1]; | |
| if (empty($path)) { | |
| echo "Path is not set."; | |
| exit(1); | |
| } | |
| file_put_contents( |
| #/usr/bin/env bash | |
| # Include this file in `~/.bash_profile` with `source /path/to/tunnelbear-toggle.sh`. | |
| # Toggle TunnelBear activity. | |
| # | |
| # Example usage: | |
| # `tunnelbear-toggle` | |
| # `tunnelbear-toggle 1` | |
| tunnelbear-toggle () | |
| { |
| 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; |
| #!/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. |
| //usr/bin/env go run "$0" "$@"; exit "$?" | |
| package main | |
| import "fmt" | |
| func main() { | |
| fmt.Println("ok") | |
| } |
| #!/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); | |
| } |
| await Deno.stdout.write(new TextEncoder().encode('v'.repeat(20000))) |
| package main | |
| import ( | |
| "crypto/rand" | |
| "fmt" | |
| ) | |
| func main() { | |
| for i := 1; i <= 10000; i++ { | |
| n, err := rand.Reader.Read(make([]byte, 10)) |
| package main | |
| import ( | |
| "bytes" | |
| "encoding/json" | |
| "fmt" | |
| "io/ioutil" | |
| "math/rand" | |
| "path/filepath" | |
| ) |