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
$app = Get-WmiObject -Class Win32_Product | Where-Object { | |
$_.Name -match "Microsoft .NET Core SDK" | |
} | |
Write-Host $app.Name | |
Write-Host $app.IdentifyingNumber | |
pushd $env:SYSTEMROOT\System32 | |
$app.identifyingnumber |% { Start-Process msiexec -wait -ArgumentList "/x $_" } | |
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
<# PLEASE NOTE: I am not the original author of this function. | |
I found it online years ago, and have been using it ever since. | |
If you are the original author, please ping me and let me know, | |
so I can give you proper credit. | |
#> | |
Function Start-Pomodoro | |
{ | |
Param ( | |
[int]$Minutes = 25 | |
) |
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
###################################### | |
# INSTALL OPENCV ON UBUNTU OR DEBIAN # | |
###################################### | |
# | THIS SCRIPT IS TESTED CORRECTLY ON | | |
# |------------------------------------------------------| | |
# | OS | OpenCV | Test | Last test | | |
# |------------------|--------------|------|-------------| | |
# | Ubuntu 18.04 LTS | OpenCV 3.4.2 | OK | 18 Jul 2018 | | |
# | Debian 9.5 | OpenCV 3.4.2 | OK | 18 Jul 2018 | |
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
Get-ChildItem -Path C:\HostingSpaces -Recurse -Include *.php | Where {$_.Length -eq 0} | remove-Item |
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
# Tool to update wordpress website in Windows | |
# Author: Pedro Fernandes | |
# update-wp.ps1 | |
param([String]$spaces = "E:\HostingSpaces") | |
Write-Host "update-wp.ps1- Tool update wordpress website in Windows" | |
Write-Host "Usage:" | |
Write-Host " -spaces: Location of WebSites in local system" | |
Write-Host "" |
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
!! Colorscheme | |
! special | |
*.foreground: #93a1a1 | |
*.background: #141c21 | |
*.cursorColor: #afbfbf | |
! black | |
*.color0: #263640 | |
*.color8: #4a697d |
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
text/html; "$BROWSER" %s &; test=test -n "$DISPLAY"; needsterminal; | |
text/html; w3m -I %{charset} -T text/html; copiousoutput; |
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
# 0 is too far from ` ;) | |
set -g base-index 1 | |
setw -g mouse on | |
set-option -g default-terminal "screen-256color" | |
set-option -ga terminal-overrides ",xterm-256color:Tc" | |
# Automatically set window title | |
set-window-option -g automatic-rename on | |
set-option -g set-titles 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
#!/bin/bash | |
apk add sudo alsa-utils alsa-utils-doc alsa-lib alsaconf neofetch htop bc \ | |
alpine-sdk nodejs npm python3 mutt mc w3m tmux zsh cmus mplayer \ | |
weechat | |
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
addgroup $USER audio | |
addgroup root audio |
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
Set-ExecutionPolicy Bypass -Scope Process -Force; | |
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; | |
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')); | |
choco install adobereader -y | |
choco install python3 -y | |
choco install visualstudio-installer -y | |
choco install zoom -y | |
choco install winrar -y | |
choco install nodejs.install -y | |
choco install ccleaner -y |