Skip to content

Instantly share code, notes, and snippets.

View rumbis's full-sized avatar
🏠
Working from home

George Alexandrou rumbis

🏠
Working from home
  • Cyprus
View GitHub Profile
@rumbis
rumbis / avoid_colab_close.js
Created September 29, 2023 14:35 — forked from amrrs/avoid_colab_close.js
How to avoid Google Colab Session Closing automatically?
//credit - https://huggingface.co/blog/fine-tune-wav2vec2-english (Patrick von Platen)
// run this on your Chrome / Browser Console (where Colab is present)
function ConnectButton(){
console.log("Connect pushed");
document.querySelector("#top-toolbar > colab-connect-button").shadowRoot.querySelector("#connect").click()
}
var colab = setInterval(ConnectButton,60000);
# this tutorial assumes conda and git are both installed on your computer
conda create -n tg python=3.10.9
conda activate tg
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117
git clone https://github.com/oobabooga/text-generation-webui.git
cd text-generation-webui
pip install -r requirements.txt
# GPU only:
@rumbis
rumbis / Docker on Termux answerfile
Created January 2, 2022 04:30 — forked from oofnikj/answerfile
Install Docker on Termux
KEYMAPOPTS="us us"
HOSTNAMEOPTS="-n alpine"
INTERFACESOPTS="auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname alpine
"
TIMEZONEOPTS="-z UTC"
@rumbis
rumbis / xrdpaudio installer
Last active December 30, 2021 00:08 — forked from rkttu/readme.txt
Ubuntu 20.04 + WSL 2 + XRDP PulseAudio
# Credits
# https://c-nergy.be/blog/?p=13655
# https://askubuntu.com/questions/844245/how-to-compile-latest-pulseaudio-with-webrtc-in-ubuntu-16-04
# https://askubuntu.com/questions/496549/error-you-must-put-some-source-uris-in-your-sources-list
# https://unix.stackexchange.com/questions/65167/enable-udev-and-speex-support-for-pulseaudio
# https://rudd-o.com/linux-and-free-software/how-to-make-pulseaudio-run-once-at-boot-for-all-your-users
# First, you should install XRDP and X11 Desktop Environment first.
# Step 1 - Install Some PreReqs
@rumbis
rumbis / README.md
Last active December 22, 2021 00:07 — forked from orlando/Dockerfile
WordPress Docker SMTP email configuration with environment variables

You need to provide these variables

  • WORDPRESS_SMTP_HOST - SMTP host
  • WORDPRESS_SMTP_PORT - SMTP port
  • WORDPRESS_SMTP_USERNAME - SMTP username
  • WORDPRESS_SMTP_PASSWORD - SMTP password
  • WORDPRESS_SMTP_FROM - address from which emails are sent in wordpress
  • WORDPRESS_SMTP_FROM_NAME - name in wordpress emails

I'm using this with mailgun credentials and works great