Skip to content

Instantly share code, notes, and snippets.

View muke5hy's full-sized avatar
:octocat:
Learning the hard way!

Mukesh Yadav muke5hy

:octocat:
Learning the hard way!
View GitHub Profile

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@muke5hy
muke5hy / supervisord
Created August 5, 2016 11:30
supervisord daemon for CentOS
#!/bin/sh
#
# /etc/rc.d/init.d/supervisord
#
# Supervisor is a client/server system that
# allows its users to monitor and control a
# number of processes on UNIX-like operating
# systems.
#
# chkconfig: - 64 36
@muke5hy
muke5hy / pre-commit.sh
Created July 25, 2016 14:20 — forked from breard-r/pre-commit.sh
PEP8 compliance pre-commit git hook
#!/bin/sh
# Inline version:
# find . -wholename "./*/migrations" -prune -o -wholename "./docs/*" -prune -o -name "*\.py" -exec pep8 {} \;
final_exit=0
for file in $(find . -wholename "./*/migrations" -prune -o -wholename "./docs/*" -prune -o -name "*\.py" -print); do
pep8 "$file"
if [ $? -ne 0 ]; then
final_exit=1
fi
@muke5hy
muke5hy / .functions
Created July 5, 2016 08:48
List of functions for bash
# Simple calculator
function calc() {
local result="";
result="$(printf "scale=10;$*\n" | bc --mathlib | tr -d '\\\n')";
# └─ default (when `--mathlib` is used) is 20
#
if [[ "$result" == *.* ]]; then
# improve the output for decimal numbers
printf "$result" |
sed -e 's/^\./0./' `# add "0" for cases like ".5"` \

My Darktable Workflow

Basic workflow

  • Copy a film roll (a directory of RAW images) into a directory on the machine running Darktable.
  • Import the film roll into Darktable.
  • Review the images using lighttable mode and remove any images that are beyond repair.
  • Take a snapshot of the image so we can do a before and after comparison.
  • Adjust the white balance.
  • Exposure compensation and recovery.
@muke5hy
muke5hy / .tmux.conf
Last active July 6, 2016 12:13
Tmux Config file
# https://github.com/seebi/tmux-colors-solarized/blob/master/tmuxcolors-256.conf
set-option -g status-bg colour235 #base02
set-option -g status-fg colour136 #yellow
set-option -g status-attr default
# set window split
bind-key v split-window -h
bind-key b split-window
# default window title colors
@muke5hy
muke5hy / fabfile.py
Created December 13, 2013 00:43 — forked from onyxfish/fabfile.py
from fabric.api import *
"""
Base configuration
"""
env.project_name = '$(project)'
env.database_password = '$(db_password)'
env.site_media_prefix = "site_media"
env.admin_media_prefix = "admin_media"
env.newsapps_media_prefix = "na_media"
@muke5hy
muke5hy / _.md
Created May 23, 2013 14:05
topojson
@muke5hy
muke5hy / Install solr on Centos 6.3 with tomcat
Created May 23, 2013 07:19
Install solr on Centos 6.3 with tomcat
yum install java-1.7.0-openjdk.i686
yum install tomcat6.noarch
wget http://mirror.lividpenguin.com/pub/apache/lucene/solr/4.0.0/apache-solr-4.0.0.tgz
tar -xzvf apache-solr-4.0.0.tgz
cd apache-solr-4.0.0
cp -a example/solr /opt/
cp dist/apache-solr-4.0.0.war /opt/solr/solr.war
chown tomcat:tomcat -R /opt/solr
cat > /usr/share/tomcat6/conf/Catalina/localhost/solr.xml <<EOF
@muke5hy
muke5hy / _.md
Created March 28, 2013 05:25
Arc Pie