Phison based flash drives have various modes that dictate how they operate;
- as a regular flash drive (mode 3)
- as a dual-volume flash drive (mode 7)
- as a single volume flash drive + cdrom (mode 21)
| # A simple and correct LG KDZ Android image extractor, because I got fed up | |
| # with the partially working one from kdztools. | |
| # | |
| # Copyright (c) 2021 Isaac Garzon | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is |
Just migrated it from Codepen.io to markdown. Credit goes to David Conner.
| Working with DOM | Working with JS | Working With Functions |
|---|---|---|
| Accessing Dom Elements | Add/Remove Array Item | Add Default Arguments to Function |
| Grab Children/Parent Node(s) | Add/Remove Object Properties | Throttle/Debounce Functions |
| Create DOM Elements | Conditionals |
| #!/usr/bin/env bash | |
| # This script requires: | |
| # - that the directory $HOME/.mpv exist | |
| # - that the program socat be installed | |
| # - that you start mpv with the unix socket feature pointing at that directory | |
| # I recommend an alias in your .bashrc or equivalent file: | |
| # alias mpv="mpv --input-unix-socket=$HOME/.mpv/socket" | |
| socket="$HOME/.mpv/socket" |
| sudo stop shill ; sleep 3 ; sudo start shill BLACKLISTED_DEVICES=tun0 ; sleep 3 ; sudo openvpn --mktun --dev tun0 && openvpn --config /home/root/vpnconfig --auth-user-pass /home/root/vpnauth --dev tun0 --dev-type tun | |
| # Easier navigation: .., ..., ~ and - | |
| alias ..="cd .." | |
| alias ...="cd ../.." | |
| alias ~="cd ~" # `cd` is probably faster to type though | |
| alias -- -="cd -" | |
| # List all files colorized in long format, including dot files | |
| alias la="ls -Gla" | |
| # List only directories |
| <?php | |
| error_reporting( error_reporting() & ~E_NOTICE ); // evil | |
| // config | |
| $enable_jsonp = false; | |
| $enable_native = false; | |
| $valid_url_regex = '/.*/'; | |
| // ############################################################################ |