Skip to content

Instantly share code, notes, and snippets.

View samkhawase's full-sized avatar
🏠
Working from home

Sam Khawase samkhawase

🏠
Working from home
View GitHub Profile
@samkhawase
samkhawase / tmux.conf
Created December 14, 2023 08:35
tmux config
set -g mouse on
setw -g mouse on
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
@samkhawase
samkhawase / android_instructions_28.md
Created November 19, 2020 19:48 — forked from agrcrobles/android_instructions_29.md
Setup Android SDK on a Mac

Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.

Here the SDK is under /usr/local/share/android-sdk because I may switch to a different Catalina user in the future, but it works fine under /Users/<your_user>/Library/Android/sdk as well.

Prerequisites:

See for brew, python3 and NodeJS on nvm see gist https://gist.github.com/agrcrobles/3d945b165871c355b6f169c317958e3e

Java 14

@samkhawase
samkhawase / Info.plist
Last active September 24, 2020 06:22
Adding the UIApplicationSceneManifest details to the Info.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- ... -->
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
<false/>
<key>UISceneConfigurations</key>
@samkhawase
samkhawase / SceneDelegate.swift
Last active September 24, 2020 06:15
Method that acts as an entrypoint to our Scene based app
// Method that acts as an entrypoint to our Scene based app
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
// Create the SwiftUI view that provides the window contents.
let contentView = ContentView(viewModel: PhotoStreamViewModel())
// Use a UIHostingController as window root view controller.
if let windowScene = scene as? UIWindowScene {
let window = UIWindow(windowScene: windowScene)
window.rootViewController = UIHostingController(rootView: contentView)
self.window = window
window.makeKeyAndVisible()

Keybase proof

I hereby claim:

  • I am samkhawase on github.
  • I am samkhawase (https://keybase.io/samkhawase) on keybase.
  • I have a public key whose fingerprint is 9141 A224 A994 FD3D F8DB 210B 0716 3D27 15CE C5AE

To claim this, I am signing this object:

@samkhawase
samkhawase / boxstarter.ps1
Created March 30, 2018 19:40 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
@samkhawase
samkhawase / GPG and git on macOS.md
Created March 7, 2018 09:10 — forked from danieleggert/GPG and git on macOS.md
How to set up git to use the GPG Suite

GPG and git on macOS

Setup

No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.

  1. Install https://gpgtools.org -- I'd suggest to do a customized install and deselect GPGMail.
  2. Create or import a key -- see below for https://keybase.io
  3. Run gpg --list-secret-keys and look for sec, use the key ID for the next step
  4. Configure git to use GPG -- replace the key with the one from gpg --list-secret-keys

Videos

@samkhawase
samkhawase / no-coding-assigment.md
Created February 26, 2018 15:20 — forked from iwangu/no-coding-assigment.md
A prospective employer invited me to do a HackerRank test. Here's my proposed alternative.

Hi there! Thanks for offering me a coding assigment test. I see that this can be a useful method to compare different candidates applying for the XYZ-Role. I would like to kindly ask if you have some leeway in finding an alternative way to evaluate my coding skills? I have written a number of open-source projects/spoke at conferences/worked as a coding-teacher/did XYZ and I would love to showcase this to your engineers:

LIST STUFF YOU DID

These are just some projects I picked that showcase not just skill in programming but also in math, design and XYZ.

Please can I kindly ask you to check with your engineers and/or the hiring manager to perhaps have a look / conduct a code review and/or ask me to add a feature or resolve a bug?

I checked that ABC is doing a lot of XYZ and I opened this Github issue extra for ABC (LINK TO GITHUB ISSUE). I can program this feature/fix that bug within a given timeframe and then discuss the written code with one of your engineers?

@samkhawase
samkhawase / install-swift-ubuntu.md
Created January 2, 2018 10:11 — forked from Azoy/install-swift-ubuntu.md
Guide on how to install Swift on Ubuntu

Install Swift on Ubuntu

Requirements

  1. Ubuntu 14.04, 16.04, or 16.10

Step 1 - Dependencies

  1. Open up terminal
  2. Install core deps: sudo apt-get install clang libicu-dev git

Step 1.1 - Ubuntu 14.04 Clang