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
set JAVA_HOME=C:\Develop\zulu8.19.0.1-jdk8.0.112-win_x64 | |
set PATH=%JAVA_HOME%\bin;%PATH% | |
set JDK_HOME=%JAVA_HOME% | |
set JRE_HOME=%JAVA_HOME%\jre | |
set CLASSPATH=.;%JDK_HOME%\lib;%JRE_HOME%\lib | |
set JAVA_TOOL_OPTIONS=-Dfile.encoding="UTF-8" | |
set javamem="-d64 -Xms256m -Xmx512m" | |
java %javamem% -jar ./pcgen.jar |
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
#requires -version 3.0 | |
#requires -module Hyper-V | |
<# | |
.SYNOPSIS | |
Export virtual machines | |
.DESCRIPTION | |
This utility will export virtual machines to a target destination. By default | |
it will create a folder using the format: |
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
#!/bin/sh | |
# run from sudo | |
mkdir /tmp/gocryptfs-test-parent | |
truncate --size 500m gocrypt_ext2.lo | |
losetup /dev/loop0 gocrypt_ext2.lo | |
mkfs.ext2 /dev/loop0 | |
mount /dev/loop0 /tmp/gocryptfs-test-parent | |
chown ${SUDO_UID}:${SUDO_GID} /tmp/gocryptfs-test-parent/. | |
chmod 1777 /tmp/gocryptfs-test-parent/. |
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
guard-%: GUARD | |
@ if [ -z '${${*}}' ]; then echo 'Environment variable $* not set.' && exit 1; fi | |
.PHONY: GUARD | |
GUARD: |
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
\documentclass{article} | |
\usepackage[bookmarks=true]{hyperref} | |
\hypersetup{pdfencoding=auto, | |
pdfauthor={SomeAuthor} | |
} | |
\begin{document} | |
\section{Test 1} | |
text 1 |
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
@ECHO OFF | |
REM -- Automates cygwin installation | |
SETLOCAL | |
REM -- Change to the directory of the executing batch file | |
CD %~dp0 | |
REM -- Configure our paths | |
SET SITE=http://mirrors.kernel.org/sourceware/cygwin/ |
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
/* | |
* maxim_1wire_crc8.c | |
* | |
* Demonstrate calculation of CRC8/MAXIM aka DOW-CRC in a way compatible with | |
* Maxim 1-wire (Dallas iButton). | |
* | |
* Original portions copyright (C) June 3, 2016, Andrew Domaszek. All rights reserved. | |
* Except as noted, this work is licensed under the Modified BSD License (BSD-new). | |
*/ |
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
/* Demonstrate operator|() overloading for enum type. | |
If you want to hide the fact that your enum's numerical encoding is not actually bit flaggable. | |
Please don't hurt me, I promise you will never see this in production code from me. | |
~~aed.20160429 | |
Runnable version: | |
http://coliru.stacked-crooked.com/a/bfedb189f1929447 | |
*/ |
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
#include "stdio.h" | |
// Only for extremely evil people | |
#undef NULL | |
#define NULL 7 | |
int main() | |
{ | |
printf("%d\n", NULL); | |
return 0; |
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
#!/usr/bin/lua | |
--[[ | |
Copyright (C) February 10, 2016, Andrew Domaszek | |
(MIT License) | |
Wrote this lua demonstrator for Joe | |
Show some basics on how to do index-lookup-based function indirection instead | |
of an if-elseif cascade and keep a table of global state. I suspect the keystate | |
variable could be declared global instead of manually set in _G, but I've only done |