Skip to content

Instantly share code, notes, and snippets.

View jdauphant's full-sized avatar

Julien DAUPHANT jdauphant

View GitHub Profile
# Missing step in this article : https://blog.ledger.com/ssh/
# Tested on Pop OS 20.04
# If you get compilation error on "pip3 install ledger_agent" :
sudo apt install libusb-1.0-0-dev libudev-dev
pip3 install ledger_agent
# If you get "File "hid.pyx", line 74, in hid.device.open_path / OSError: open failed"
# You need udev rules from : https://support.ledger.com/hc/en-us/articles/115005165269-What-if-Ledger-Wallet-is-not-recognized-on-Linux-
wget -q -O - https://raw.githubusercontent.com/LedgerHQ/udev-rules/master/add_udev_rules.sh | sudo bash
# If you get "ledgerblue.commException.CommException: Exception : Invalid status 6804 (Unknown reason)" -> unlock your ledger and open the SSH app
### Keybase proof
I hereby claim:
* I am jdauphant on github.
* I am jdauphant (https://keybase.io/jdauphant) on keybase.
* I have a public key ASCBcq2jLCUHBl5VgaCRhNrr2UTIC7YB_Xby--el-B4LWwo
To claim this, I am signing this object:
@jdauphant
jdauphant / FoursquareAPI.swift
Created August 31, 2016 12:05
Foursquare API search venues in swift (Dependency on Result)
//
// Foursquare.swift
//
//
import Foundation
import Result
public struct FoursquareService {
private enum Constants {
production/
ansible_hosts # inventory file for production servers
group_vars/
group1 # here we assign variables to particular groups for production
group2 # ""
host_vars/
hostname1 # if production systems need specific variables, put them here
hostname2 # ""
files/
{% for v in item.server.vars %}
{{ v.replace(";",";\n ").replace("{","{\n ") }}{% if v.find('{') == -1%} ;{% endif %}
{% endfor %}
nginx_sites:
- server:
file_name: bar
vars:
- listen 9090
- server_name ansible
- root "/tmp/site2"
- location / {
try_files $uri $uri/ /index.html;
}