Skip to content

Instantly share code, notes, and snippets.

View farmanp's full-sized avatar

Farman Pirzada farmanp

View GitHub Profile
<!-- Portfolio Modals -->
{% for post in site.posts %}
<div class="modal" id="#portfolioModal-{{ post.modal-id }}">
{{ post.title }}
</div>
<div class="portfolio-modal modal-dialog modal fade" id="portfolioModal-{{ post.modal-id }}" tabindex="-1" role="dialog"
aria-hidden="true">
<div class="modal-content">
<div class="close-modal" data-dismiss="modal">
@farmanp
farmanp / Keybase.md
Created March 30, 2019 03:29
Keybase

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@farmanp
farmanp / branch.js
Last active December 20, 2019 07:55
// var branch = process.argv.slice(2).join('_');
// console.log(`Branch name: ${branch}`);
// console.log(`Copy and paste below`);
// console.log(`git checkout -b ${branch}`);
function execute(command) {
const exec = require('child_process').exec
exec(command, (err, stdout, stderr) => {
process.stdout.write(stdout)
@farmanp
farmanp / setup.sh
Last active February 16, 2023 16:48 — forked from bradp/setup.sh
Onboarding Mac Setup Script
# Overview of this script is running an automated installation workflow that goes step by step below:
# 1. Github setup
# 2. Install XCode
# 3. Install Homebrew
# 4. Install Development tools (programming languages, libraries, etc)
# 5. Setting up Mac settings
# Done!
developer_utilities_setup() {
echo "Installing tree, wget, trash, mackup, and node..."
@farmanp
farmanp / generate_sources.py
Created July 4, 2024 03:31
Generate sources from catalog v1 schema
import json
import yaml
# Load catalog.json
with open('target/catalog.json', 'r') as f:
catalog = json.load(f)
# Prepare the sources dictionary
sources = {
'version': 2,