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
### Global Varaibles ### | |
$global:windowsTopMost = $false | |
$global:returnCode = 0 | |
$global:privateKeyPath = $args[0] | |
$global:passphraseEnvName = $args[1] | |
$global:sshJob = $null | |
$global:sshPassEnvVarName = $null | |
### Main Functions ### |
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
<html> | |
<head> | |
<script type="text/javascript"> | |
var searchTerms = "forest city night japan"; // <- Insert your image style preference | |
var pexelsAPIToken = ""; // <- Insert your Pexel API token here | |
var url = | |
"https://api.pexels.com/v1/search?query=" + searchTerms.replace(/\s+/g, '+') + | |
"&min_width=" + window.innerWidth + "&min_height=" + window.innerHeight + "&per_page=1&page="; | |
</script> | |
<style> |
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
Dim objShell, objFSO, objFile, strArguments | |
Set objShell = WScript.CreateObject("WScript.shell") | |
Set objFSO = CreateObject("Scripting.FileSystemObject") | |
Set objFile = objFSO.GetFile(WScript.ScriptFullName) | |
For Each strArgument in WScript.Arguments | |
strArguments = strArguments & " " & strArgument | |
Next | |
objShell.Run """" & objFSO.GetParentFolderName(objFile) & "\" & objFSO.GetBaseName(WScript.ScriptFullName) & ".exe""" & strArguments, 0, False |
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
var fs = require('fs'); | |
filename = process.argv[2]; | |
var data = fs.readFileSync(filename); | |
var arr = data.toString().split('\n'); | |
var returnString = ''; | |
returnString = 'const vec3 palette[' + (arr.length - 1) + '] = vec3[]( '; | |
for(var i in arr){ | |
if(arr[i].length > 5){ | |
if(i > 0){ |
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 bash | |
function usage() { | |
echo "Usage: $(basename $0) TARGET_ARCH TARGET_OS [SCONSOPTS]" | |
echo "Helper to cross-compile Godot game engine [https://godotengine.org/] on other Linux architectures.". | |
echo | |
echo "The TARGET_ARCH is the target architecture/device to compile to." | |
echo " List of available TARGET_ARCH" | |
echo " rpi2" | |
echo " rpi3" |
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
:: Change RELATIVE_PATH_TO_EXECUTABLE to the relative path of this .cmd file | |
:: Change the name of the file to the same as the executable one and keep the .cmd extension | |
@ECHO OFF | |
"%~dp0\RELATIVE_PATH_TO_EXECUTABLE\%~n0.exe" %* |
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
#! /bin/bash | |
########## | |
# Config # | |
########## | |
TMP_SSL_CERTIFICATE_NAME=$(basename "($(dirname "$(realpath "$0")")") | |
TMP_SSL_CERTIFICAT_RSA_BITS=3072 | |
TMP_SSL_CERTIFICAT_GENERATE_SELFSIGNED=1 | |
TMP_SSL_CERTIFICAT_SELFSIGNED_VALID_DAYS=1095 | |
######### |
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
var sExecutable = 'putty.exe'; | |
var oShell = WScript.CreateObject("WScript.Shell"); | |
var oFSO = WScript.CreateObject("Scripting.FileSystemObject"); | |
var oFile = oFSO.GetFile(WScript.ScriptFullName); | |
var sExecutableFullPath = '"' + oFSO.GetParentFolderName(oFile) + "\\" + sExecutable + '"'; | |
if(WScript.Arguments.length > 0){ | |
var sArg = WScript.Arguments(0); | |
var aCmd = []; | |
var oCmd = { | |
'executable': sExecutableFullPath, |
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
# TODO: Verify to link statically some dependencies usually not available in a default instllation of RHEL/CentOS (ex.: libxcb) | |
################### | |
## Configuration ## | |
################### | |
FFMPEG_CPU_COUNT=$(nproc) | |
FFMPEG_ENABLE="--enable-gpl --enable-version3 --enable-nonfree --enable-runtime-cpudetect --enable-gray --enable-openssl --enable-libfreetype" | |
FFMPEG_HOME=/usr/local/src/ffmpeg |
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
# TODO: Verify to link statically some dependencies usually not available in a default instllation of RHEL/CentOS (ex.: libxcb) | |
################### | |
## Configuration ## | |
################### | |
FFMPEG_CPU_COUNT=$(nproc) | |
FFMPEG_ENABLE="--enable-gpl --enable-version3 --enable-nonfree --enable-runtime-cpudetect --enable-gray --enable-openssl --enable-libfreetype" | |
FFMPEG_HOME=/usr/local/src/ffmpeg |
NewerOlder