API
var cors_proxy = 'https://cors-anywhere.herokuapp.com/';
$.getJSON(cors_proxy + url, function(data) {
});
var keyword = $('#keyword').val();
{ | |
"src": "/tmp/scratch-desktop/", | |
"dest": "/tmp/", | |
"arch": "i386", | |
"icon": "/tmp/scratch-desktop/resources/Icon.png", | |
"categories": [ | |
"Education" | |
] | |
} |
var cors_proxy = 'https://cors-anywhere.herokuapp.com/';
$.getJSON(cors_proxy + url, function(data) {
});
var keyword = $('#keyword').val();
/* | |
1. Install Stylus (https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne) | |
2. URL: Regular expression (https://scratch.mit.edu/projects/.*editor.*) | |
*/ | |
/* | |
* { | |
font-family: "微軟正黑體" !important; | |
} | |
*/ |
$ pdftocairo [original.pdf] -pdf [tmp.pdf]
$ gs -o [file-with-outlines.pdf] -dNoOutputFonts -sDEVICE=pdfwrite [tmp.pdf]
$ printf "admin\n" | sshfs root@192.168.0.101:/ ~/mnt -o port=2222,password_stdin
$ rsync -avH --progress ~/mnt/storage/extSdCard/DCIM .
#!/bin/sh | |
chars=$(cat ../10.txt | fold -w1 | sort | uniq) | |
for c in $chars; do | |
convert -background none -fill red -font /opt/local/fonts/lyshie/TW-Kai-98_1.ttf -pointsize 64 label:"$c" "$c.png" | |
done |
#!/usr/bin/env python3 | |
def newBoard(board): | |
full_board = ['-'] * 9 | |
full_board[:len(board)] = board[:len(board)] | |
return full_board | |
#!/bin/sh | |
setxkbmap -option grab:break_actions | |
xdotool key XF86Ungrab |
#!/usr/bin/python | |
import sys | |
from os import geteuid | |
from scapy.all import * | |
#check for root | |
if geteuid() != 0: | |
print("This must be run as root") | |
exit(1) |