Skip to content

Instantly share code, notes, and snippets.

View ajshovon's full-sized avatar
💭
learning

shovon ajshovon

💭
learning
View GitHub Profile
@ajshovon
ajshovon / seafile-pink-horizon.css
Last active January 4, 2025 11:43 — forked from Gusfit2/seafile-pink-horizon.css
Pink Horizon for Seafile Community Edition (Scroll to bottom for assets)
@media (prefers-color-scheme: dark) {
:root {
--main-bg: #1f1f1f;
--dark-bg: #2f2b2c;
--light-bg: #303134;
--sun-bg: var(--dark-bg); /* replace --dark-bg with --grad-bg for sun */
--main-font: #9e9e9e;
--light-font: #eee;
@ajshovon
ajshovon / radarr-unmonitor-downloaded.md
Last active May 16, 2023 08:52 — forked from Znuff/radarr-unmonitor-downloaded.md
Unmonitor Radarr Downloads after 30 Days

Simple Python script to set all downloaded movies to unmonitored after X days (default 30).

Edit the APIKEY, URL and DAYS to your liking. Run on a daily/weekly basis.

Working with radarr v3 api

@ajshovon
ajshovon / update_time.py
Last active October 29, 2021 09:37 — forked from nihal111/update_time.py
A python script to update time in Windows using HTTP, when NTP is not working. Works by using api from worldtimeapi.org and uses win32api (earlier pywin32) to update the system time. Needs to be run with administrator permissions. HTTP is used instead of HTTPS api to avoid certificate error because of wrong local time.
import requests
import datetime
import win32api
import traceback
response = requests.get('http://worldtimeapi.org/api/timezone/Etc/UTC', headers={'Cache-Control': 'no-cache'})
time_stamp = int(response.json()["unixtime"])
utcTime = datetime.datetime.utcfromtimestamp(time_stamp)
@ajshovon
ajshovon / gist:01156ffd14f3fee07d693dde1aab6934
Last active November 23, 2020 14:35 — forked from dsci/gist:1347672
Delete commits from repository.
# First, check out the commit you wish to go back to (get sha-1 from git log)
git reset --hard COMMIT_ID
example:
git reset --hard 9d3c3a0caa7f7b35ef15adb96fc80fcbb59ac72a
# Then do a forced update.
git push origin +COMMIT_ID^:BRANCH_NAME
example:
git push origin +9d3c3a0caa7f7b35ef15adb96fc80fcbb59ac72a^:develop
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get autoremove -y
apt-get -y install build-essential wget curl gcc make wget tzdata git libreadline-dev libncurses-dev libssl-dev zlib1g-dev
wget https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/releases/download/v4.34-9744-beta/softether-vpnserver-v4.34-9744-beta-2020.03.20-linux-x64-64bit.tar.gz
tar xzf softether-vpnserver-v4.34-9744-beta-2020.03.20-linux-x64-64bit.tar.gz && rm softether-vpnserver-v4.34-9744-beta-2020.03.20-linux-x64-64bit.tar.gz
cd vpnserver && sudo make
cd ..
sudo mv vpnserver /usr/local && cd /usr/local/vpnserver/
sudo chmod 600 *