Skip to content

Instantly share code, notes, and snippets.

View sameersbn's full-sized avatar

Sameer Naik sameersbn

View GitHub Profile
@sameersbn
sameersbn / redmine-themes-install.sh
Last active May 17, 2022 15:33
Redmine Themes Installation
#!/bin/bash
#
# Author: Sameer Naik <sameer@damagehead.com>
# Gist: https://gist.github.com/sameersbn/aaa1b7bb064703c1e23c
# Short Url (raw): http://goo.gl/deKDpp
#
# Installs a bunch of themes for the docker-redmine image
#
# Usage:
# $ mkdir -p /opt/redmine/data/themes
@sameersbn
sameersbn / redmine-plugins-install.sh
Last active May 17, 2022 15:33
Redmine Plugins Installation
#!/bin/bash
#
# Author: Sameer Naik <sameer@damagehead.com>
# Gist: https://gist.github.com/sameersbn/dd24dfdd13bc472d11a5
# Short Url (raw): http://goo.gl/iJcvCP
#
# Installs a bunch of plugins for the docker-redmine image
#
# Usage:
# $ mkdir -p /opt/redmine/data/plugins
@sameersbn
sameersbn / google-domains-dynamic-dns-update.sh
Created August 24, 2018 09:11 — forked from cyrusboadway/google-domains-dynamic-dns-update.sh
Script to update a Google Domains DNS record
#!/bin/bash
### Google Domains provides an API to update a DNS "Syntheitc record". This script
### updates a record with the script-runner's public IP, as resolved using a DNS
### lookup.
###
### Google Dynamic DNS: https://support.google.com/domains/answer/6147083
### Synthetic Records: https://support.google.com/domains/answer/6069273
USERNAME=""
@sameersbn
sameersbn / gitlab.conf
Created February 6, 2015 09:53
Nginx reverse proxy configuration for GitLab
upstream gitlab {
server 172.17.42.1:10080 fail_timeout=0;
}
# let gitlab deal with the redirection
server {
listen 80;
server_name git.example.com;
server_tokens off;
root /dev/null;
@sameersbn
sameersbn / colors.source
Created February 21, 2017 05:20 — forked from leesei/colors.source
#bash #color-source Color macro for BASH
# prompt color and format variables
# A color init string consists of one or more of the following numeric codes:
# * Attribute codes:
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
# * Text color codes:
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
# * Background color codes:
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
# * Extended color codes for terminals that support more than 16 colors:

Keybase proof

I hereby claim:

  • I am sameersbn on github.
  • I am sameersbn (https://keybase.io/sameersbn) on keybase.
  • I have a public key ASCLoLoJNhJxMqQeArotHTfu_t2FXoYcMiTS0dfjOmJ53go

To claim this, I am signing this object:

@sameersbn
sameersbn / gitlab-ce
Created July 28, 2014 14:49
gitlab-ce nginx load balance config
upstream gitlab {
server 172.17.42.1:10080;
}
## This is a normal HTTP host which redirects all traffic to the HTTPS host.
server {
listen 80;
server_name git.example.com;
server_tokens off;
root /dev/null;
upstream gitlab {
server 172.17.42.1:50083;
}
# let gitlab deal with the redirection
server {
listen 80;
server_name git.example.com;
server_tokens off;
root /dev/null;
@sameersbn
sameersbn / gitlab-ci
Created July 23, 2014 17:56
gitlab-ci nginx load balance config
upstream gitlab_ci {
server 172.17.42.1:50088;
}
## This is a normal HTTP host which redirects all traffic to the HTTPS host.
server {
listen 80;
server_name ci.example.com;
server_tokens off;
root /dev/null;