For building and running akpw/mktxp as a container.
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
# Check if the script is running with administrative privileges | |
if (-not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { | |
Write-Output "Script is not running as Administrator. Attempting to restart with elevated privileges..." | |
# Relaunch the script with the RunAs verb to prompt for elevation | |
Start-Process -FilePath "powershell.exe" -ArgumentList "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs | |
exit | |
} | |
# Install PowerShell 7 | |
Write-Output "Installing PowerShell 7..." |
I hereby claim:
- I am dmnc-net on github.
- I am dmnc (https://keybase.io/dmnc) on keybase.
- I have a public key ASBbRsacIemfZ0wC0itFVq1ZnI7RXoxRUoqxAveA80zCswo
To claim this, I am signing this object:
Code below is modified version of monitor-volume written by Andrew Dupont.
- rpi.gpio (python3-gpio)
- python3-queue
- python3-persist-queue ? (TODO)
I hereby claim:
- I am dmnc-net on github.
- I am dmnc (https://keybase.io/dmnc) on keybase.
- I have a public key whose fingerprint is 0ABE 9519 2B20 E3FF 8A7A 668F 603F 17A3 8E99 B62D
To claim this, I am signing this object:
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 | |
basedir="/opt/minecraft/bukkit" | |
RB="http://dl.bukkit.org/downloads/craftbukkit/get/latest-rb/craftbukkit.jar" | |
BETA="http://dl.bukkit.org/downloads/craftbukkit/get/latest-beta/craftbukkit.jar" | |
DEV="http://dl.bukkit.org/downloads/craftbukkit/get/latest-dev/craftbukkit.jar" | |
# Choose desired version: RB, BETA, DEV | |
DOWNLOAD=$BETA | |
##################################################### |
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
<?php | |
/* | |
this is .htaccess file: | |
---------------------- | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^ index.php [QSA,L] | |
*/ | |
ini_set('error_reporting', E_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
#!/usr/bin/python | |
import sys | |
import csv | |
rf = open(sys.argv[1]) #input file handle | |
wf = open(sys.argv[2],'w') #output file handle | |
writer = csv.writer(wf) | |
for row in rf.readlines(): |