# prerequisites
sudo apt update
sudo apt install unzip wget openjdk-21-jdk-headless
# https://developer.android.com/studio#cmdline-tools
CMDTOOLS_ZIP=commandlinetools-linux-13114758_latest.zip
https://www.rebelpeon.com/bitwarden-ssh-agent-on-wsl2/
sudo winget install --id albertony.npiperelay
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/env ruby | |
require 'openssl' | |
def print_usage | |
puts "Usage: #{File.basename($0)} [-s|-S|-C component] <serial_number> [keychain]" | |
puts "Options:" | |
puts " -s Show only certificate subject (single line)" | |
puts " -S Show only certificate subject (one parameter per line)" | |
puts " -C component Show only specified component (e.g., -C CN for Common Name)" |
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/env ruby | |
require 'openssl' | |
def print_usage | |
puts "Usage: #{File.basename($0)} <provisioning_profile_path>" | |
puts "Example: #{File.basename($0)} /path/to/profile.mobileprovision" | |
exit 1 | |
end |
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
#ifndef WINRT_FORMATTERS_H | |
#define WINRT_FORMATTERS_H | |
#include <windows.h> | |
#include <winrt/base.h> | |
#include <string> | |
#include <format> |
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
const fs = require('fs').promises; | |
const path = require('path'); | |
const cheerio = require('cheerio'); | |
const sharp = require('sharp'); | |
const zlib = require('zlib'); | |
const util = require('util'); | |
const gzip = util.promisify(zlib.gzip); | |
async function optimizeAndConvertToDataURI(imagePath, baseDir, useLossless) { |
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
# Need to enable scripting before executing the file | |
# Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force | |
cd ~ | |
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression | |
scoop install git | |
scoop bucket add java |
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 'dart:ffi'; | |
import 'dart:io'; | |
import 'package:ffi/ffi.dart'; | |
import 'package:unorm_dart/unorm_dart.dart' as unorm_dart; // fallback | |
String _getLibicuModuleName() { | |
if (Platform.isAndroid) { | |
return 'libicu.so'; | |
} else if (Platform.isWindows) { |
NOTE: WORK IN PROGRESS
This document assumes Windows Insider Preview Dev.
Installing Ubuntu 22.04.1 LTS from Microsoft Store.
NewerOlder