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
cmake_minimum_required(VERSION 3.14) | |
project(cpputest-via-apt-get | |
VERSION 1 | |
LANGUAGES CXX) | |
find_package(CppUTest 4 REQUIRED) |
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
using System.Linq; | |
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.AspNetCore.Mvc.ApplicationModels; | |
using Microsoft.AspNetCore.Mvc.Routing; | |
namespace MyWebApi.Extensions | |
{ | |
public static class MvcOptionsExtensions | |
{ | |
public static void UseGeneralRoutePrefix(this MvcOptions opts, IRouteTemplateProvider routeAttribute) |
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
#!/usr/bin/env sh | |
SERVER="9091 --auth user:pass" | |
TORRENTLIST=`transmission-remote $SERVER --list | grep 100% | sed "s/^ *//g" | cut -w -f1` | |
for TORRENTID in $TORRENTLIST | |
do | |
echo "Processing $TORRENTID" | |
TORRENT_INFO=`transmission-remote $SERVER --torrent $TORRENTID --info` |
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 | |
setlocal | |
:: Check if JAVA_HOME is already defined | |
IF DEFINED JAVA_HOME (exit /b 0) | |
:: Get the JDK version from the registry | |
set KEY="HKLM\SOFTWARE\JavaSoft\Java Development Kit" | |
set VALUE=CurrentVersion |
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
# | |
# General options | |
# | |
# The type of line endings | |
newlines = crlf # auto/lf/crlf/cr | |
# The original size of tabs in the input | |
input_tab_size = 3 # number |
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
import urllib2 | |
import re | |
import collections | |
from pushbullet.pushbullet import PushBullet | |
from time import sleep | |
base_url = 'http://192.168.1.1/' | |
pushbullet_key = 'YOUR_KEY' | |
# Set-up basic authentication |
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
# NXP LPC1549 (based on lpc1xxx.cfg) | |
set _CHIPNAME lpc1549 | |
set _WORKAREASIZE 0x9000 | |
set _CHIPSERIES lpc1500 | |
set _BANKSIZE 0x40000 | |
source [find target/swj-dp.tcl] | |
if { [info exists CCLK] } { | |
# Allow user override |
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
#!/usr/bin/env | |
# Still a work in progress... | |
sudo apt-get remove -y --auto-remove --purge libx11-* | |
sudo apt-get autoremove -y --purge | |
# Run raspi config to disable boot via GUI | |
sudo raspi-config |
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
python < <(curl -s https://bootstrap.pypa.io/get-pip.py) |
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
#usage "en: <b>Calculate the price of a dual-layer PCB if you order them at OSH Park.</b>" | |
"<p>Usage: run oshprice</p>" | |
"<p>Author: <author>Arno Moonen <[email protected]></author><br />" | |
"Version: <em>201405042026</em></p>" | |
// THIS PROGRAM IS PROVIDED AS IS AND WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED | |
void main() { | |
if(!board) { | |
// No board |
NewerOlder