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
<# | |
.SYNOPSIS | |
This PowerShell script runs with elevated privileges if not already, then executes a script and restarts | |
the machine and continues after logon, a PowerShell window will appear after logon where the script will resume | |
.NOTES | |
File Name : restart_and_continue_script.ps1 | |
Author : Alejandro Palacios ([email protected]) | |
Prerequisite : PowerShell V3+, | |
Minimum Execution policy: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned |
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
apiVersion: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
name: dashboard-ingress | |
namespace: kubernetes-dashboard | |
spec: | |
rules: | |
- host: dashboard.com | |
http: | |
paths: |
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
# Required variables | |
$env:SYSTEM_ACCESSTOKEN | |
$env:SYSTEM_TEAMFOUNDATIONSERVERURI | |
$env:SYSTEM_TEAMPROJECTID | |
$env:SYSTEM_TEAMPROJECT | |
$workItemId = YOUR_WORK_ITEM_ID_HERE | |
$output = "BODY OF EMAIL HERE" | |
# Derived variables | |
$adoHeader = @{Authorization = 'Basic ' + [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(":$env:SYSTEM_ACCESSTOKEN")) } | |
$organization = ($env:SYSTEM_TEAMFOUNDATIONSERVERURI -split "/")[3] |
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
//Created by: Alejandro Palacios ([email protected]) | |
//12 threads get a random number at the "same time" based on Dan Kaminsky's DefCon RNG challenge | |
using System; | |
using System.Text; | |
using System.Threading; | |
namespace entropy | |
{ | |
class Program | |
{ |
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
using System; | |
using System.Text; | |
using System.Data; | |
using System.Data.SqlClient; | |
using System.Data.Common; | |
using System.Collections; | |
using System.Threading.Tasks; | |
#region Update history | |
//Created by: Alejandro Palacios ([email protected]) |