One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
################## | |
# Privacy Settings | |
################## | |
# Privacy: Let apps use my advertising ID: Disable | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0 | |
# To Restore: | |
#Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1 | |
# Privacy: SmartScreen Filter for Store Apps: Disable | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0 |
var Promise = require('bluebird'); | |
/** | |
* Periodically poll a signal function until either it returns true or a timeout is reached. | |
* | |
* @param signal function that returns true when the polled operation is complete | |
* @param interval time interval between polls in milliseconds | |
* @param timeout period of time before giving up on polling | |
* @returns true if the signal function returned true, false if the operation timed out | |
*/ |
################################################################################ | |
# E-mail tool in PowerShell | |
# | |
# 0. Set execution policy to "RemoteSighed" in PowerShell | |
# Set-ExecutionPolicy RemoteSigned | |
# | |
# 1. Right click this file and select "Run with PowerShell" from context menus. | |
# Or run the following command in cmd.exe. | |
# powershell -Sta -File send-message.ps1 | |
# |
#Put this in Export-Chocolatey.ps1 file and run it: | |
#.\Export-Chocolatey.ps1 > packages.config | |
#You can install the packages using | |
#choco install packages.config -y | |
Write-Output "<?xml version=`"1.0`" encoding=`"utf-8`"?>" | |
Write-Output "<packages>" | |
choco list -lo -r -y | % { " <package id=`"$($_.SubString(0, $_.IndexOf("|")))`" version=`"$($_.SubString($_.IndexOf("|") + 1))`" />" } | |
Write-Output "</packages>" |
# Original blog post: <https://mnx.io/blog/a-proper-server-naming-scheme/> | |
# Original word list: <http://web.archive.org/web/20091003023412/http://tothink.com/mnemonic/wordlist.txt> | |
# Sample usage: `curl <gist> | tail --lines +4 | shuf | head --lines 1` | |
acrobat | |
africa | |
alaska | |
albert | |
albino | |
album | |
alcohol |
set serveroutput on; | |
declare | |
raw_guid raw(16); | |
guid varchar2(64); | |
begin | |
raw_guid := guid_to_raw ('88c6a267-65d2-48d6-8da2-6f45e2c22726'); | |
guid := raw_to_guid('67A2C688D265D6488DA26F45E2C22726'); | |
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:int="http://www.springframework.org/schema/integration" | |
xmlns:int-sftp="http://www.springframework.org/schema/integration/sftp" | |
xmlns:task="http://www.springframework.org/schema/task" | |
xmlns:context="http://www.springframework.org/schema/context" | |
xmlns:int-stream="http://www.springframework.org/schema/integration/stream" | |
xsi:schemaLocation="http://www.springframework.org/schema/integration/stream http://www.springframework.org/schema/integration/stream/spring-integration-stream-4.0.xsd | |
http://www.springframework.org/schema/integration/sftp http://www.springframework.org/schema/integration/sftp/spring-integration-sftp.xsd |
$xml = "<?xml version=`"1.0`" encoding=`"utf-8`"?>`n" | |
$xml += "<packages>`n" | |
foreach ($program in $input) { | |
$name, $version, $shouldBeEmpty = $program.Split(" ") | |
if (!$shouldBeEmpty) { | |
$xml += (" <package id=`"{0}`" version=`"{1}`"/>`n" -f $name,$version) | |
} | |
} | |
$xml += "</packages>`n" | |
echo $xml |
### PowerShell script to install a minimal Workstation with Chocolatey | |
# https://chocolatey.org | |
## To Run This Script: | |
# 1. Download this PowerShell script | |
# * Right-click <> ("View Raw") and "Save As" to %USERPROFILE% (/Users/<username>) | |
# * If Cocolatey is not already installed, see | |
# "Uncomment to install Chocolatey" | |
# * If you would like to also install Anaconda | |
# (Python, IPython, lots of great libraries) |