Skip to content

Instantly share code, notes, and snippets.

View jelovac's full-sized avatar

Vladimir Jelovac jelovac

  • 112dev
  • Serbia
View GitHub Profile

DOCKER HOME SERVER SETUP

Initial setup

  • Docker preparations
sudo chmod +x /usr/local/bin/docker-compose

sudo usermod -aG docker ${USER}
@fntlnz
fntlnz / self-signed-certificate-with-custom-ca.md
Last active September 17, 2024 08:31
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@ipbastola
ipbastola / clean-up-boot-partition-ubuntu.md
Last active August 16, 2024 13:39
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
@clops
clops / deploy.php
Last active August 1, 2022 11:41
GIT P4T Console Deploy
#!/usr/bin/php
<?php
/**
* GIT Merge Helper
*
* Installation:
* 1. Download / Clone this GIST https://gist.github.com/clops/3ac9cd6c42a66ba65101 into some directory
* 2. chmod a+x deploy.php
* 3. Add an alias into .bash_profile with a full path to the deploy.php script, mine is:
* alias deploy="~/dev/3ac9cd6c42a66ba65101/deploy.php"
@mobilemind
mobilemind / git-tag-delete-local-and-remote.sh
Last active September 26, 2024 02:21
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@eligrey
eligrey / object-watch.js
Created April 30, 2010 01:38
object.watch polyfill in ES5
/*
* object.watch polyfill
*
* 2012-04-03
*
* By Eli Grey, http://eligrey.com
* Public Domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/