Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am amircloner on github.
* I am amircloner (https://keybase.io/amircloner) on keybase.
* I have a public key ASBl94KfLTsLbvsCetRDDJreK0ikhs9aW_ks4Hs8FUt1kAo
To claim this, I am signing this object:
<textarea id="full-featured"><p style="text-align: center; font-size: 15px;"><img title="TinyMCE Logo" src="//www.tiny.cloud/images/glyph-tinymce@2x.png" alt="TinyMCE Logo" width="110" height="97" />
</p>
<h2 style="text-align: center;">Welcome to the TinyMCE Cloud demo!</h2>
<h5 style="text-align: center;">Note, this includes some "enterprise/premium" features.<br>Visit the <a href="https://www.tiny.cloud/pricing/#demo-enterprise">pricing page</a> to learn more about our premium plugins.</h5>
<p>Please try out the features provided in this full featured example.</p>
<h2>Got questions or need help?</h2>
<ul>
<li>Our <a href="//www.tiny.cloud/docs/">documentation</a> is a great resource for learning how to configure TinyMCE.</li>
#!/bin/bash
#EDIT TOKEN:
TOKEN="hZdWdqPfhxVvRa42zS-1xAltk3qa5BXA_5WAjAUcW29e81vEBAbo9RxaqTjSA6lAvjzl5Jx-tD1g8EyNzNzWnLVqy_BhT3wavfPiBKmU3dmLj-VGm512cYLcZ7uMTfsLvHi8I52C3JVfY1m4"
if [[ "$#" -lt 1 ]]; then #Check number of arguemnt
echo "Please pass file names as argument."
exit 1
fi
#ALSO MAKE SURE THAT CURL, RAR and JQ ARE INSTALLED ON YOUR SYSTEM
upload() {
#$1 is filename
03/01 22:23:33: Launching 'app' on Pixel 3 API 28.
$ adb shell am start -n "com.romann.ciyashop/com.romann.ciyashop.activity.SplashScreenActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Waiting for process to come online...
Connected to process 7544 on device 'Pixel_3_API_28 [emulator-5554]'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/MultiDex: VM with version 2.1.0 has multidex support
Installing application
VM has multidex support, MultiDex support library is disabled.
W/romann.ciyasho: Unsupported class loader
W/romann.ciyasho: Skipping duplicate class check due to unsupported classloader
# wget https://gist.github.com/amircloner/4305b461df40616a1c4c432b3619af82/raw -O docker-install.sh
# chmod +x docker-install.sh
# ./docker-install.sh
#curl -sSL https://gist.github.com/amircloner/4305b461df40616a1c4c432b3619af82/raw | bash
apt-get -y update
sudo apt-get -y remove docker docker-engine docker.io containerd runc
sudo apt-get -y update
#!/bin/bash
# wget https://gist.github.com/amircloner/f1295ff5669728e21d7babca68bf3d4f/raw -O caprover-install.sh && chmod +x caprover-install.sh && ./caprover-install.sh
# sudo bash -c "$(wget -qO- https://gist.github.com/amircloner/f1295ff5669728e21d7babca68bf3d4f/raw)"
apt-get -y update
sudo apt-get -y remove docker docker-engine docker.io containerd runc
sudo apt-get -y update
sudo apt-get -y install \
apt-transport-https \
ca-certificates \
@amircloner
amircloner / Google-Sheet-Form-Post.md
Last active September 12, 2021 04:44 — forked from willpatera/Google-Sheet-Form-Post.md
Post to google spreadsheet from html form

Overview

This collection of files serves as a simple static demonstration of how to post to a google spreadsheet from an external html <form> following the example by Martin Hawksey

Depreciation Warning: This code is not maintained, and should be seen as reference implementation only. If you're looking to add features or update, fork the code and update as needed.

Run example

You should be able to just open index.html in your browser and test locally.

#!/bin/bash
# curl -sSL https://gist.githubusercontent.com/amircloner/3a7c102dd8da114576a72a361ceba275/raw/emrooz-backup-vols-arvan-s3.sh | bash -s -- backup
usage() {
>&2 echo "Usage: backup-vols.sh <backup|restore>"
exit 1
}
backup() {
backup_directory=/home/ubuntu/emrooz-backup-vols-arvan-s3
@amircloner
amircloner / wireguardOverWebsocket.md
Created October 24, 2022 16:08 — forked from alikarimii/wireguardOverWebsocket.md
Set Up a Wireguard VPN Server with WebSocket Tunneling

این آموزش مربوط به سیستم های یونیکسه.

CDN

خب اول یک دامنه یا ساب دامنه انتخاب کنید و یک A رکورد به مقدار آی پی سرور خارجی و پرت HTTPS بسازید.سی دی ان داخلی باشه که طرح رذالتو دور بزنید. باید روی SSL,CDN رو فعال کنید.

SSL

خب برای اون دامنه باید اس اس ال داشته باشید با این فایل ها fullchain.pem, privkey.pem, chain.pem, dhparam.pem آموزش گرفتن اس اس ال هم که زیاده. (dhparam- Diffie–Hellman (D-H))

NGINX

اول nginx رو روی سرور خارجی نصب کنید.

#curl -sSL https://gist.github.com/amircloner/fb3ff46119997d6af62067d76fd803c7/raw | bash
sudo apt-get -y update
sudo apt-get -y remove docker docker-engine docker.io containerd runc
sudo apt-get -y update
sudo apt-get -y install \
apt-transport-https \
ca-certificates \
curl \