Skip to content

Instantly share code, notes, and snippets.

View nosmall's full-sized avatar

Jirka aka NOsmall or NoSmallCZ nosmall

View GitHub Profile
@tititake
tititake / ubuntu-openvpn.sh
Created June 24, 2014 02:53
Install OpenVPN server on Ubuntu and Debian
#!/bin/bash
# Quick and dirty OpenVPN install script
# Tested on debian 5.0 32bit, openvz minimal debian OS template
# and Ubuntu 9.04 32 bit minimal, should work on 64bit images as well
# Please submit feedback and questions at [email protected]
# John Malkowski vpsnoc.com 01/18/2010
WANIF=`ip route get 8.8.8.8 | awk '{ for(f=0;f<NF;f++){if($f=="dev"){print $(f+1);exit;}} }'`
@Iman
Iman / clean.sh
Last active November 13, 2024 21:44
Free up disk space on Ubuntu - clean log, cache, archive packages/apt archives, orphaned packages, old kernel and remove the trash
#!/bin/sh
#Check the Drive Space Used by Cached Files
du -sh /var/cache/apt/archives
#Clean all the log file
#for logs in `find /var/log -type f`; do > $logs; done
logs=`find /var/log -type f`
for i in $logs
@darinronne
darinronne / wp-local-to-live.md
Last active January 9, 2019 13:23
Transfer Local WP Install to Live

Install on both Local and Live

  • WP Migrate DB
  • All-in-One WP Migration

Use WP Migrate DB to get the URL and File paths.

Use All-in-One WP Migration on local site to create the Export file.

  • Create two "Find and Replace"s. One for URL, the other for File paths.

Import the file on Live site using All-in-One WP Migration.

@dineshsprabu
dineshsprabu / screen.md
Created October 24, 2017 14:13
[Screen] Useful screen commands

Screen commands

Create screen session detached and log on local file. A local file named screenlog.0 will be created on the local dir.

screen -dms -L <any-name> bash -c <command>
@ironicbadger
ironicbadger / bash_aliases
Last active June 1, 2024 17:21
Lets Encrypt Reverse Proxy Files
alias dcp='docker-compose -f /opt/docker-compose.yml '
alias dcpull='docker-compose -f /opt/docker-compose.yml pull --parallel'
alias dcplogs='docker-compose -f /opt/docker-compose.yml logs -tf --tail="50" '
alias df='df -h -x aufs -x tmpfs -x udev'
alias editle='sudo vi /opt/appdata/letsencrypt/nginx/site-confs/default'
@muety
muety / rclone_sync.txt
Last active December 20, 2022 20:32
Automated Google Drive sync for Linux using rclone
Script that will trigger a local to remote sync when any changes below your local Google Drive folder occur - but at max. every 10 minutes - and a remote to local sync every x (e.g. 30 minutes) via a cron job.
0. Install rclone and configure it for Google Drive
1. Create files listed below
2. Configure rclone_watch_local.sh to be run on startup (e.g. using a systemd service unit)
3. Add a cron job that runs rclone_remote2local.sh every x (e.g. 30) minutes
----------------------
rclone_local2remote.sh
----------------------
@stokkes
stokkes / README.md
Last active March 21, 2024 01:37
Rclone Plex Sonarr Radarr Read&Write

Rclone v1.40 for Plex/Sonarr/Radarr Read/Write

This small guide should help you get setup with rclone v1.40 to read/write directly to a cache mount and have Plex get notified of new tv/movies that get added to the mount by Radarr/Sonarr

Assumptions

  1. You're using rclone v1.40
  2. You're using Radarr & Sonarr
  3. If you're using docker for plex/sonarr/radrr, you must ensure the volumes attached to the containers are all the same path, i.e.: /mnt/user/media:/media for all 3. If not, the auto-scan will likely not work properly.
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active November 16, 2024 20:24
crack activate Office on mac with license file
@oneohthree
oneohthree / samba-ad-dc-howto.md
Last active February 16, 2023 18:40
samba-ad-dc-howto.md

Instalación de Samba como Active Directory Domain Controller (AD DC)

Consideraciones previas

  • Sistema operativo: Debian GNU/Linux 9 (Stretch)
  • Nombre de host: dc
  • Nombre de dominio: foo.bar
  • Dirección IP: 192.168.0.1

Configuración de nombres de hosts

@Eddy-Barraud
Eddy-Barraud / Rclone-Fuse.md
Created August 26, 2018 15:32
Mount cloud disk (OneDrive,etc...) In Linux Using Rclone (&fuse)

Thanks to Rclone you can mount any kind of cloud disk !

Begin by installing rclone

curl https://rclone.org/install.sh | sudo bash

Add a new remote to Rclone

rclone config ...

detailed instructions HERE : https://rclone.org/docs/