This file contains hidden or 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
private static void AutoLaunchApplication(IEnumerable<string> commandLineOptions) | |
{ | |
const string java6Location = @"C:\Program Files\Java\jre6\bin\javaw.exe"; | |
const string java7Location = @"C:\Program Files\Java\jre7\bin\javaw.exe"; | |
var javaLocation = File.Exists(java7Location) ? java7Location : java6Location; | |
// check for java - eww | |
if (!File.Exists(javaLocation)) // default java location for both 32/64 bit | |
{ |
This file contains hidden or 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
public static class NativeMethods | |
{ | |
public static IntPtr GetAndSetWindowFullScreenWindowed(string windowTitle) | |
{ | |
var minecraftWindow = FindWindowEx(IntPtr.Zero, IntPtr.Zero, null, windowTitle); | |
if (minecraftWindow == IntPtr.Zero) | |
{ | |
return IntPtr.Zero; | |
} |
This file contains hidden or 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; | |
using System.IO; | |
using NGit; | |
using NGit.Api; | |
// USES NuGet package ngit2 for Git. | |
namespace GitTest | |
{ | |
class Program |
This file contains hidden or 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
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
using (var system = ActorSystem.Create("MyAkka")) | |
{ | |
IActorRef tester = system.ActorOf<TestActor>("Test"); | |
tester.Tell("Hello"); | |
Console.ReadLine(); |
This file contains hidden or 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
console.log('This is how wars begin'); | |
var checker = require('license-checker'); | |
checker.init({ | |
start: './' | |
}, function(json) { | |
Object.keys(json).forEach(function(license) { | |
console.log('%s License: %s', license, json[license].licenses); | |
}); |
This file contains hidden or 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
Server: | |
fast leaf decay | |
https://minecraft.curseforge.com/projects/fastleafdecay | |
AromaCore/Backup | |
https://minecraft.curseforge.com/projects/aromabackup | |
Simple harvest | |
https://minecraft.curseforge.com/projects/simpleharvest |
This file contains hidden or 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
awk '{printf("%.1f°F\n",(($1*1.8)/1e3)+32)}' /sys/class/thermal/thermal_zone0/temp |
This file contains hidden or 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
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) | |
docker rmi $(docker images -a -q) --force | |
docker volume prune -f | |
docker network prune -f |
This file contains hidden or 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
docker-compose up -d && docker-compose scale node=4 && docker-compose up -d |
This file contains hidden or 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
docker-compose up -d | |
docker-compose scale node=3 | |
docker-compose up -d | |
for /f %%i in ('docker ps -f "Name=nginx_instance_name_from_compose" -q') do set CONTAINER_ID=%%i | |
echo FOUND CONTAINER ID %CONTAINER_ID% | |
docker exec %CONTAINER_ID% nginx -s reload |
OlderNewer