Determine the file system by using the file-utility.
file image.img
Use mdconfig to link the IMG image to a virtual device.
mdconfig -a -t vnode -f /path/to/image.img -u 0
<NotepadPlus> | |
<UserLang name="LogFile" ext="log"> | |
<Settings> | |
<Global caseIgnored="yes" /> | |
<TreatAsSymbol comment="no" commentLine="no" /> | |
<Prefix words1="no" words2="no" words3="no" words4="no" /> | |
</Settings> | |
<KeywordLists> | |
<Keywords name="Delimiters">[(0])0</Keywords> | |
<Keywords name="Folder+"></Keywords> |
Determine the file system by using the file-utility.
file image.img
Use mdconfig to link the IMG image to a virtual device.
mdconfig -a -t vnode -f /path/to/image.img -u 0
A monad is a fancy word for a generic type of the form MyMonad<T>
(a generic type of arity 1).
A monad is special because it adds 'special powers' to the T
that it wraps.
These 'special powers' won't sound very special to an imperative programmer, so you have to squint to see them but bear with me.
IEnumerable<T>
is a monad that gives values of type T
the special power of nondeterminism, or the ability to 'be' multiple values at once.Nullable<T>
is a monad that gives values of type T
the special power of nullability, or the ability to be absent.Task<T>
is a monad that gives values of type T
the special power of asynchronicity, or the ability to be used before they are computed.The trick with monads comes when you want to play with the T
values, because they are inside another type. C# introduced language changes to make dealing with values inside these monads easier:
https://cloudbase.it/qemu-img-windows/
qemu-img convert "D:\VirtualBox\Open-disk001.vmdk" -O vhdx -o subformat=dynamic "D:\VirtualBox\Open.vhdx"
# Client Bridged / Client Mode / RelayD and IGMPProxy (It works) | |
# RelayD is to redirect packages and IGMP is for redirect IGMP packages | |
# Our network is 192.168.1.0/24 | |
# Steps: | |
# Configure WAN as static | |
# We should edit our wan iface and put static IP | |
uci set network.wan='interface' | |
uci set network.wan.proto='static' | |
uci set network.wan.ipaddr='192.168.1.239' # Main Network IP |
The guide breaks the process down into three steps, all performed via copying and pasting the code snippets through the terminal window. To launch a terminal window, open the Utilities folder inside the Applications folder and select terminal.
The first step makes a backup of the original IOAHCIBlockStorage file called IOAHCIBlockStorage.original. You will be prompted to enter in your system password when using the "sudo" command, since you are modifying system files. Copy and paste the code into the terminal window, a successful or uneventful response is a new blank terminal line.
sudo cp /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage.original
Next the code patches the IOAHCIBlockStorage file, removing the requirements that the SSD be made by Apple. Copy and paste t
import dns.resolver #dnspython | |
my_resolver = dns.resolver.Resolver() | |
#Cloudflares DNS Server | |
my_resolver.nameservers = ['1.1.1.1'] | |
#Get IP from cloudflare chaosnet TXT record | |
#https://community.cloudflare.com/t/can-1-1-1-1-be-used-to-find-out-ones-public-ip-address/14971/6 | |
result = my_resolver.resolve("whoami.cloudflare","TXT", "CH", tcp=True, lifetime=15) | |
response = result.response | |
answer = response.answer | |
ExternalIP = str(list(answer[0])[0]).replace('"', '') |
Document moved to: https://github.com/servo/servo/blob/master/HACKING_QUICKSTART.md
curl -u admin -k -d command=poweroff -d shutdown_option=1 -d OPERATION=set -d PAGE=System -d OUTER_TAB=tab_shutdown -d INNER_TAB=none https://{$1}/get_handler|awk -F"message>" '{print $2}'|awk -F"</" '{print $1}' | |
or | |
curl -u admin:netgear1 -k -d command=poweroff -d shutdown_option=1 -d OPERATION=set -d PAGE=System -d OUTER_TAB=tab_shutdown -d INNER_TAB=none https://10.20.0.102/get_handler | |
or | |
curl -u $user:$pass -k "https://$host/admin/index.cgi?CURRENTTAB=Shutdown&CURRENTPAGE=System&MODE=Advanced&button=Current&command=poweroff&MODIFIED=1" >/dev/null 2>/dev/null |