Skip to content

Instantly share code, notes, and snippets.

IL_0000: ldloca.s 00
IL_0002: initobj System.Nullable<System.Int32>
IL_0008: ldloc.0
IL_0009: stloc.0
IL_000A: ldloca.s 00
IL_000C: call System.Nullable<System.Int32>.get_HasValue
IL_0011: brtrue.s IL_0016
IL_0013: ldnull
IL_0014: br.s IL_0022
IL_0016: ldloca.s 00
void Main()
{
var makeOutput = @"ASM startup file ...Done.
.\make.exe : In file included from ../../../dist/win/bin/ARMToolchain/Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_rc
c.h:45:0,
At line:1 char:1
+ .\make.exe all 2>&1 > abc.txt
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (In file include...hal_rcc.h:45:0,:String) [], RemoteException
#!/bin/bash
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/ubuntu stable-xenial main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt-get update
sudo apt-get install -y mono-devel
RIDER_VERSION="2017.3.1"
RIDER_WEBNAME="JetBrains.Rider"
RIDER_FSNAME="JetBrains\ Rider"
RIDER_FN="$RIDER_WEBNAME-$RIDER_VERSION"
RIDER_DIR="$RIDER_FSNAME-$RIDER_VERSION"
@biggyspender
biggyspender / install-redis.sh
Last active October 14, 2021 15:18
install redis
#!/bin/bash
sudo apt update
sudo apt -y full-upgrade
sudo apt install -y build-essential tcl
curl http://download.redis.io/redis-stable.tar.gz | tar xzvf -
pushd redis-stable
make
make test
popd
sudo mkdir -p /usr/lib/redis
@biggyspender
biggyspender / MobyLinux.ps1
Last active September 28, 2020 23:36
Set DockerNAT switch to be a private network
# See comment lines prefixed with ADDED
# It might be necessary to delete the existing DockerNAT switch in hyper-v manager
<#
.SYNOPSIS
Manages a MobyLinux VM to run Linux Docker on Hyper-V
.DESCRIPTION
Creates/Destroys/Starts/Stops A MobyLinux VM to run Docker on Hyper-V
.PARAMETER VmName
@biggyspender
biggyspender / autocompleteDemo.sql
Created May 2, 2017 22:07
using indexed views for turbocharged LIKE '%cat%' type queries in t-sql
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (
SELECT *
FROM sys.databases
WHERE NAME = 'autocompletetests'
using(StreamReader r = new StreamReader("in.csv"))
using(StreamWriter w1 = new StreamWriter("out-1.csv"))
using(StreamWriter w2 = new StreamWriter("out-2.csv"))
using(StreamWriter w3 = new StreamWriter("out-3.csv"))
using(StreamWriter w4 = new StreamWriter("out-4.csv"))
{
//do stuff
}
@biggyspender
biggyspender / a simple ko popup component.markdown
Created March 15, 2016 11:16
a simple ko popup component
@biggyspender
biggyspender / instructions.txt
Last active October 22, 2018 13:33
install mopidy/mopify/moped with libspotify on Raspberry Pi 2 fresh Raspbian image
sudo apt-get update
sudo apt-get upgrade -y
mkdir ~/mopidytemp
cd ~/mopidytemp/
wget https://apt.mopidy.com/mopidy.gpg
sudo apt-key add mopidy.gpg
sudo wget -q -O /etc/apt/sources.list.d/mopidy.list https://apt.mopidy.com/mopidy.list
sudo apt-get update
sudo apt-get install python-dev
sudo apt-get install python-pip
@biggyspender
biggyspender / gist:3a534cffafef37f8231e
Last active August 29, 2015 14:16
Set apppool recycle defaults in for Azure IIS web worker role
if exist %windir%\system32\inetsrv\appcmd.exe %windir%\system32\inetsrv\appcmd set config -section:applicationPools -applicationPoolDefaults.processModel.idleTimeout:00:00:00
if exist %windir%\system32\inetsrv\appcmd.exe %windir%\system32\inetsrv\appcmd set config -section:applicationPools -applicationPoolDefaults.recycling.periodicRestart.time:00:00:00
if exist %windir%\system32\inetsrv\appcmd.exe %windir%\system32\inetsrv\appcmd set config -section:system.applicationHost/applicationPools /+applicationPoolDefaults.recycling.periodicRestart.schedule.[value='04:00:00'] /commit:apphost