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
-- OpenInTerminal.applescript | |
-- ForkLift | |
-- Created by ONO | |
tell application "Terminal" | |
activate | |
set windowCount to (count of the windows) |
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
// See: https://apple.stackexchange.com/questions/328329/is-there-a-way-via-the-command-line-to-cause-icloud-files-to-download | |
import Foundation | |
func main() { | |
let fm = FileManager.default | |
for path in CommandLine.arguments[1...] { | |
let url = NSURL.fileURL(withPath: path) | |
guard fm.fileExists(atPath: url.path) else { |
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
// | |
// Simple service that whitelists nvcontainer process responsible for XBOX controller emulation for NVIDIA Shield Controller | |
// | |
// Copyright (c) 2020 Adam Strzelecki | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is |
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
// just build with: cl Win32DirectWrite.cpp | |
#include <stdio.h> | |
#include <stdarg.h> | |
#include <math.h> | |
#include <windows.h> | |
#include <windowsx.h> | |
#include <commctrl.h> | |
#include <d2d1.h> |
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 | |
# | |
# Builds GD32V riscv-gnu-toolchain on macOS | |
# | |
# Author: Adam Strzelecki <nanoant@users.noreply.github.com> | |
# Released under MIT license. | |
# | |
# Assumes HomeBrew is installed and following packages too: | |
# brew install python3 gawk gnu-sed gmp mpfr libmpc isl zlib expat | |
# |
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 python | |
# | |
# Copyright (c) 2023 Adam Strzelecki | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
OlderNewer