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
package main | |
// License: Do what ever you want with this. | |
// Example use case | |
// audioengineConfig = miniaudio.engine_config_init() | |
// result: miniaudio.result = miniaudio.engine_init(&audioengineConfig, &audioEngine) | |
// assert(checkAudioResult(result), "Failed to initialize audio engine") | |
import "vendor:miniaudio" |
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
package main | |
import "vendor:miniaudio" | |
import "vendor:raylib" | |
// Example use case: | |
// result: miniaudio.result = miniaudio.engine_init(&audioengineConfig, &audioEngine) | |
// assert(checkAudioResult(result), "Failed to initialize audio engine") | |
checkAudioResult :: proc(result: miniaudio.result) -> bool { |
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
const MoneyFormat = '$0.0a'; | |
const TimeFormat = '00:00:00'; | |
/** @param {import(".").NS } ns */ | |
export async function main(ns) { | |
/* | |
ns.hacknet-auto.script for Bitburner v0.47.2 | |
Winners don't use copyright | |
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 | |
# Licence: MIT or use how you like | |
# Description: | |
# This script is used to get a list of system packages that can be updated and save them to a Custom Field. | |
# It also gets a list of snaps and flatpaks that can be updated and saves them to a Custom Field. | |
# Create the following Script Variables: | |
# | |
# packagesCustomField as a text field |
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
#Requires -Version 7 | |
# Current API documentation | |
# http://doc.divoom-gz.com/web/#/12?page_id=143 | |
function Invoke-PlayGif { | |
[CmdletBinding()] | |
param( | |
[Parameter()] | |
[string] |
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
function Get-ProgramBit { | |
[CmdletBinding()] | |
param ([string]$Path) | |
process { | |
if (-not $(Test-Path -Path $Path -ErrorAction SilentlyContinue)) { | |
Write-Error "Invalid Path" | |
return | |
} | |
$re32 = [regex]::new('PE\W\WL') | |
Get-Content -Path $Path -ReadCount 1 | ForEach-Object { |
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
#Requires -Version 5.1 -RunAsAdministrator | |
function Remove-XHunter1 { | |
param () | |
Stop-Service xhunter1 -Force -NoWait -Confirm:$false | |
Remove-Item "HKLM:\SYSTEM\CurrentControlSet\Services\xhunter1" -ErrorAction SilentlyContinue | |
Remove-Item -Path "C:\Windows\xhunter1.sys" -Force -ErrorAction SilentlyContinue | |
} | |
function Test-XHunter1 { |
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
<%# | |
kind: provision | |
name: Preseed default | |
model: ProvisioningTemplate | |
oses: | |
- Debian | |
- Ubuntu | |
test_on: | |
- debian4dhcp | |
- ubuntu4dhcp |
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 | |
# Check if user is root | |
if [ "$(id -u)" -ne 0 ]; then | |
echo "Please run as root" | |
exit | |
fi | |
Use_Package_Manager=0 | |
Help_Message=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
$ErrorActionPreference = 'SilentlyContinue' | |
#Region Settings | |
# IP address of our server | |
$IpAddress = "127.0.0.1" | |
# The public key for our server | |
$PublicKeyString = "12345678" | |
# The temporary folder where we will store and run the installer | |
$TempFolder = "C:\Temp\" | |
#EndRegion Settings |
NewerOlder