Repair damaged Documents and Desktop folder locations.
Run this as your normal user, in Windows PowerShell
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__/ |
# first: mkdir user && cd user && cp /path/to/get_gists.py . | |
# python3 get_gists.py user | |
import requests | |
import sys | |
from subprocess import call | |
user = sys.argv[1] | |
r = requests.get('https://api.github.com/users/{0}/gists'.format(user)) |
#!/bin/bash | |
# https://www.jetbrains.com/help/idea/working-with-projects.html#invalidate-cache | |
# https://intellij-support.jetbrains.com/hc/en-us/articles/206544519 | |
# https://www.jetbrains.com/help/idea/2019.3/tuning-the-ide.html#default-dirs | |
# https://www.jetbrains.com/help/idea/2020.1/tuning-the-ide.html#default-dirs | |
# .IntelliJIdea20???? (IntelliJ IDEA Ultimate Edition) | |
# .IdeaIC20???? (IntelliJ IDEA Community Edition) | |
# .PyCharmCE20???? |