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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"log" | |
) | |
// Command represents an action to be performed by the server. | |
type Command struct { |
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
delete | |
----- | |
- thunderbird | |
- rhythmbox | |
- transmission-gtk | |
- simple-scan | |
- timeshift | |
- libreoffice-impress | |
- libreoffice-draw | |
- Libreoffice-math |
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
################################################################################ | |
# Fatih Tatoğlu - https://github.com/fatihtatoglu | |
################################################################################ | |
# Instructions | |
# 1. Copy this file | |
# 2. Create data.ini file | |
# 3. Execute script | |
################################################################################ | |
# Example data.ini 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
$url = "https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1" | |
$file = "$env:temp\ConfigureRemotingForAnsible.ps1" | |
(New-Object -TypeName System.Net.WebClient).DownloadFile($url, $file) | |
$currentPolicy = Get-ExecutionPolicy -List | Where-Object Scope -eq "LocalMachine" | Select-Object ExecutionPolicy | |
if ($currentPolicy -ne "Unrestricted") { | |
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force | |
} |
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
$currentVersion = $PSVersionTable.PSVersion.Major | |
if ($currentVersion -ge 5) { | |
Write-Host "PowerShell is updated." | |
return | |
} | |
$url = "https://raw.githubusercontent.com/jborean93/ansible-windows/master/scripts/Upgrade-PowerShell.ps1" | |
$file = "$env:temp\Upgrade-PowerShell.ps1" | |
(New-Object -TypeName System.Net.WebClient).DownloadFile($url, $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
Set-ExecutionPolicy Bypass -Scope Process -Force; | |
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; | |
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')); |
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
function Initialize-Seed { | |
######################################## | |
############## Chocolatey ############## | |
######################################## | |
function Get-ChocolateyPath { | |
return $env:Path.Split(";", [System.StringSplitOptions]::RemoveEmptyEntries) | Select-Object $item | Where-Object { $_ -like "*choco*" } | |
} | |
function Test-Chocolatey { | |
$chocoPath = Get-ChocolateyPath |