Skip to content

Instantly share code, notes, and snippets.

View nurrony's full-sized avatar

Nur Rony nurrony

View GitHub Profile
@nurrony
nurrony / AWS-CSA-A-Notes.md
Created March 28, 2017 12:33 — forked from agussman/AWS-CSA-A-Notes.md
Notes from studying for the AWS Certified Solutions Architect Exam. I felt well-prepared for the exam and passed with a 94%. Please reach out with any corrections or questions.

External Resources

@nurrony
nurrony / logstash.conf
Created March 29, 2017 09:14 — forked from mallim/logstash.conf
Logstash config for Spring Boot's default logging
input {
file {
type => "java"
tags => [ "fornax-data-share-eureka" ]
# Logstash insists on absolute paths...
path => "D:/fornax-data-share-runtime/eureka/fornax-data-share-eureka.log"
codec => multiline {
pattern => "^%{YEAR}-%{MONTHNUM}-%{MONTHDAY} %{TIME}.*"
negate => "true"
what => "previous"
stage "CI"
node {
/**git branch: 'jenkins2-course',
url: 'https://github.com/nmrony/solitaire-systemjs-course.git'*/
checkout scm
nodejs(nodeJSInstallationName: 'node') {
sh 'npm install --verbose'
stash excludes: 'test-results/**', includes: '**', name: 'everything'
}
}
@nurrony
nurrony / local-registry.yml
Created May 6, 2017 11:01 — forked from mtpereira/local-registry.yml
Local development with Kubernetes
apiVersion: v1
kind: ReplicationController
metadata:
name: kube-registry-v0
namespace: kube-system
labels:
k8s-app: kube-registry
version: v0
spec:
replicas: 1
@nurrony
nurrony / docker-backup-resotre-methods.md
Last active September 14, 2024 06:31
This Gist collects all docker hacks that I needed to do for various reasons for my work and during playing with it.

Docker Images backup

This document show you how to save an image or export a container+image and load or export it.

Save an image

docker save <image-name>:<tag> > /path/to/save/the/image.tar

Load the image again after save

@nurrony
nurrony / app.service
Created July 21, 2017 06:16
Running Container using Systemd
Description=My Containerized App
After=docker.service
Requires=docker.service
[Service]
TimeoutStartSec=0
Restart=always
ExecStartPre=-/usr/local/bin/docker-compose -f /path/to/docker-compose.yml down
ExecStart=/usr/local/bin/docker-compose -f /path/to/docker-compose.yml up -d
@nurrony
nurrony / clean-git-repo
Last active March 2, 2020 20:41
Remove all git tags from local and remote
#!/usr/bin/env bash
git filter-branch --index-filter "git rm --cached --ignore-unmatch $1" -- --all
rm -Rf .git/refs/original
rm -Rf .git/logs/
git gc --aggressive --prune=now
@nurrony
nurrony / phabricator-aphlict.service
Last active December 10, 2021 16:45 — forked from sparrc/phabricator_readme.md
Phabricator Ubuntu Installation Guide
[Unit]
Description=Phabricator Aphlict
After=syslog.target network.target mysql.service
[Service]
Type=forking
User=phabricator
Group=phabricator
ExecStart=/home/phd/phabricator/bin/aphlict start
ExecStop=/home/phd/phabricator/bin/aphlict stop
@nurrony
nurrony / phabricator-aphlict.service
Created August 4, 2017 06:32 — forked from wienczny/phabricator-aphlict.service
Phabricator Systemd Units
[Unit]
Description=Phabricator Aphlict
After=syslog.target network.target mysql.service
[Service]
Type=forking
User=phabricator
Group=phabricator
ExecStart=/srv/http/phabricator/bin/aphlict start
ExecStop=/srv/http/phabricator/bin/aphlict stop