Skip to content

Instantly share code, notes, and snippets.

View philippeback's full-sized avatar
👽
Hackin'

Philippe Back philippeback

👽
Hackin'
View GitHub Profile
@unrelentingfox
unrelentingfox / kraken-avg-cost.py
Last active July 4, 2024 07:58
A python script that queries all of your historic trades and calculates the average price you purchased coins at. This was a quick script based on the examples found here: https://docs.kraken.com/rest/. I am open to feedback!!
#!/usr/local/bin/python3
import base64
import hashlib
import hmac
import json
import os
import requests
import time
import urllib.parse
@abajwa-hw
abajwa-hw / deploy_hdf31.sh
Last active September 19, 2018 12:10
Automation to deploy HDF 3.1 on RHEL 7
#!/usr/bin/env bash
# Launch Centos/RHEL 7 Vm with at least 4 cores / 16Gb mem / 60Gb disk
# Then run:
# curl -sSL https://gist.github.com/abajwa-hw/b7c027d9eea9fbd2a2319a21a955df1f/raw | sudo -E sh
export ambari_password=${ambari_password:-StrongPassword}
export db_password=${db_password:-StrongPassword}
export nifi_password=${nifi_password:-StrongPassword}
export ambari_services="ZOOKEEPER STREAMLINE NIFI KAFKA STORM REGISTRY NIFI_REGISTRY AMBARI_METRICS"
export cluster_name=${cluster_name:-hdf}
@bzz
bzz / PharoMoosSmaCC.jpg
Last active December 7, 2018 17:24
Open Source Day: learning Smalltalk
PharoMoosSmaCC.jpg
@roycewilliams
roycewilliams / diceware-superset.txt
Last active May 14, 2020 22:06
diceware-superset.txt
# 17020 words.
# Goal: recognizable, unambiguous words for most semi-fluent speakers of English.
# Superset of diceware-improved, the GPG wordlist, and BIP-39:
# * https://github.com/heartsucker/diceware
# * https://en.wikipedia.org/wiki/PGP_word_list
# * https://github.com/bitcoin/bips/blob/master/bip-0039/english.txt
a
aardvark
abacus
abandon
@DigiTec
DigiTec / README.md
Last active December 19, 2016 18:02
Transform a React VR CLI project into an OVRUI project. To get started `npm install -g react-vr-cli` for the React VR CLI to make new projects. Then `react-vr init PROJECT_NAME' to create a project directory with all of the React VR code. From here you can copy the below files into the root and they will automatically reference the node_modules …

Transform a React VR CLI project into an OVRUI project.

To get started npm install -g react-vr-cli for the React VR CLI to make new projects.

Then react-vr init PROJECT_NAME to create a project directory with all of the React VR code.

From here you can copy the below files into the root and they will automatically reference the node_modules versions of THREE and OVRUI.

@rogeriopradoj
rogeriopradoj / 1.md
Created November 24, 2016 12:50
How to install asciinema on AWS EC Ubuntu 14.04 LTS - https://asciinema.org/docs/installation
# include ppa for asciinema
sudo apt-add-repository ppa:zanchey/asciinema
# update registry
sudo apt-get update
# install dependencies
sudo apt-get install python-setuptools python3-setuptools
# finally install asciinema
sudo apt-get install asciinema
@peteruhnak
peteruhnak / Nautilus Shortcuts.md
Last active April 5, 2019 22:36
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).

@jdevoo
jdevoo / tg2p.st
Last active May 27, 2024 21:48
Not so Terse Guide to Pharo
"**************************************************************************
* Allowable characters: *
* - a-z *
* - A-Z *
* - 0-9 *
* - .+/\*~<>@%|&? *
* - blank, tab, cr, ff, lf *
* *
* Variables: *
* - variables must be declared before use *
@Xarkam
Xarkam / firewall.sh
Last active November 29, 2017 19:44
Iptables flush and define
#!/bin/sh
# How to block a scanner on your server for example “w00tw00t.at.ISC.SANS” using $ipt?
# $ipt -I INPUT -p tcp --dport 80 -m string --algo bm --string 'GET /w00tw00t.at.ISC.SANS.' -j DROP
# Check if ran with root permissions
if [ `id -u` -ne 0 ]; then
echo "The script must be run as root! (you can use sudo)"
exit 1
fi
@jamestalmage
jamestalmage / forward.md
Last active April 9, 2024 17:21
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.