Skip to content

Instantly share code, notes, and snippets.

View rahaalizade's full-sized avatar
👽
Working from C-137

Raha Alizade rahaalizade

👽
Working from C-137
  • Tehran,Iran
View GitHub Profile
@jonesbusy
jonesbusy / nexus_cleanup_policies.groovy
Created April 7, 2021 19:14
nexus_cleanup_policies.groovy
import org.sonatype.nexus.cleanup.storage.CleanupPolicyStorage
import org.sonatype.nexus.cleanup.storage.CleanupPolicyComponent
def isCleanupPolicyExists(String name) {
def cleanupPolicyStorage = container.lookup(CleanupPolicyStorage.class.getName())
return cleanupPolicyStorage.exists(name)
}
def deleteCleanupPolicy(String name) {
def cleanupPolicyStorage = container.lookup(CleanupPolicyStorage.class.getName())
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active May 11, 2025 16:55
set -e, -u, -o, -x pipefail explanation
@umr55766
umr55766 / how to install virtualenv in ubuntu 16 . 04.md
Last active April 16, 2023 15:13 — forked from Geoyi/install virtualenv ubuntu 16.04.md
How to install virtual environment on ubuntu 16.04

How to install virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv 
@wojteklu
wojteklu / clean_code.md
Last active May 10, 2025 21:00
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@carlessanagustin
carlessanagustin / lists-dictionary.yml.md
Last active January 22, 2024 21:55
Lists & Dictionary YAML Syntax by example
@rogerleite
rogerleite / install_monaco_font.sh
Last active April 15, 2025 00:23
Install Monaco font in Linux
#!/bin/bash
# Install Monaco font in Linux
# Version from nullvideo https://gist.github.com/rogerleite/99819#gistcomment-2799386
sudo mkdir -p /usr/share/fonts/truetype/ttf-monaco && \
sudo wget https://gist.github.com/rogerleite/b50866eb7f7b5950da01ae8927c5bd61/raw/862b6c9437f534d5899e4e68d60f9bf22f356312/mfont.ttf -O - > \
/usr/share/fonts/truetype/ttf-monaco/Monaco_Linux.ttf && \
sudo fc-cache