Skip to content

Instantly share code, notes, and snippets.

View norbinsh's full-sized avatar
🏗️
Building

Shay Elmualem norbinsh

🏗️
Building
View GitHub Profile
import os
import configparser
config = configparser.ConfigParser()
config.read(os.path.dirname(__file__) + '/config.ini')
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
<OptionsSetting value="true" id="Add" />
<OptionsSetting value="true" id="Remove" />
<OptionsSetting value="true" id="Checkout" />
<OptionsSetting value="true" id="Update" />
<OptionsSetting value="true" id="Status" />
<OptionsSetting value="true" id="Edit" />
<ConfirmationsSetting value="0" id="Add" />
@norbinsh
norbinsh / Get-MyProcess
Last active August 29, 2015 14:23
practice...
$VerbosePreference = 'Continue'
$DebugPreference = 'Continue'
$WarningPreference = 'Continue'
$Root = "C:\"
$Folder = "C:\2012SG\"
$NestedFolder = "C:\2012SG\event3\"
$FullPath = "C:\2012SG\event3\process3.txt"
#Requires -RunAsAdministrator
#Requires -Version 4.0
$VerbosePreference = 'Continue'
$DebugPreference = 'Continue'
$WarningPreference = 'Continue'
function Get-StartupItems {
[cmdletbinding()]
@norbinsh
norbinsh / gist:994d4c00e728ed0a6c42
Last active August 29, 2015 14:22
MSI install if enough processors - env:path *Practice*
#Making sure the variables used in the script have their value set to $null before starting
$cpu = $null;
$cpupath = $null;
$msipackage = $null;
#Declaring variables
$cpupath = (gci env:\NUMBER_OF_PROCESSORS).value;
$msipackage = 'c:\users\shay\desktop\package.msi'