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 | |
# Check if jq is installed, if not, install it | |
if ! command -v jq &> /dev/null | |
then | |
echo "jq could not be found, installing..." | |
sudo apt-get install jq -y || sudo yum install jq -y || brew install jq | |
fi | |
# Check if pnpm is installed, if not, install it |
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 | |
# Let's ease Cloudflare Tunnel to local HTTP creation | |
# See also https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/tunnel-guide/local/ | |
# Check if cloudflared is installed | |
if ! command -v cloudflared &> /dev/null; then | |
echo "'cloudflared' is not installed. Installing it now..." | |
brew install cloudflare/cloudflare/cloudflared | |
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
# See original post at http://stackoverflow.com/questions/822404/how-to-set-up-cmake-to-build-an-app-for-the-iphone | |
cmake_minimum_required(VERSION 2.8) | |
cmake_policy(SET CMP0015 NEW) | |
cmake_policy(SET CMP0016 NEW) | |
project(test) | |
set(NAME test) |
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
sudo apt update | |
# sudo apt upgrade | |
sudo apt install -y libcurl4-openssl-dev libplist-dev libzip-dev openssl libssl-dev libusb-1.0-0-dev libreadline-dev build-essential git make automake libtool pkg-config libssl-dev libimobiledevice-dev libgpod-common libgpod-dev libcurl3-gnutls libcurl4 libcurl4-openssl-dev | |
git clone https://github.com/libimobiledevice/libirecovery | |
git clone https://github.com/libimobiledevice/idevicerestore | |
git clone https://github.com/libimobiledevice/usbmuxd | |
git clone https://github.com/libimobiledevice/libimobiledevice | |
git clone https://github.com/libimobiledevice/libusbmuxd | |
git clone https://github.com/libimobiledevice/libplist |
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
#cmakelists.txt | |
cmake_minimum_required ( VERSION 2.6 FATAL_ERROR ) | |
project ( sqlite3 C ) | |
SET( CMAKE_INSTALL_PREFIX "f:/doof" ) | |
set ( SOURCES sqlite3.c ) | |
set ( HEADERS sqlite3.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 | |
# install-llvm.sh | |
# Copyright (c) 2010 Ben Karel. All rights reserved. | |
# Use of this source code is governed by a BSD-style license that can be | |
# found in the LICENSE.txt file or at http://eschew.org/txt/bsd.txt | |
# This file was found at http://foster.googlecode.com/hg/scripts and updated by Richard Joseph, Nov 2012 | |
#The current LLVM and CLANG version can be found at http://llvm.org/releases/download.html |
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/python | |
#gypify.py for GYP (http://code.google.com/p/gyp) | |
#Found @ http://code.google.com/p/gyp/issues/detail?id=82 (Oct 1, 2009) | |
#Download original @ http://gyp.googlecode.com/issues/attachment?aid=1601673567448205219&name=gypify.py&token=qm9EhXN3mZxrS1pniUgsh5nG6Bs%3A1328804204976 | |
#Attached is a script that converts a set of existing Chromium-dependent | |
#.sln and .vcproj files to .gyp. It currently supports executable, shared | |
#library, static library and build event projects. The output .gyp file is | |
#created by: |
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/sh | |
# Assuming you have NodeJS tools installed... | |
tsprojname=new-ts-app | |
# Create a well-configured TypeScript project in direct './"$tsprojname"' | |
npx tsdx create --template basic "$tsprojname" | |
pushd ./"$tsprojname" |
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
def m = [a:b, c:d] | |
def l = [] | |
m.each() { k, v -> l << k } | |
Alternatively: | |
def m = new TreeMap([a:b, c:d]) | |
then use m.keySet().each() ... |
NewerOlder