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 <iostream> | |
| using namespace std; | |
| template <class T> | |
| class lolwut // a lolwut is a simple encapsulated array | |
| { | |
| public: | |
| lolwut() : data(NULL), size(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
| @ECHO OFF | |
| c: | |
| cd %APPDATA% | |
| cd ..\Local\Android\Sdk\platform-tools | |
| adb get-state |
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 | |
| cd %~dp0 | |
| ffmpeg.exe -i "%~1" -c:v copy -c:a aac -af "pan=stereo|FL=0.5*FC+0.707*FL+0.707*BL+0.5*LFE|FR=0.5*FC+0.707*FR+0.707*BR+0.5*LFE,volume=1.660156" -metadata:s:v:0 stereo_mode=1 "%~n1_half_2x1.mp4" | |
| echo Output file is: "%~n1_half_2x1.mp4" | |
| @PAUSE |
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
| <# | |
| .SYNOPSIS | |
| Downloads VirtualBoyGo source code | |
| .DESCRIPTION | |
| Gathers all dependencies and places them in the correct folders! | |
| .NOTES | |
| Author : Benjamin McLean [email protected] | |
| .LINK | |
| https://github.com/CidVonHighwind/VirtualBoyGo | |
| #> |
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
| [alias] | |
| apply-gitignore = !git ls-files -ci --exclude-standard -z | xargs -0r git rm --cached |
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
| [Unit] | |
| Description=This service spawns a Darkplaces Quake dedicated server. | |
| # Place this file in /lib/systemd/system | |
| # To enable this service to launch at boot time, enter in a terminal: systemctl enable darkplaces.service | |
| # To disable this service from launching at boot time, enter in a terminal: systemctl disable darkplaces.service | |
| # To check the state of all existing unit files, enter in a terminal: systemctl list-unit-files | |
| # I followed these instructions to install Darkplaces, except for the parts about starting the dedicated server on boot because those parts don't work anymore: https://ubuntuforums.org/showthread.php?t=2095900 | |
| # I based this service on https://github.com/cdev-tux/q3lite/blob/ba3f578b0dc93f2af645724fad283e7484b8d77e/misc/q3lite/pi/q3lite_ded.service | |
| [Service] |
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
| import com.badlogic.gdx.ApplicationAdapter; | |
| import com.badlogic.gdx.Gdx; | |
| import com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application; | |
| import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration; | |
| import com.badlogic.gdx.graphics.Color; | |
| import com.badlogic.gdx.graphics.GL20; | |
| import com.badlogic.gdx.graphics.Texture; | |
| import com.badlogic.gdx.graphics.g2d.BitmapFont; | |
| import com.badlogic.gdx.graphics.g2d.SpriteBatch; | |
| import com.badlogic.gdx.utils.viewport.FitViewport; |
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
| cd %~dp0 | |
| for %%g in ("%1") do set "Folder=%%~ng" | |
| mkdir %Folder% | |
| cd %Folder% | |
| git clone --mirror %1 | |
| cd %Folder%.git | |
| git config --unset core.bare | |
| git remote remove origin | |
| git remote add origin %2 | |
| git push -u origin --all |
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 | |
| cd %~dp0 | |
| PowerShell.exe -NoProfile -ExecutionPolicy Bypass -Command "& '%~dpn0.ps1' %1 %2 %3 %4 %5 %6 %7 %8" | |
| @PAUSE |
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
| param ($name) | |
| Set-PSDebug -Trace 2 | |
| git clone --mirror https://github.com/BenMcLean/$name.git | |
| java -jar bfg.jar --delete-folders dist "$name.git" | |
| cd ./$name.git | |
| git push | |
| cd.. | |
| Remove-Item -Path "$name.git" -Recurse -Force |