The intended use-case for BaseDirectories is to query the paths of user-invisible standard directories that have been defined according to the conventions of the operating system the library is running on.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 粘贴到 console 里就可以了 | |
let r = () => { | |
const temp = Math.random; Math.random = () => 0; document.getElementById('random').click(); Math.random = temp; | |
} | |
let s = () => { | |
let t; | |
t = setInterval(() => { | |
let e = document.getElementById('lifeTrajectory') | |
if (!e) clearInterval(t) | |
else e.click() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! 2020-11-27 https://blog.csdn.net | |
blog.csdn.net##.clearfix.recommend-item-box | |
blog.csdn.net##.template-box | |
blog.csdn.net##.triplet-prompt | |
blog.csdn.net###asideNewComments | |
blog.csdn.net###asideArchive | |
blog.csdn.net###asideHotArticle | |
blog.csdn.net###asideCategory | |
blog.csdn.net##.left-toolbox | |
blog.csdn.net##.comment-sofa-flag |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# To ~/.bashrc file add line: | |
# source ~/.git-plugin-bash.sh | |
# Based on Oh My Zsh Git plugin (without zsh functions): | |
# https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/git/git.plugin.zsh | |
# https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This file was initially generated by Windows Terminal Preview 1.4.2652.0 | |
// It should still be usable in newer versions, but newer versions might have additional | |
// settings, help text, or changes that you will not see unless you clear this file | |
// and let us generate a new one for you. | |
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Check these threads before proceeding: | |
# https://github.com/microsoft/WSL/discussions/5857 | |
# https://github.com/microsoft/WSL/issues/5821 | |
if (-Not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')) { | |
$CmdLine = "-File `"" + $MyInvocation.MyCommand.Path + "`" " + $MyInvocation.UnboundArguments | |
Start-Process -FilePath PowerShell.exe -Verb Runas -ArgumentList $CmdLine | |
Exit | |
} | |
# Restart the Host Network Service | |
Restart-Service -Force -Name hns |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# WSL2 network port forwarding script v1 | |
# for enable script, 'Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser' in Powershell, | |
# for delete exist rules and ports use 'delete' as parameter, for show ports use 'list' as parameter. | |
# written by Daehyuk Ahn, Aug-1-2020 | |
# Display all portproxy information | |
If ($Args[0] -eq "list") { | |
netsh interface portproxy show v4tov4; | |
exit; | |
} |
This document was created back in 2020 and might not be actual nowadays. It is not supported anymore, so use thise information at your own risk.
- Download WSL2 Kernel
- run
wsl --set-default-version 2
in windows command line, so that all future WSL machine will use WSL2.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Ubuntu WSL2 must be already installed in C: system drive and user should be able to call windows binaries like wsl.exe from bash. | |
2. We will install Alpine WSL2 distro in an external partition/disk: | |
Download Alpine from here: | |
https://github.com/yuk7/AlpineWSL/releases/download/3.11.5-1/Alpine.zip | |
Extract the files in an external partition/disk. (for example D:\Alpine) | |
Make sure WSL2 is enabled by default (wsl.exe --set-default-version 2) | |
Inside the Alpine folder run Alpine.exe to install the Distro. An ext4.vhdx file will be created in that same folder. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Adblock Plus 2.0] | |
! Title: IMBALIST | |
! Homepage: https://gist.github.com/imba-tjd/2c9817233ac6798d4f2bfe057f781ca5 | |
! Expires: 10 days | |
! 使用方法:将 https://gist.githubusercontent.com/imba-tjd/2c9817233ac6798d4f2bfe057f781ca5/raw/IMBALIST.TXT 添加到uBO的规则列表中 | |
! humblebundle领取key页面 | |
www.humblebundle.com##.download-mosaic | |
www.humblebundle.com##.coupon.whitebox-redux | |
www.humblebundle.com##.js-subproduct-whitebox-holder > .whitebox-redux |
NewerOlder