Skip to content

Instantly share code, notes, and snippets.

@BenNG
BenNG / quicktile.cfg
Created December 12, 2017 10:41
QuickTile
[general]
cfg_schema = 1
ColumnCount = 3
UseWorkarea = True
ModMask = <Ctrl><Alt>
MovementsWrap = True
[keys]
C = move-to-center
H = horizontal-maximize
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get install vim git tree htop firefox cmake tmux `# general stuff` \
nodejs yarn `# general stuff` \
python-software-properties software-properties-common `#to use add-apt-repository` \
= Fitness and Nutrition Recommendations
:neo4j-version: 2.3.2
:author: Benjamin Nussbaum
:twitter: @bennussbaum
== Introduction
I was recently motivated to re-imagine the BeachBody fitness programs and nutritional supplements as a graph with the goal being to recommend fitness programs, nutritional supplements and other users that would be personalized to my user persona.
For those that don’t know, BeachBody is responsible for P90X, INSANITY, T25 and a plethora of others that they’ve been distributing via DVD for years.
== The Project
@BenNG
BenNG / gist:12f17c4f0f280f192e2d
Last active August 29, 2015 14:21
django auth perms
Here Is my solution
In the shell
```
# create perms
from django.contrib.auth.models import User,Permission
from account.models import Article
from django.contrib.contenttypes.models import ContentType
content_type = ContentType.objects.get_for_model(Article)
Permission.objects.create(codename='can_view_odd_ids', name= 'can_view_odd_ids', content_type=content_type)
Permission.objects.create(codename='can_view_even_ids', name= 'can_view_even_ids', content_type=content_type)
<C>\<T>\<D> _ <R>
@BenNG
BenNG / 0_apt_install
Last active October 17, 2019 07:32
init-linux
# notes
# gopro memory: exfat-utils
# mp3,rip pacpl
#node gcc g++ clang make
sudo apt-get install -y gcc g++ clang make zsh apt-transport-https pacpl sudo vim git gitk vlc gimp tree htop tmux curl network-manager-openvpn network-manager-openvpn-gnome exfat-utils jq gvfs-backends gvfs-bin audacity parallel silversearcher-ag
#ubuntu16-04, redshift-gtk regle automatiquement lumunosité
sudo apt-get install -y git gitk redshift-gtk terminator
- keep
- ohmyzsh