This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
using namespace System.Management.Automation | |
using namespace System.Management.Automation.Language | |
if ($host.Name -eq 'ConsoleHost') | |
{ | |
Import-Module PSReadLine | |
} | |
Import-Module PSColors | |
#Import-Module posh-git | |
Import-Module -Name Terminal-Icons |
export HISTCONTROL='ignorespace:ignoredups' | |
export HISTIGNORE='bg:fg:clear:exit:h:history:l:l[ls]:pwd' | |
export HISTSIZE=10000 | |
export AWS_PAGER= | |
export EDITOR=vi | |
export KUBECONFIG=$(find ~/.kube -maxdepth 1 -type f 2>/dev/null | grep -E 'config[^.]*$' | xargs -I{} -r echo -n ':{}') | |
export PATH=$HOME/.dotnet/tools:$PATH | |
alias h='history' |
import os | |
# Bot credentials | |
API_ID = '25193832' | |
API_HASH = 'e154b1ccb0195edec0bc91ae7efebc2f' | |
# MongoDB connection string | |
DB_URI = 'mongodb+srv://copy:[email protected]/?retryWrites=true&w=majority&appName=Cluster0' | |
LOG_CHANNEL = '-1002240372506' | |
TOKEN = "7488527811:AAEPMstK_YmEXlB2nOhaBYElaQimhoiYXQc" | |
OWNER_ID = 7379318591 # Change to actual owner ID | |
ALERT_CHANNEL_ID = "-1002469829347" |
<hash>
with your gist's hash):
# with ssh
git clone [email protected]:<hash>.git mygist
# with https
git clone https://gist.github.com/.git mygist
#------------------------------------------------------------------# | |
#- Clear-WindowsUserCacheFiles # | |
#------------------------------------------------------------------# | |
Function Clear-WindowsUserCacheFiles { | |
param([string]$user=$env:USERNAME) | |
Remove-CacheFiles "C:\Users\$user\AppData\Local\Temp" | |
Remove-CacheFiles "C:\Users\$user\AppData\Local\Microsoft\Windows\WER" | |
Remove-CacheFiles "C:\Users\$user\AppData\Local\Microsoft\Windows\Temporary Internet Files" | |
} |
#------------------------------------------------------------------# | |
#- Clear-GlobalWindowsCache # | |
#------------------------------------------------------------------# | |
Function Clear-GlobalWindowsCache { | |
Remove-CacheFiles 'C:\Windows\Temp' | |
Remove-CacheFiles "C:\`$Recycle.Bin" | |
Remove-CacheFiles "C:\Windows\Prefetch" | |
C:\Windows\System32\rundll32.exe InetCpl.cpl, ClearMyTracksByProcess 255 | |
C:\Windows\System32\rundll32.exe InetCpl.cpl, ClearMyTracksByProcess 4351 | |
} |
WIndows 11 can be installed by hand on the computer by following a few simple steps: source:https://www.reddit.com/r/Windows11/comments/qwneie/a_guide_on_how_to_install_windows_11_manually/ without pictures:
First of all, boot to the installation media.
Then, press Shift + F10
. This will open command prompt.
#################################################################################################### | |
# BOOTSTRAP # | |
#################################################################################################### | |
# Run script as Administrator if the session isn't elevated | |
if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]"Administrator")) { | |
$ArgumentList = "-NoExit -NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" | |
Start-Process -FilePath "powershell.exe" -ArgumentList "$ArgumentList" -Verb RunAs | |
Exit | |
} |
#region installs | |
# core tech choco installs | |
$script:chocoCoreTech = @( | |
# 'vscode' # visual studio code | |
# 'python' # python | |
# '7zip' # file archiver with good compression ratio | |
# 'git' # git for windows | |
# 'firefox' # firefox browser | |
) |