Skip to content

Instantly share code, notes, and snippets.

View umeshabhat's full-sized avatar
😜
Tere!!

Umesh .A Bhat umeshabhat

😜
Tere!!
View GitHub Profile
@ronalddddd
ronalddddd / .gitlab-ci.yml
Last active February 21, 2018 20:28
Template .gitlab-ci.yml for automating docker image build, test, release
image: docker:1.11.2-git
stages:
- build
- test
- release
#- deploy
variables:
CONTAINER_IMAGE_NAME: myImage
CONTAINER_REGISTRY_NAMESPACE: myNamespace
@augbog
augbog / Free O'Reilly Books.md
Last active May 14, 2024 10:27
Free O'Reilly Books

Free O'Reilly books and convenient script to just download them.

Thanks /u/FallenAege/ and /u/ShPavel/ from this Reddit post

How to use:

  1. Take the download.sh file and put it into a directory where you want the files to be saved.
  2. cd into the directory and make sure that it has executable permissions (chmod +x download.sh should do it)
  3. Run ./download.sh and wee there it goes. Also if you do not want all the files, just simply comment the ones you do not want.
@bastman
bastman / docker-cleanup-resources.md
Created March 31, 2016 05:55
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@caseywatts
caseywatts / MediawikionHeroku.md
Last active August 16, 2022 06:28
Mediawiki on Heroku
@alces
alces / stopping_gitlab.md
Last active November 1, 2017 12:58
How to completely stop all the gitlab's processes

To stop all the gitlab-related processes (e.g. for moving gitlab to another node while running it on top of HA-cluster) run the following two commands as root (strictly in that sequence):

gitlab-ctl stop
/sbin/stop gitlab-runsvdir

After such a full stopping gitlab couldn't be run again by conventional gitlab-ctl start. Although gitlab-ctl reconfigure would work fine in such a case,

@aras-p
aras-p / preprocessor_fun.h
Last active May 23, 2024 08:26
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
@noromanba
noromanba / abp-whitelist-export.js
Last active October 14, 2017 14:21
Adblock Plus Whitelist Export
// Adblock Plus Whitelist Export. require Developer Tools Console
// @author noromanba
// @license MIT License http://nrm.mit-license.org/2013
// chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/options.html#tab-whitelisted
var area = document.createElement('textarea');
area.id = 'rawDomainText';
//area.readOnly = true;
area.style.width = '500px';
area.style.height = '150px';
@djaiss
djaiss / gist:2938259
Created June 15, 2012 19:13
PHP List of countries
<?php
$countries =
array(
"AF" => "Afghanistan",
"AL" => "Albania",
"DZ" => "Algeria",
"AS" => "American Samoa",
"AD" => "Andorra",
"AO" => "Angola",
@pwenzel
pwenzel / git-log-to-tsv.sh
Created June 6, 2012 20:53
Git Log to Tab-Delimited CSV File
# Local Dates:
git log --date=local --pretty=format:"%h%x09%an%x09%ad%x09%s" > commits.local.tsv.txt
# ISO Dates:
git log --date=iso --pretty=format:"%h%x09%an%x09%ad%x09%s" > commits.iso.tsv.txt
@mattupstate
mattupstate / app.py
Created March 15, 2012 19:08
Flask application configuration using an environment variable and YAML
os
from flask_extended import Flask
app = Flask(__name__)
app.config.from_yaml(os.join(app.root_path, 'config.yml'))