Save list of all files on drive:
dir /S /B /OGN > C:\files-S.txt
Find out what last woke the computer:
powercfg -lastwake
Startup dir:
Win+R →
shell:startup
Install Windows without a Microsoft account:
public HttpContextBase FakeHttpContext() { | |
var context = new Mock<HttpContextBase>(); | |
var files = new Mock<HttpFileCollectionBase>(); | |
var request = new Mock<HttpRequestBase>(); | |
var response = new Mock<HttpResponseBase>(); | |
var session = new Mock<HttpSessionStateBase>(); | |
var server = new Mock<HttpServerUtilityBase>(); | |
var user = new Mock<IPrincipal>(); | |
var identity = new Mock<IIdentity>(); | |
request.Setup(req => req.ApplicationPath).Returns("~/"); |
Function PrettyXML(ByVal Source, Optional ByVal EmitXMLDeclaration As Boolean) As String | |
Dim Writer As MXXMLWriter, Reader As SAXXMLReader | |
Set Writer = New MXXMLWriter | |
Writer.indent = True | |
Writer.omitXMLDeclaration = Not EmitXMLDeclaration | |
Set Reader = New SAXXMLReader | |
Set Reader.contentHandler = Writer | |
Reader.Parse Source | |
PrettyXML = Writer.Output |
Squid required: | |
Mount HD (15GB min) on /tmp/cache, chmod -R 777 /tmp/cache | |
Firewall section: | |
config redirect | |
option src 'lan' | |
option proto 'tcp' | |
option src_ip '!192.168.1.1' | |
option src_dport '80' | |
option dest_ip '192.168.1.1' |
Squid required: | |
Mount HD (15GB min) on /tmp/cache, chmod -R 777 /tmp/cache | |
Firewall section: | |
config redirect | |
option src 'lan' | |
option proto 'tcp' | |
option src_ip '!192.168.1.1' | |
option src_dport '80' | |
option dest_ip '192.168.1.1' |
var art=' :.+8.\n\ | |
I=.$= O\n\ | |
7O?7D?O~I$\n\ | |
,+Z?+OI+:77\n\ | |
~Z+?OO$OO7I\n\ | |
.IOD?=$ZZO,\n\ | |
OI~IZ+~8=,\n\ | |
DDDDDDDDDDDDDDDDDDDD DDDD8 8DDDDDDDDDDDDDDDDDDDDD 7Z~+Z+$7D+?\n\ | |
DDDDDDDDDDDDDDDDDDDD8 DDDD8 8DDDDDDDDDDDDDDDDDDDDD =$II$Z~IZ+\n\ | |
DDDD8 DDDDD DDDD8 DDDDD ?$:==:~$O\n\ |
https://code.google.com/p/android/issues/detail?id=32696#c5 | |
If you have a certificate that is not | |
trusted by Android, when you add it, it goes in the personal cert store. | |
When you add a cert in this personal cert store, the system requires a | |
higher security level to unlock the device. But if you manage to add your | |
cert to the system store then you don't have this requirement. Obviously, | |
root is required to add a certificate to the system store, but it is quiet | |
easy. |
Save list of all files on drive:
dir /S /B /OGN > C:\files-S.txt
Find out what last woke the computer:
powercfg -lastwake
Startup dir:
Win+R →
shell:startup
Install Windows without a Microsoft account:
/** | |
* Created by leo6104 (github.com/leo6104) | |
* You can use this nodejs script on angular v5/v4/v2 project. | |
* 1. Place this gist file `ng-update-v6.js` to angular project's root path | |
* 2. use command `node ng-update-v6.js .angular-cli.json` | |
* 3. check angular.json file (created by ng-update-v6.js) | |
**/ | |
const fs = require('fs'); | |
const path = require('path'); |
# This service will unlock all ZFS pools at boot time | |
# It should live in | |
# /etc/systemd/system/zfs-load-key.service | |
# Enable it with | |
# systemctl enable zfs-load-key.service | |
[Unit] | |
Description=Load encryption keys | |
DefaultDependencies=no | |
Before=zfs-mount.service |
This guide will enable systemd
to run as normal under WSL 2. This will enable services like microk8s
, docker
and many more to just work
during a WSL session. Note: this was tested on Windows 10 Build 2004, running Ubuntu 20.04 LTS in WSL 2.
To enable systemd
under WSL we require a tool called systemd-genie
Copy the contents of install-sg.sh
to a new file /tmp/install-sg.sh
: