load without any analysis (file header at offset 0x0): r2 -n /path/to/file
- analyze all:
aa
- show sections:
iS
- list functions:
afl
- list imports:
ii
- list entrypoints:
ie
- seek to function:
s sym.main
<?xml version="1.0" encoding="utf-8"?> | |
<spnOverrides> | |
<!-- Korea --> | |
<spnOverride numeric="45005" spn_display_rule="SPN_RULE_SHOW_PLMN" /> | |
<!-- Japan --> | |
<spnOverride numeric="44010" spn_display_rule="SPN_RULE_SHOW_PLMN" /> | |
<spnOverride numeric="44020" spn="SoftBank" /> | |
<!-- Hong Kong --> | |
<spnOverride numeric="45406" spn="SmarTone" /> |
After installing the latest Wine release, which currently is 2.0 (I chose the development branch) on XQuartz 2.7.11, I was having problems with blurry text in both winecfg, regedit and other programs launched through Wine. After trying to enable font smoothing and font replacements (source) with only slight changes I found someone trying to solve the same issues (source), albeit compiling everything from scratch which I don't want to do. It turns out that the Retina display on my MacBook Pro was causing the issues with blurry fonts because Wine was not using the "real" resolution, only the reported "lower resolution".
To enable Retina support in Wine open the registry editor via a terminal, preferably through Wine Devel.app installed with Wine:
$ wine regedit
Then find the folder/key:
settings put global captive_portal_mode 1 | |
settings put global captive_portal_use_https 1 | |
settings put global captive_portal_http_url http://connect.rom.miui.com/generate_204 | |
settings put global captive_portal_https_url https://connect.rom.miui.com/generate_204 | |
settings put global captive_portal_fallback_url http://captive.v2ex.co/generate_204 | |
settings put global captive_portal_other_fallback_urls http://www.google.cn/generate_204 |
(NB: adapted from this Ask Ubuntu thread -- tested to work on Ubuntu 16.04 LTS through Ubuntu 22.04 LTS (Jammy).
Unlike using VMWare Tools to enable Linux guest capabilities, the open-vm-tools
package doesn't auto-mount shared VMWare folders. This can be frustrating in various ways, but there's an easy fix.
Install open-vm-tools
and run:
sudo mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other
#!/usr/bin/env python3 | |
"""GitHub New Release Checker | |
./check_release.py path/to/releases.ini | |
It fetches release tag from GitHub, then comparing it with the | |
old one in ini file. If tag changed, send a email to configured | |
address. | |
""" | |
import re |
pacman -Syu
if pacman needs to be updated you might have to close and reopen the terminal and run pacman -Syu
againpacman -S git mingw-w64-x86_64-toolchain mingw64/mingw-w64-x86_64-SDL2 mingw64/mingw-w64-x86_64-SDL2_mixer mingw64/mingw-w64-x86_64-SDL2_image mingw64/mingw-w64-x86_64-SDL2_ttf mingw64/mingw-w64-x86_64-SDL2_net mingw64/mingw-w64-x86_64-cmake make
Set-ItemProperty -path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender' -name 'DisableConfig' -type 'Dword' -value 1 | |
Set-ItemProperty -path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender' -name 'DisableAntiSpyware' -type 'Dword' -value 1 | |
Set-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Services\wscsvc' -name 'Start' -type 'Dword' -value 4 | |
Set-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Services\SecurityHealthService' -name 'Start' -type 'Dword' -value 4 | |
Set-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Services\Sense' -name 'Start' -type 'Dword' -value 4 | |
Set-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Services\WdBoot' -name 'Start' -type 'Dword' -value 4 | |
Set-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Services\WdFilter' -name 'Start' -type 'Dword' -value 4 | |
Set-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Services\WdNisDrv' -name 'Start' -type 'Dword' -value 4 | |
Set-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Services\WdNisSvc' -name 'Start' -type 'Dword' -v |
# This function will automate grep CMD($1) windows and set OPACITY($2). | |
transparent_windows() { | |
for i in $(pgrep -f $1); do | |
for j in $(/usr/bin/xdotool search --pid $i); do | |
xprop -id $j -f _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY $(printf 0x%x $((0xffffffff * $2 / 100))); | |
done | |
done | |
} | |
# Give vscode an alias. |
Here is easy steps to try Windows 10 on ARM or Ubuntu for ARM64 on your Apple Silicon Mac. Enjoy!
NOTE: that this is current, 10/1/2021 state.