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 -li | |
PNAME="$1" | |
PVER="$2" | |
JARNAME="${3-$PNAME}" | |
mkdir -p ./EXT01/ | |
cd ./EXT01/ || exit | |
unzip ../"${PNAME}"-"${PVER}".zip | |
rm -f ../"${PNAME}"-"${PVER}".zip | |
mv ./"${PNAME}"/lib/"${JARNAME}"-"${PVER}".jar ./"${JARNAME}"-"${PVER}".zip |
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 | |
# Iterate over each subfolder in the main directory | |
find . -type d -mindepth 1 -maxdepth 1 | while read -r subfolder; do | |
# Remove the leading './' from the subfolder path | |
subfolder_name=$(basename "$subfolder") | |
echo "Processing subfolder: $subfolder_name full path: $subfolder" | |
# Iterate over each image file in the subfolder | |
find "$subfolder" -type f \( -name '*.png' -o -name '*.jpg' -o -name '*.jpeg' \) | while read -r image; do |
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
from PIL import Image | |
import struct | |
def process_image(input_file, output_file, max_size=(250, 250)): | |
# Open the image using PIL | |
with Image.open(input_file) as img: | |
# Scale the image down to fit within max_size while maintaining aspect ratio | |
img.thumbnail(max_size) | |
# Ensure the image is in RGBA mode |
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
diff --git a/node_modules/react-native/scripts/react_native_pods.rb b/node_modules/react-native/scripts/react_native_pods.rb | |
index db9a34a..e95b882 100644 | |
--- a/node_modules/react-native/scripts/react_native_pods.rb | |
+++ b/node_modules/react-native/scripts/react_native_pods.rb | |
@@ -165,7 +165,7 @@ def use_react_native_codegen!(spec, options={}) | |
return if ENV['DISABLE_CODEGEN'] == '1' | |
# The path to react-native (e.g. react_native_path) | |
- prefix = options[:path] ||= File.join(__dir__, "..") | |
+ prefix = options[:path] ||= "../../node_modules/react-native" |
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
## Terminal color ## | |
export PS1="\[\033[36m\]\u\[\033[m\]:\[\033[33;1m\]\W\[\033[m\] \$ " | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad |
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
subprojects { | |
afterEvaluate {project -> | |
if (project.hasProperty("android")) { | |
android { | |
compileSdkVersion 25 | |
buildToolsVersion '27.0.0' | |
} | |
} | |
} | |
} |
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 | |
cpu=$(</sys/class/thermal/thermal_zone0/temp) | |
echo "$(date) @ $(hostname)" | |
echo "-------------------------------------------" | |
echo "GPU => $(/opt/vc/bin/vcgencmd measure_temp)" | |
echo "CPU => $((cpu/1000))'C" |