Skip to content

Instantly share code, notes, and snippets.

View philippeback's full-sized avatar
👽
Hackin'

Philippe Back philippeback

👽
Hackin'
View GitHub Profile
@philippeback
philippeback / Nautilus Shortcuts.md
Created April 11, 2017 15:49 — forked from peteruhnak/Nautilus Shortcuts.md
Pharo Nautilus Shortcuts Cheatsheet

Nautilus Shortcuts Cheatsheet

All shortcut keys are with the Meta key, e.g. F P = Meta+F Meta+P.

Meta key depends on your platform (Ctrl for Linux, Alt for Windows).

Running shortcuts from code editor

Unfortunately when you are in the source code editor, the editor will consume most of the shortcuts which is annoying as **** (some, such as running tests seems to always work though).

@philippeback
philippeback / Nautilus Shortcuts.md
Created April 11, 2017 15:49 — forked from peteruhnak/Nautilus Shortcuts.md
Pharo Nautilus Shortcuts Cheatsheet

Nautilus Shortcuts Cheatsheet

All shortcut keys are with the Meta key, e.g. F P = Meta+F Meta+P.

Meta key depends on your platform (Ctrl for Linux, Alt for Windows).

Running shortcuts from code editor

Unfortunately when you are in the source code editor, the editor will consume most of the shortcuts which is annoying as **** (some, such as running tests seems to always work though).

@philippeback
philippeback / forward.md
Created March 12, 2017 17:42 — forked from jamestalmage/forward.md
Using Firebase to Authenticate to Google Drive

Note: There is a lot of information here, but if I have provided a link, it is probably something you should click on and read. OAuth is a complex enough subject on it's own, and hacking these two services together only adds to it.

Even so, I have found Firebase's API to be simpler than almost any other OAuth solution I have explored. When all is said and done, the important bits of code related to authentication is actually less than 10 lines. If you have ever tried to implement your own OAuth flow before, you know how amazing that is.

In the end, it may be worth using Firebase for authentication, even if that's the ONLY thing you use it for.

@philippeback
philippeback / forward.md
Created March 12, 2017 17:42 — forked from jamestalmage/forward.md
Using Firebase to Authenticate to Google Drive

Note: There is a lot of information here, but if I have provided a link, it is probably something you should click on and read. OAuth is a complex enough subject on it's own, and hacking these two services together only adds to it.

Even so, I have found Firebase's API to be simpler than almost any other OAuth solution I have explored. When all is said and done, the important bits of code related to authentication is actually less than 10 lines. If you have ever tried to implement your own OAuth flow before, you know how amazing that is.

In the end, it may be worth using Firebase for authentication, even if that's the ONLY thing you use it for.

@philippeback
philippeback / ambari.md
Created November 15, 2016 15:00
ambari setup

Ambari uses a local postgres db by default.This page describes how to use ambari-server with remote postgres server.

Install

Ambari is installed on centos 6.4 with the following command:

curl -so /etc/yum.repos.d/ambari.repo http://public-repo-1.hortonworks.com/ambari/centos6/1.x/GA/ambari.repo
yum repolist
yum -y install ambari-server
@philippeback
philippeback / ambari.md
Created November 15, 2016 15:00
ambari setup

Ambari uses a local postgres db by default.This page describes how to use ambari-server with remote postgres server.

Install

Ambari is installed on centos 6.4 with the following command:

curl -so /etc/yum.repos.d/ambari.repo http://public-repo-1.hortonworks.com/ambari/centos6/1.x/GA/ambari.repo
yum repolist
yum -y install ambari-server
@philippeback
philippeback / ambari.md
Created November 15, 2016 15:00
ambari setup

Ambari uses a local postgres db by default.This page describes how to use ambari-server with remote postgres server.

Install

Ambari is installed on centos 6.4 with the following command:

curl -so /etc/yum.repos.d/ambari.repo http://public-repo-1.hortonworks.com/ambari/centos6/1.x/GA/ambari.repo
yum repolist
yum -y install ambari-server
@philippeback
philippeback / gist:a8052ce572a687ebe830d301121268dc
Created October 23, 2016 23:13 — forked from seandenigris/gist:1438930
Sample Metacello Workflow
"Describe Project Structure to Create configuration"
MetacelloToolBox
createBaseline: '1.0-baseline'
for: 'SimpleApplescript' "Project name"
repository: 'http://squeaksource.com/SPDPlayground'
requiredProjects: #('OSProcess')
packages: #('CommandShell-Piping' 'SimpleApplescript')
repositories: #()
dependencies: {
('SimpleApplescript' -> #('CommandShell-Piping')).
@philippeback
philippeback / d3lib.md
Last active August 29, 2015 14:23 — forked from widged/d3lib.md

chartFactory

/affini-tech/ChartFactory

Based on D3.JS and Dimple, ChartFactory provide the ability to build quickly D3.JS charts without coding any lines of javascript. Just define your dashboard in a JSON and voila !

charts: [
        {id:'chart1',
         width:800,height:250,

xAxis:{type:'Category',field: "Month",orderRule:'Date'},

# tmux-mouse-toggle
# via http://qiita.com/kawaz/items/7b15e18ca8e072c1dc57
if [[ -n $TMUX ]]; then
if [[ -z "$(tmux show-options -gw mode-mouse | grep off)" ]]; then
tmux set-option -gq mouse-utf8 off
tmux set-option -gq mouse-resize-pane off
tmux set-option -gq mouse-select-pane off
tmux set-option -gq mouse-select-window off
tmux set-window-option -gq mode-mouse off