brew tap tonidy/tools-tap
brew install mkpasswd
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
@page | |
@{ | |
Layout = ""; | |
} | |
@using System.Linq; | |
@using System.Collections; | |
@using System.Reflection; | |
<html> |
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
#!/bin/env bash | |
set -eo pipefail | |
# | |
# Part of an introductory Fedora CoreOS blog post on my website: | |
# https://www.matthiaspreu.com/posts/fedora-coreos-first-steps/ | |
# | |
# Script sets up a FCOS virtual machine using QEMU. | |
# | |
# Initial user "matthias" with password "test" can be used. |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
#!/bin/bash | |
apt-get install mc htop git unzip wget curl aria2c -y | |
echo | |
echo "=====================================================" | |
echo " WELCOME" | |
echo "=====================================================" | |
echo | |
echo "Hub" |
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
@echo off | |
rem | |
rem **************************************************************************** | |
rem | |
rem Copyright (c) Microsoft Corporation. All rights reserved. | |
rem This code is licensed under the Microsoft Public License. | |
rem THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF | |
rem ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY | |
rem IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR | |
rem PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. |
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
# stolen from: | |
# http://lostechies.com/keithdahlby/2011/08/13/allowing-a-windows-service-to-interact-with-desktop-without-localsystem/ | |
# | |
# NOTE: Be sure to run as Admin and restart to take effect. | |
$svcName = Get-Service -DisplayName *jenkins* | select -Exp Name | |
$svcKey = Get-Item HKLM:\SYSTEM\CurrentControlSet\Services\$svcName | |
# Set 9th bit, from http://www.codeproject.com/KB/install/cswindowsservicedesktop.aspx | |
$newType = $svcKey.GetValue('Type') -bor 0x100 |
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
'wget.vbs - similar to wget but written in vbscript | |
'based on a script by Chrissy LeMaire | |
' Usage | |
if WScript.Arguments.Count < 1 then | |
MsgBox "Usage: wget.vbs <url> (file)" | |
WScript.Quit | |
end if | |
' Arguments |