Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Edit me
rclone_bin="/rclone/rclone"
rclone_options="--config=/rclone/rclone.conf --buffer-size 500M --checkers 16"
rclone_cloud_endpoint="gd:"
local_dir="/documents"
limit_gb=750
################################################################################
@cargo12
cargo12 / adduser.sh
Last active April 19, 2020 04:34 — forked from thimbl/script.sh
shell script to create user accounts
#!/bin/bash
ROOT_UID=0
SUCCESS=0
E_USEREXISTS=70
# Run as root, of course. (this might not be necessary, because we have to run the script somehow with root anyway)
if [ "$UID" -ne "$ROOT_UID" ]
then
echo "Must be root to run this script."
exit $E_NOTROOT
@cargo12
cargo12 / colab_xface_vnc.ipynb
Created April 7, 2020 06:15 — forked from ahmedengu/colab_xface_vnc.ipynb
Use google colab as a remote machine with the help of ngrok, vnc server and xface desktop you can change the configurations and desktop environment as you please it's just a start
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cargo12
cargo12 / ssh
Created April 4, 2020 16:56 — forked from thegreatestminer/ssh
Allows you to connect to your Google Colab by using ssh and ngrok.
#@markdown <h2><- Click here to enable SSH.</h2>
#@markdown <h4>Get authtoken from <a href="https://dashboard.ngrok.com/auth">ngrok.</a></h4>
import string, time
authtoken = "CHANGE THIS" #@param {type:"string"}
sshpassword = "CHANGE THIS" #@param {type:"string"}
#Download ngrok
! wget -q -c -nc https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
! unzip -qq -n ngrok-stable-linux-amd64.zip
#Setup sshd
@cargo12
cargo12 / colab.js
Created April 4, 2020 16:32 — forked from ahmedengu/colab.js
keep colab running forever by clicking on reconnect button every 60 and cancel the max ram warning ... paste the following code into your browser console
// run every 1 minute
setInterval(function () {
// close max ram window
document.getElementById("cancel") && document.getElementById("cancel").innerText == "IGNORE" && document.getElementById("cancel").click();
// reconnect
document.getElementById("ok") && document.getElementById("ok").innerText == "RECONNECT" && document.getElementById("ok").click();
!document.getElementsByTagName('iron-overlay-backdrop').length && document.getElementById("connect") && document.getElementById("connect").innerText == "RECONNECT" && document.getElementById("connect").click();
}, 60000);

Ищется помощь / Предлогаю подработку

Нужна автоматизация скриптов для сидбокса Deluge, Rclone, Jackett, etc.. + тюн конфига.

Практически все скрипты для автоматизации процессов есть в открытом доступе, необходимо выбрать оптимальную последовательность выполняемых команд, мониторить состояние сервера, прописать вебхуки. Python, shell 90%

Нужно прямо сейчас:

  1. Предварительный парсинг .torrent файлов и .magnet-links с записью данных в json/бд перед добавлением в торрент клиент. Один из готовых скриптов: https://repl.it/repls/KeyGoodnaturedOpen64
@cargo12
cargo12 / Contact me
Created March 27, 2020 13:15
Contact me
https://freelance.habr.com/tasks/
Telegram: +85258085998
@cargo12
cargo12 / client.go
Created March 20, 2020 22:21 — forked from SunChero/client.go
Golang Multipart upload to S3 over HTTP using tusd
package main
import (
"bytes"
"errors"
"fmt"
"io"
"log"
"mime/multipart"
"net/http"
swagger: '2.0'
schemes:
- https
host: www.googleapis.com
basePath: /drive/v3
info:
contact:
name: Google
url: 'https://google.com'
description: 'Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.'