$ pip install falcon
$ python3 app.py
alternatively with Gunicorn (for HTTP/1.1):
$ pip install gunicorn
$ gunicorn app:app
$tfsUrl = "https://domain.tld/"; | |
$tfsCollection = "DefaultCollection"; | |
$tfsProject = "projectName"; | |
$nugetSourceName = "Libraries"; | |
$nugetFeedUrl = "$tfsUrl/$tfsCollection/_packaging/Libraries/nuget/v3/index.json"; | |
$nugetUserName = "TfsBuild"; | |
$nugetPassword = "*******"; | |
$ErrorActionPreference="Stop"; | |
If(-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent() ).IsInRole( |
Add-Type -Path "$PSScriptRoot\SevenZipSharp.dll" | |
function Compress-TextToZipStream | |
{ | |
############################## | |
#.SYNOPSIS | |
#Short description | |
# | |
#.DESCRIPTION | |
#Long description | |
# |
#define WIN32_LEAN_AND_MEAN | |
#include <windows.h> | |
#include <stdio.h> | |
#include <imagehlp.h> | |
#include <malloc.h> | |
#include <tchar.h> | |
#include <string> | |
#define REGULARFILE(x) ((x) & ~(FILE_ATTRIBUTE_DIRECTORY | FILE_ATTRIBUTE_OFFLINE | FILE_ATTRIBUTE_ENCRYPTED | FILE_ATTRIBUTE_VIRTUAL)) |
#!/bin/bash | |
address=https://ilo.mysite.com:34043 | |
username=Administrator | |
password=******** | |
session_key=$( | |
curl -fsS \ | |
--insecure \ | |
"$address/json/login_session" \ |
// Port of the C# 101 LINQ Samples rewritten into Apple's Swift 3. | |
#![feature(ordering_chaining, step_by)] | |
fn main() { | |
// linq5: Where - Indexed | |
/* | |
//c# | |
public void Linq5() | |
{ |
# Based on https://blog.vandenbrand.org/2016/01/04/how-to-automate-your-mac-os-x-setup-with-ansible/ | |
# | |
- hosts: all | |
tasks: | |
- name: Current Dock names | |
shell: > | |
dockutil --list | | |
python -c 'import sys; [sys.stdout.write(line.split("\t")[0] + "\n") | |
for line in sys.stdin]' | |
register: dockitems |
using System; | |
using Newtonsoft.Json; | |
using System.Reactive.Linq; | |
using Nito.AsyncEx; | |
using System.Threading.Tasks; | |
using System.Collections.Generic; | |
using System.Threading; | |
using System.Reactive.Threading.Tasks; | |
namespace Playground |
http://audiocontentdownload.apple.com/lp10_ms3_content_2013/GarageBandBasicContent.pkg | |
http://audiocontentdownload.apple.com/lp10_ms3_content_2013/JamPack1.pkg | |
http://audiocontentdownload.apple.com/lp10_ms3_content_2013/JamPack4_Instruments.pkg | |
http://audiocontentdownload.apple.com/lp10_ms3_content_2013/MAContent10_AppleLoopsChillwave.pkg | |
http://audiocontentdownload.apple.com/lp10_ms3_content_2013/MAContent10_AppleLoopsDeepHouse.pkg | |
http://audiocontentdownload.apple.com/lp10_ms3_content_2013/MAContent10_AppleLoopsDubstep.pkg | |
http://audiocontentdownload.apple.com/lp10_ms3_content_2013/MAContent10_AppleLoopsElectroHouse.pkg | |
http://audiocontentdownload.apple.com/lp10_ms3_content_2013/MAContent10_AppleLoopsHipHop.pkg | |
http://audiocontentdownload.apple.com/lp10_ms3_content_2013/MAContent10_AppleLoopsLegacy1.pkg | |
http://audiocontentdownload.apple.com/lp10_ms3_content_2013/MAContent10_AppleLoopsLegacyRemix.pkg |
function Get-KeepassPW{ | |
$result = $null | |
$KeePath = "C:\Program Files (x86)\KeePass Password Safe 2\KPScript.exe" | |
# Path to your database | |
$KeeDataPath = "C:\Users\MyUser\Documents\KeePass\Database.kdbx" | |
while(!$result){ | |
$pass = Read-Host 'What is your KeePassword?' -AsSecureString | |
$KePassword = [Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR($pass)) | |
$KeeCommands = @( | |
"-c:GetEntryString" |