Skip to content

Instantly share code, notes, and snippets.

Zafar Siddiqi zsiddiqi

  • Canada
View GitHub Profile
@zsiddiqi
zsiddiqi / gist:0d268d9e017a1b88c8a0fa9c18aaf3a7
Created May 10, 2020 — forked from gereon/gist:3150445
Mac OSX Spotlight Enhancement
View gist:0d268d9e017a1b88c8a0fa9c18aaf3a7

Mac OSX Spotlight Enhancement

Add this to Info.plist in /System/Library/Spotlight/RichText.mdimporter/Contents/ and Spotlight will search for source code files.

<string>public.c-header</string>
<string>public.c-plus-plus-header</string>
<string>public.c-source</string>
<string>public.objective-c-source</string>
<string>public.c-plus-plus-source</string>
@zsiddiqi
zsiddiqi / cleanrepo.sh
Created May 5, 2020 — forked from legege/cleanrepo.sh
Intelligently clean a Sonatype Nexus repository... keep the last 2 released versions of each "major.minor" artifact
View cleanrepo.sh
#!/bin/bash
DRY_RUN=1
if [ "$1" != "" ]; then
DRY_RUN="$1"
fi
MAX_VERSION=2
if [ "$2" != "" ]; then
MAX_VERSION="$2"
fi
@zsiddiqi
zsiddiqi / README.md
Created Nov 24, 2019 — forked from hofmannsven/README.md
Git Cheatsheet
View README.md
@zsiddiqi
zsiddiqi / jenkins-plugins.md
Created Nov 5, 2019 — forked from noqcks/jenkins-plugins.md
How to get a complete plugin list from jenkins (with version)
View jenkins-plugins.md

I need a way to get a list of plugins so that I can use them with docker jenkins in the format <plugin>: <version>

1. get the jenkins cli.

The jenkins CLI will allow us to interact with our jenkins server from the command line. We can get it with a simple curl call.

curl 'localhost:8080/jnlpJars/jenkins-cli.jar' > jenkins-cli.jar
@zsiddiqi
zsiddiqi / dnsmasq macOS.md
Created Oct 26, 2019 — forked from brablc/dnsmasq macOS.md
Setup dnsmasq on OS X
View dnsmasq macOS.md

Never touch your local /etc/hosts file in OS X again

To setup your computer to work with *.dev domains, e.g. project.dev, awesome.dev and so on, without having to add to your hosts file each time.

Requirements

Install

@zsiddiqi
zsiddiqi / ngrxintro.md
Created Jun 13, 2019 — forked from btroncone/ngrxintro.md
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series
View ngrxintro.md

Comprehensive Introduction to @ngrx/store

By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

@zsiddiqi
zsiddiqi / tmux.md
Created Jun 1, 2019 — forked from andreyvit/tmux.md
tmux cheatsheet
View tmux.md

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

# remap prefix to Control + a
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@zsiddiqi
zsiddiqi / README.md
Created Sep 21, 2018 — forked from simenbrekken/README.md
Super simple Backbone + Express + MongoDB REST backend application
View README.md

Requirements:

If you're on OSX you're probably best off using Homebrew to install this stuff:

$ brew install node mongodb

Usage:

You can’t perform that action at this time.