Skip to content

Instantly share code, notes, and snippets.

@roadrunner2
roadrunner2 / 0 Linux-On-MBP-Late-2016.md
Last active May 7, 2024 13:38
Linux on MacBook Pro Late 2016 and Mid 2017 (with Touchbar)

Introduction

This is about documenting getting Linux running on the late 2016 and mid 2017 MPB's; the focus is mostly on the MacBookPro13,3 and MacBookPro14,3 (15inch models), but I try to make it relevant and provide information for MacBookPro13,1, MacBookPro13,2, MacBookPro14,1, and MacBookPro14,2 (13inch models) too. I'm currently using Fedora 27, but most the things should be valid for other recent distros even if the details differ. The kernel version is 4.14.x (after latest update).

The state of linux on the MBP (with particular focus on MacBookPro13,2) is also being tracked on https://github.com/Dunedan/mbp-2016-linux . And for Ubuntu users there are a couple tutorials (here and here) focused on that distro and the MacBook.

Note: For those who have followed these instructions ealier, and in particular for those who have had problems with the custom DSDT, modifying the DSDT is not necessary anymore - se

@Tiagoperes
Tiagoperes / sbx.c
Last active September 29, 2023 07:57
Routine for real variable SBX crossover taken from the author's implementation (Kalyanmoy Deb)
/* Routine for real variable SBX crossover taken from the author's implementation (Kalyanmoy Deb).
*
* Paper describing the algorithm:
* Title: An Efficient Constraint Handling Method for Genetic Algorithms
* Author: Kalyanmoy Deb
* More info: Appendix A. Page 30.
* URL: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.33.7291&rep=rep1&type=pdf
*
* Commentaries by Tiago Peres França.
*
@bearfrieze
bearfrieze / comprehensions.md
Last active December 23, 2023 22:49
Comprehensions in Python the Jedi way

Comprehensions in Python the Jedi way

by Bjørn Friese

Beautiful is better than ugly. Explicit is better than implicit.

-- The Zen of Python

I frequently deal with collections of things in the programs I write. Collections of droids, jedis, planets, lightsabers, starfighters, etc. When programming in Python, these collections of things are usually represented as lists, sets and dictionaries. Oftentimes, what I want to do with collections is to transform them in various ways. Comprehensions is a powerful syntax for doing just that. I use them extensively, and it's one of the things that keep me coming back to Python. Let me show you a few examples of the incredible usefulness of comprehensions.

@d2s
d2s / installing-node-with-nvm.md
Last active March 13, 2024 12:09
Installing Node.js to Linux & macOS & WSL with nvm

Installing Node.js with nvm to Linux & macOS & WSL

A quick guide on how to setup Node.js development environment.

Install nvm for managing Node.js versions

nvm allows installing several versions of Node.js to the same system. Sometimes applications require a certain versions of Node.js to work. Having the flexibility of using specific versions can help.

  1. Open new Terminal window.
@Morgul
Morgul / Readme.md
Last active July 7, 2019 09:16
Rocket.Chat Docker deployment and update script

Rocket.Chat Docker Deployment

Setup

  1. Pull down all of the files from this gist.
  2. Update <<YOUR_URL_HERE>> in docker-compose.yml and <<YOUR_PROJECT_NAME_HERE>> in update.sh.
  3. Run ./update.sh.

From this point onward, you just run ./update.sh whenever you want to update your docker image. Alternatively, you can put the update script in a cron job, and update it however often you want.

@darribas
darribas / .gitignore
Last active April 1, 2024 18:45
LISA cluster maps with `PySAL`
.ipynb_checkpoints/
@staltz
staltz / introrx.md
Last active May 7, 2024 09:38
The introduction to Reactive Programming you've been missing
#!/bin/bash
# fork from https://community.webfaction.com/questions/8894/installing-mosh
# set up standard build environment
mkdir -p $HOME/src $HOME/tmp
export C_INCLUDE_PATH="$HOME/include:$C_INCLUDE_PATH"
export LIBRARY_PATH="$HOME/lib:$LIBRARY_PATH"
export LD_LIBRARY_PATH="$HOME/lib:$LD_LIBRARY_PATH"
export CPPFLAGS="-I$HOME/include $CPPFLAGS"
export LDFLAGS="-L$HOME/lib $LDFLAGS"