View uncrustify.cfg
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 |
View set_java_home.bat
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 |
View transmission-autoremove.sh
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` |
View MvcOptionsExtensions.cs
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) |
OlderNewer