Skip to content

Instantly share code, notes, and snippets.

View nayaabkhan's full-sized avatar
🍸
Why hello!

Nayaab Khan nayaabkhan

🍸
Why hello!
View GitHub Profile
@nayaabkhan
nayaabkhan / git-anti-cs.md
Last active December 28, 2024 08:35
Git Anti-cheatsheet

List of recommended commands and processes:

  1. Set pull with rebase as default: git config --global pull.rebase true
  2. Always take a pull on master rebasing your feature branches using git rebase -i master.
  3. Use git push --force-with-lease instead of git push --force
  4. Use git add -p instead of git add .
  5. Install GitHub CLI: https://cli.github.com
  6. Use it to create and merge PRs.
@nayaabkhan
nayaabkhan / .gpu_method
Last active September 9, 2021 06:58
FreeBSD installation log
export methods="\_SB.PCI0.PEG0.PEGP._PS3"
@nayaabkhan
nayaabkhan / resume.json
Last active October 14, 2020 10:09
My JSON Resume
{
"basics": {
"name": "Nayaab Khan",
"label": "All-in-one generalist: Designer, programmer, and a product thinker."
},
"meta": {
"theme": "short"
}
}
{
"id": "hodil0m0",
"pk": "262687306511763738",
"title": "Jeffrey D.",
"subtitle": "Web Programming • San Francisco",
"sort_time": "2016-04-28T08:41:46.507Z",
"request_id": "3ta2gm05",
"request_pk": "262679754052356306",
"is_archived": false,
"is_awaiting_initial_pro_reply": false,
@nayaabkhan
nayaabkhan / merge.ts
Created October 15, 2019 07:02
Merge GraphQL Modules
import { fileLoader, mergeResolvers, mergeTypes } from 'merge-graphql-schemas'
import * as path from 'path'
const schemaFiles = fileLoader(path.join(__dirname, './**/*.graphql'))
const resolverFiles = fileLoader(path.join(__dirname, './**/resolvers.ts'))
const typeDefs = mergeTypes(schemaFiles, { all: true })
const resolvers = mergeResolvers(resolverFiles)
export { typeDefs, resolvers }
@nayaabkhan
nayaabkhan / sketch_compact_svg.sh
Created October 23, 2014 03:32
Compact SVG in Sketch App
defaults write com.bohemiancoding.sketch3 exportCompactSVG -bool yes
# Author = Nikhil Venkat Sonti
# email = nikhilsv92@gmail.com
# github ID = shadowfax92
import sys
from xml.dom.minidom import _get_StringIO
from lxml import html
import requests
import os
import re
import time
@nayaabkhan
nayaabkhan / Preferences.sublime-settings
Last active August 29, 2015 14:02
Sublime Preferences
{
"auto_complete_commit_on_tab": true,
"bold_folder_labels": true,
"color_scheme": "Packages/Theme - Spacegray/base16-ocean.dark.tmTheme",
"draw_minimap_border": true,
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"font_face": "Inconsolata",
"font_size": 14.0,
"highlight_line": true,