# /etc/proxychains4.conf.example
[ProxyList]
# add proxy here ...
# meanwile
# defaults set to "tor"
socks5 WSL_HOST_IP 1080
This file contains 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
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(const TabBarDemo()); | |
} | |
class TabBarDemo extends StatefulWidget { | |
const TabBarDemo(); | |
@override |
This file contains 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
# remove build in apps, source https://www.askvg.com/guide-how-to-remove-all-built-in-apps-in-windows-10/ | |
# don't work with powershell 7 though | |
# source https://github.com/PowerShell/PowerShell/issues/13138#issuecomment-849965912 | |
import-module appx -usewindowspowershell | |
# other examples | |
# source https://github.com/PowerShell/PowerShell/issues/13138#issuecomment-851366340 | |
Import-Module -Name Appx -UseWindowsPowerShell -WarningAction SilentlyContinue |
On Windows 10 Home edition, there is no Local Group Policy Editor (gpedit.msc
)
and no Local Security Policy Editor (secpol.msc
). These tools are reserved
to Professional editions of Windows.
It is however possible to install them on Windows 10 Home if you need them.
Open a PowerShell window as administrator and run the following command:
This file contains 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
Various Windows 10 Batch Files and Notes | |
- Notably for improving privacy on Windows 10 | |
- Some performance tweaks |
This file contains 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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\.md] | |
@="markdown" | |
[HKEY_CLASSES_ROOT\.md\ShellNew] | |
"NullFile"="" | |
[HKEY_CLASSES_ROOT\markdown] | |
@="Blank Markdown file" |
This file contains 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
# Run this as a Computer Startup script to allow installing fonts from C:\InstallFont\ | |
# Based on http://www.edugeek.net/forums/windows-7/123187-installation-fonts-without-admin-rights-2.html | |
# Run this as a Computer Startup Script in Group Policy | |
# Full details on my website - https://mediarealm.com.au/articles/windows-font-install-no-password-powershell/ | |
$SourceDir = "C:\InstallFont\" | |
$Source = "C:\InstallFont\*" | |
$Destination = (New-Object -ComObject Shell.Application).Namespace(0x14) | |
$TempFolder = "C:\Windows\Temp\Fonts" |
This file contains 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 | |
set -xe | |
# This script takes as a parameter the name of the VM | |
# and creates a linked clone | |
# Ref: https://unix.stackexchange.com/a/33584 | |
# The scripts assumes that it runs from the same folder | |
# where the vm image is located and it coincides with the | |
# image name |
This file contains 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
# encode from binary file to base64txt | |
powershell -C "& {$outpath = (Join-Path (pwd) 'out_base64.txt'); $inpath = (Join-Path (pwd) 'data.jpg'); [IO.File]::WriteAllText($outpath, ([convert]::ToBase64String(([IO.File]::ReadAllBytes($inpath)))))}" | |
# decode from base64txt to binary file | |
powershell -C "& {$outpath = (Join-Path (pwd) 'outdata2.jpg'); $inpath = (Join-Path (pwd) 'out_base64.txt'); [IO.File]::WriteAllBytes($outpath, ([convert]::FromBase64String(([IO.File]::ReadAllText($inpath)))))}" |
This file contains 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
# | |
# Reference : http://stackoverflow.com/a/16700113/90101 | |
# | |
# | |
# remove default namespace declaration | |
# | |
sed -e 's/ xmlns=".*"//g' pom.xml | |
# |
NewerOlder