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 | |
# Function to prompt for a directory name if not provided | |
prompt_directory_name() { | |
read -p "Enter the project directory name: " dir_name | |
if [ -z "$dir_name" ]; then | |
echo "Directory name cannot be empty. Please try again." | |
prompt_directory_name | |
fi | |
} |
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
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
#!/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
/* | |
* Slightly modified from | |
* http://www.java-gaming.org/index.php?topic=33022.0 and the | |
* pastebin link http://pastebin.com/WMFBg3zQ | |
* | |
* cache:http://www2.cs.uidaho.edu/~jeffery/courses/328/newPong.java <=** | |
*/ | |
package com.mygdx.game; | |
import com.badlogic.gdx.ApplicationListener; |
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Current TS File", | |
"type": "node", | |
"request": "launch", | |
"args": ["${file}"], | |
"runtimeArgs": ["--nolazy", "-r", "ts-node/register"], | |
"sourceMaps": true, |
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 | |
extensionList=( | |
formulahendry.auto-close-tag | |
formulahendry.auto-complete-tag | |
formulahendry.auto-rename-tag | |
CoenraadS.bracket-pair-colorizer | |
wmaurer.change-case | |
Shan.code-settings-sync | |
streetsidesoftware.code-spell-checker |
Bare essentials Android SDK installation, forked from: https://gist.github.com/srmds/55532e8782fb5d1f7383a78dee393ebd which itself was based on the original at https://gist.github.com/patrickhammond/4ddbe49a67e5eb1b9c03 . Some suggestions regarding HAXM etc. were also added.
Prerequisites:
Make sure the doctor is happy (do what it tells you):
NewerOlder