Skip to content

Instantly share code, notes, and snippets.

View tarlan-huseynov's full-sized avatar
🫖
HTTP CODE 418

Tarlan Huseynov tarlan-huseynov

🫖
HTTP CODE 418
View GitHub Profile
@tarlan-huseynov
tarlan-huseynov / remove_gitlab_artifacts.sh
Created November 25, 2022 14:08 — forked from carceneaux/remove_gitlab_artifacts.sh
Script for removing GitLab Job Artifacts.
#!/bin/bash
#
# Written by Chris Arceneaux
# GitHub: https://github.com/carceneaux
# Email: [email protected]
# Website: http://arsano.ninja
#
# Note: This code is a stop-gap to erase Job Artifacts for a project. I HIGHLY recommend you leverage
# "artifacts:expire_in" in your .gitlab-ci.yml
#
@tarlan-huseynov
tarlan-huseynov / docker-api-port.md
Created May 9, 2022 10:06 — forked from styblope/docker-api-port.md
Enable TCP port 2375 for external connection to Docker

Enable TCP port 2375 for external connection to Docker

See this issue.
Docker best practise to Control and configure Docker with systemd.

  1. Create daemon.json file in /etc/docker:

     {"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
    
@tarlan-huseynov
tarlan-huseynov / makefile
Created May 4, 2022 04:23
makefile for kube init
.PHONY: all setup init join cni reset uninstall
kv ?= 1.22.4-00
dv ?= 5:20.10.14~3-0~ubuntu-jammy
ha ?= 'false'
cpe ?= none
aaa ?= none
all: init cni
setup:
#!/bin/bash
#################################################################
function _spinner() {
# $1 start/stop
#
# on start: $2 display message
# on stop : $2 process exit status
# $3 spinner function pid (supplied from stop_spinner)
@tarlan-huseynov
tarlan-huseynov / myscript.sh
Created May 4, 2022 04:15 — forked from bradtraversy/myscript.sh
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"