Skip to content

Instantly share code, notes, and snippets.

@chienpm304
chienpm304 / clear_cocoapods_cache.sh
Created September 11, 2024 14:58
🚀 Automating CocoaPods Cache Cleanup with Bash 🚀
#!/bin/bash
# Function to print colored messages
print_message() {
local color="$1"
local message="$2"
echo -e "${color}${message}\033[0m"
}
# Define colors
@chienpm304
chienpm304 / vn_stock.gs
Last active August 6, 2024 04:21
Simple script to get VN stock price
function stockPrice(symbol) {
var now = Math.floor(Date.now() / 1000);
var threeDaysAgo = now - (3 * 24 * 60 * 60);
var url = 'https://services.entrade.com.vn/chart-api/v2/ohlcs/stock?from=' + threeDaysAgo + '&to=' + now + '&symbol=' + symbol + '&resolution=1D';
Logger.log(url)
var headers = {
'accept': 'application/json, text/plain, */*',
'accept-language': 'en-US,en;q=0.9,vi-VN;q=0.8,vi;q=0.7',
@chienpm304
chienpm304 / bashrc
Last active January 29, 2021 10:19
#--------------------------
# Generate folder and file to take note every time I read a article
#--------------------------
alias blog='cd /Users/foody/Documents/blogs;bash ./script.sh $1'
#--------------------------
# Simulate notification push
#--------------------------
alias pushnoti='xcrun simctl push 187777A4-9449-45F4-924D-0335854E8996'
@chienpm304
chienpm304 / README.md
Created May 7, 2020 02:46 — forked from lopspower/README.md
All Android Directory Path

All Android Directory Path

Twitter

1) System directories

⚠️ We can't write to these folers

Method Result