Skip to content

Instantly share code, notes, and snippets.

View dragid10's full-sized avatar

Alex Oladele dragid10

View GitHub Profile
@mokagio
mokagio / install-xcode-cli-tools.sh
Created September 9, 2015 09:28
Install Xcode CLI Tools without GUI
#!/bin/bash
# See http://apple.stackexchange.com/questions/107307/how-can-i-install-the-command-line-tools-completely-from-the-command-line
echo "Checking Xcode CLI tools"
# Only run if the tools are not installed yet
# To check that try to print the SDK path
xcode-select -p &> /dev/null
if [ $? -ne 0 ]; then
echo "Xcode CLI tools not found. Installing them..."
@danharper
danharper / background.js
Last active August 29, 2025 17:45
Bare minimum Chrome extension to inject a JS file into the given page when you click on the browser action icon. The script then inserts a new div into the DOM.
// this is the background code...
// listen for our browerAction to be clicked
chrome.browserAction.onClicked.addListener(function (tab) {
// for the current tab, inject the "inject.js" file & execute it
chrome.tabs.executeScript(tab.ib, {
file: 'inject.js'
});
});
@sloria
sloria / bobp-python.md
Last active September 9, 2025 10:52
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@dodyg
dodyg / gist:5823184
Last active July 13, 2025 08:51
Kotlin Programming Language Cheat Sheet Part 1

#Intro

Kotlin is a new programming language for the JVM. It produces Java bytecode, supports Android and generates JavaScript. The latest version of the language is Kotlin M5.3

Kotlin project website is at kotlin.jetbrains.org.

All the codes here can be copied and run on Kotlin online editor.

Let's get started.

@drbobrinkman
drbobrinkman / readinglist.md
Last active October 3, 2016 18:39
List of important/influential readings for computer scientists.

A non-CS colleague asked me to recommend readings that would help non-CS people understand CS/SE/Coding people. In addressing her question I realized that "CS books" are not a good place to start, that the shared culture of CS/SE/Coding includes many other signifiers.

There really isn't any single book that every computer scientist would be familiar with, and this list overlaps significantly with other "geeky" subcultures.

In bold are my top choices for things to read if you are a non-CS person looking to understand how CS people see themselves.

Culturally significant books (and other materials)

These are all very readable for non-CS folks.

@kacinskas
kacinskas / gist:4249069
Created December 10, 2012 07:38
LINUX : permanently add keys to ssh agent with config
Create file 'config' in '~/.ssh':
IdentityFile ~/.ssh/identity
IdentityFile ~/.ssh/id_rsa
IdentityFile ~/.ssh/gitid