Skip to content

Instantly share code, notes, and snippets.

curl --noproxy "obiftp" -L -R -O ftp://obiftp.us.oracle.com/modules/unlicensed/global/mydesktop/linux/mydesktopclient_latest_linux.sh
#!/usr/bin/env sysbench
-- you can run this script like this:
-- -- $ ./prime-test.lu0a --cpu-max-prime=20000 --threads=8 --report-interval=10 --time=999999999 run
sysbench.cmdline.options = {
-- the default values for built-in options are currently ignored, see
-- https://github.com/akopytov/sysbench/issues/151
["test"] = {"test", "cpu"},
["cpu-max-prime"] = {"CPU maximum prime", 20000},
@jpoon
jpoon / install-hassio.sh
Created August 23, 2018 07:44
Install HASS on RPi
sudo -i
apt-get update
apt-get install -y apparmor-utils apt-transport-https avahi-daemon ca-certificates curl dbus jq network-manager socat software-properties-common
curl -sSL https://get.docker.com | sh
curl -sL "https://raw.githubusercontent.com/home-assistant/hassio-build/master/install/hassio_install" | bash -s -- -m armv71
#!/usr/bin/perl
#
# Author: Jason Poon
#
# Renames all files in the current directory to follow a similar format
# where the renamed filename will be of the form "$artist - [song title].$extension"
# By default the script will run in debug mode, outputting the new filename.
#
@jpoon
jpoon / tokens_TTS_en-US.xml
Created October 29, 2015 23:14
C:\Windows\SysWOW64\Speech_OneCore\Common\en-US\tokens_TTS_en-US.xml
<?xml version="1.0" encoding="utf-8"?>
<Tokens>
<Category name="Voices" categoryBase="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech_OneCore">
<Token name="MSTTS_V110_enUS_ZiraM">
<String name="" value="Microsoft Zira Mobile - English (United States)" />
<String name="LangDataPath" value="%windir%\Speech_OneCore\Engines\TTS\en-US\MSTTSLocenUS.dat" />
<String name="VoicePath" value="%windir%\Speech_OneCore\Engines\TTS\en-US\M1033Zira" />
<String name="409" value="Microsoft Zira Mobile - English (United States)" />
<String name="CLSID" value="{179F3D56-1B0B-42B2-A962-59B7EF59FE1B}" />
<Attribute name="Version" value="11.0" />
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens\MSTTS_V110_enUS_EvaM]
@="Microsoft Eva Mobile - English (United States)"
"409"="Microsoft Eva Mobile - English (United States)"
"CLSID"="{179F3D56-1B0B-42B2-A962-59B7EF59FE1B}"
"LangDataPath"=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,53,\
00,70,00,65,00,65,00,63,00,68,00,5f,00,4f,00,6e,00,65,00,43,00,6f,00,72,00,\
65,00,5c,00,45,00,6e,00,67,00,69,00,6e,00,65,00,73,00,5c,00,54,00,54,00,53,\
00,5c,00,65,00,6e,00,2d,00,55,00,53,00,5c,00,4d,00,53,00,54,00,54,00,53,00,\
@jpoon
jpoon / GitTemplate.v2.AzureDeploy.xaml
Last active August 29, 2015 14:27
v2 build template removing building of sln file.
<Activity mc:Ignorable="sads sap sap2010" x:Class="TfsBuild.Process" this:Process.BuildNumberFormat="[&quot;$(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.r)&quot;]" this:Process.CleanRepository="[True]" this:Process.AgentSettings="[New Microsoft.TeamFoundation.Build.Workflow.Activities.AgentSettings() With {.MaxWaitTime = New System.TimeSpan(4, 0, 0), .MaxExecutionTime = New System.TimeSpan(0, 0, 0), .TagComparison = Microsoft.TeamFoundation.Build.Workflow.Activities.TagComparison.MatchExactly }]" this:Process.Verbosity="[Microsoft.TeamFoundation.Build.Workflow.BuildVerbosity.Normal]" this:Process.SupportedReasons="Manual, IndividualCI, BatchedCI, Schedule, ScheduleForced, UserCreated" this:Process.BuildProcessVersion="11.0"
xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:mt="clr-namespace:Microsoft.TeamFoundation;assembly=Microsoft.TeamFoundation.Common"
xmlns:mtba="clr-namespace:Microsoft.TeamFoundation.Build.Ac
@jpoon
jpoon / GitTemplate.AzureDeploy.xaml
Created July 8, 2015 00:32
Build Definition - VSO + Kudu Deploy
<Activity mc:Ignorable="sads sap sap2010" x:Class="TfsBuild.Process" this:Process.TestSpec="[New Microsoft.TeamFoundation.Build.Workflow.Activities.AgileTestPlatformSpec(&quot;**\*test*.dll&quot;)]" this:Process.BuildNumberFormat="[&quot;$(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.r)&quot;]" this:Process.CleanRepository="[True]" this:Process.AgentSettings="[New Microsoft.TeamFoundation.Build.Workflow.Activities.AgentSettings() With {.MaxWaitTime = New System.TimeSpan(4, 0, 0), .MaxExecutionTime = New System.TimeSpan(0, 0, 0), .TagComparison = Microsoft.TeamFoundation.Build.Workflow.Activities.TagComparison.MatchExactly }]" this:Process.MSBuildPlatform="[Microsoft.TeamFoundation.Build.Workflow.Activities.ToolPlatform.Auto]" this:Process.MSBuildMultiProc="[True]" this:Process.Verbosity="[Microsoft.TeamFoundation.Build.Workflow.BuildVerbosity.Normal]" this:Process.SupportedReasons="Manual, IndividualCI, BatchedCI, Schedule, ScheduleForced, UserCreated" this:Process.BuildProcessVersion="11.0"
xmlns="http://sch