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 Foundation | |
import SwiftUI | |
import AppKit | |
import UniformTypeIdentifiers | |
/// QEMULauncher: Reads QEMU options from a plist file and launches QEMU with those options | |
/// | |
/// This application is designed to be placed in App.app/Contents/MacOS/Launcher and will | |
/// read options from App.app/Contents/Resources/options.plist to launch QEMU. | |
class QEMULauncher: ObservableObject { |
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
# Setup nodejs | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash | |
source $HOME/.bashrc | |
nvm install 23 | |
# Setup prompt | |
git clone https://github.com/nyteshade/niceps1 | |
cd niceps1/source | |
sudo gcc -o /usr/local/bin/getCIP getcip.c | |
cd .. |
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
/** | |
* Working with the ECMAScript {@link Intl} classes can be a trying and | |
* exhausting experience. Especially when working with currency strings | |
* for different locales. This class is designed to provide bi-directional | |
* formatting and detection of currency values in your code and leverages | |
* the built-in capabilities of most modern backend and browser based | |
* JavaScript environments. | |
* | |
* @example | |
* // Shorthand formatting to common combos like USD for 'en-US' |
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
function fat() { | |
local output="${1}" | |
local files=($(printf "%s\n" "${2}")) | |
local GCC_ARGS=(${3:-$(printf "%s\n" "-std=c99 -Wall")}) | |
if [ ${#} -eq 0 ]; then | |
local argfiles='"<\x1b[93mfile1\x1b[39m> <\x1b[93mfileN\x1b[39m>"' | |
local argopts='"<\x1b[93mgcc-opt1\x1b[39m> <\x1b[93mgcc-optN\x1b[39m>"' | |
local argout="<\x1b[93moutput-file\x1b[39m>" |
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> | |
#include <stdlib.h> | |
#include <time.h> | |
#include <string.h> | |
#include <math.h> | |
#include <ctype.h> | |
int wal_stricmp(const char *a, const char *b) { | |
int ca, cb; | |
do { |
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
/** | |
* Simple cli command that prints out milliseconds since epoch | |
* | |
* If present within $PATH when scriptsort is run, it can be used to | |
* calculate the time taken to execute a `source /path/to/script` | |
* execution. | |
*/ | |
#include <stdio.h> | |
#include <time.h> |
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/zsh | |
# A functon that shows users how to use the script. It describes | |
# and offers some help text that appears when invoked without | |
# parameters. | |
showUsage() { | |
local tool="\x1b[1;35munpkg\x1b[22;39m" | |
printf "${tool} <path-to-package.pkg> <destination-directory>\n\n" | |
printf "${tool} will attempt to unpackage the \x1b[1m.pkg\x1b[0m file provided,\n" | |
printf "however, if certain expectations are not met, it will stop and inform\n" |
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
-- Step 1: Create the table without generated columns | |
create or replace table dates ( | |
timestamp_column TIMESTAMP_NTZ PRIMARY KEY | |
); | |
-- Create a join table | |
create or replace table memorable_dates ( | |
id integer autoincrement, | |
date timestamp_ntz, |
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 | |
function volInfo() { | |
# Flags for verbose output | |
local verbose=false | |
# Process optional parameters | |
while (( "$#" )); do | |
case "$1" in | |
--show-name | --verbose | -v | -s) |
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
{ | |
"apc.electron": { | |
"frame": false, | |
"trafficLightPosition": {"x": 7, "y": 5}, | |
"titleBarStyle": "hidden", | |
}, | |
"apc.listRow": { | |
"fontSize": 18 | |
}, |
NewerOlder