Skip to content

Instantly share code, notes, and snippets.

@him229
him229 / zillow_img.js
Created April 13, 2021 23:44
Zillow Listing Image Downloader
const script = document.createElement('script');
script.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js";
script.onload = () => {
$ = jQuery.noConflict();
// can't map since there isn't a list, so just push as we find more.
const imageList = [];
// while there is a next button
COMPOSER_MEMORY_LIMIT=-1 composer require beyondcode/laravel-websockets <<< y
@him229
him229 / cloudsql
Last active October 3, 2020 04:29
if [[ -z "$CLOUDSQL_SERVICE_ACCOUNT" ]]; then
echo "Must provide CLOUDSQL_SERVICE_ACCOUNT secret." 1>&2
sleep 5
exit 1
fi
if [[ -z "$CLOUDSQL_PORT" ]]; then
echo "Must provide CLOUDSQL_PORT secret." 1>&2
sleep 5
exit 1
fi
if [[ -z "$CLOUDSQL_SERVICE_ACCOUNT" ]]; then
echo "Must provide CLOUDSQL_SERVICE_ACCOUNT secret." 1>&2
exit 1
fi
mkdir gcloud
cd gcloud
curl https://sdk.cloud.google.com > install.sh
bash install.sh --disable-prompts > /dev/null 2>&1
source /root/google-cloud-sdk/completion.bash.inc
source /root/google-cloud-sdk/path.bash.inc
@him229
him229 / debug.sh
Last active October 21, 2020 18:23
ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa <<< y > /dev/null 2>&1
apt-get update > /dev/null 2>&1
apt-get install -y tmate > /dev/null 2>&1
apt-get install -y locales-all
cd /local
tmate -S /tmp/tmate.sock new-session -d
tmate -S /tmp/tmate.sock wait tmate-ready
echo " "
echo "======================================================================"
echo "You can get a shell to the Reploy instance through the web link or SSH"
@him229
him229 / index.html
Created February 23, 2016 19:33
html and css
HI SAHIL