Repair damaged Documents and Desktop folder locations.
Run this as your normal user, in Windows PowerShell
{ "全角": "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!#$%&()*+,-./:;<=>?@[]^_`{|}”’¥~!#$%&()*+,-./:;<=>?@[]^_`{|}”’¥~アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲンガギグゲゴザジズゼゾダヂヅデドバビブベボパピプペポヴァィゥェォッャュョヮヰヱ・ー、。・「」 " | |
, "半角": "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!#$%&()*+,-./:;<=>?@[]^_`{|}\"'\\~!#$%&()*+,-./:;<=>?@[]^_`{|}\"'\\~アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲンガギグゲゴザジズゼゾダヂヅデドバビブベボパピプペポヴァィゥェォッャュョ・ー、。・「」 " | |
} |
import fs from 'node:fs'; | |
import recast from 'recast'; | |
const { namedTypes: n, builders: b } = recast.types.builders; | |
const code = fs.readFileSync(process.stdin.fd, 'utf-8'); | |
const ast = recast.parse(code); | |
const imports = ast.program.body.filter(node => n.ImportDeclaration.check(node)); |
Rename files | |
```sh | |
printf "@ %s\n@=%s\n" "original-name.txt" "new-name.txt" | zipnote -w redbean-2.0.16.com | |
``` | |
Change comment on file files | |
```sh | |
printf "@ %s\n%s\n@ (comment above this line)" "help.txt" "example comment..." | zipnote -w redbean-2.0.16.com |
path = require 'path' | |
local function get_asset_comment(zip_path) | |
comment = GetAssetComment(zip_path) | |
if comment then | |
return comment | |
end | |
return '' | |
end |
# -*- coding: utf-8 -*- | |
import SocketServer as Ss | |
import socket | |
import threading | |
TARGETS = {'target_host1', 'target_host2'} | |
PORT = 8989 | |
class DuplicateUDP(Ss.BaseRequestHandler): |
Make sure you meet all minimum requirements: https://ngs.pso2.com/support/system
Most important of said system requirements: Windows 10 Version 18362.0 and higher (64-bit)
CPU must support AVX type instructions, meaning:
adb shell pm uninstall -k --user 0 com.motorola.brapps | |
adb shell pm uninstall -k --user 0 com.google.android.youtube | |
adb shell pm uninstall -k --user 0 com.google.android.talk # Hangouts | |
adb shell pm uninstall -k --user 0 com.google.android.apps.tachyon # Duo | |
adb shell pm uninstall -k --user 0 com.android.chrome | |
adb shell pm uninstall -k --user 0 com.motorola.ccc.devicemanagement | |
adb shell pm uninstall -k --user 0 com.motorola.ccc.checkin | |
adb shell pm uninstall -k --user 0 com.motorola.ccc.mainplm | |
adb shell pm uninstall -k --user 0 com.motorola.ccc.ota |
#!/usr/bin/env python | |
""" | |
Simple script that uses ADB to wake and unlock any connected devices | |
""" | |
import subprocess | |
import sys | |
output = subprocess.check_output(['adb', 'devices']) | |
output = set(output.split('\n')[1:]) | |
output.remove('') |
.idea/ | |
venv/ | |
__pycache__/ |