Skip to content

Instantly share code, notes, and snippets.

Avatar
🚽
住まいは川沿い

Agano oasis kenseii

🚽
住まいは川沿い
View GitHub Profile
View log.txt
5fc9ae59efb644be90cb9c22a70f6dac 9
a00f29a8ed4b4ae79738121dd03d576c 350
4945f09d164b49459c35d3f9b5ec12b7 25
8dab177516c04262abdef3f3e6200548 231
50f5f7dbcc7542a5a1241d5151d9b9e3 109
56b536ef84324182b0211679935fc370 111
1Q16BDB24243071THV0CDUDBB1 83
2T86FVL43230221LXG9CEBVKC3 224
1J34NAY88036615KLD4WYQTCA7 262
0U67MUH71544675THC7JEKFWY6 211
View goofys.bash
# Install go
$ sudo apt-get install golang-go
# Download goofys package
$ go get github.com/kahing/goofys
# Install goofys
$ go install github.com/kahing/goofys
# Copy the goofys binary to somewhere in your path
@kenseii
kenseii / Guardian JWT.md
Created Jun 17, 2020 — forked from nikneroz/Guardian JWT.md
Elixir + Phoenix Framework + Guardian + JWT. This is tutorial and step by step installation guide.
View Guardian JWT.md

Elixir + Phoenix Framework + Guardian + JWT + Comeonin

Preparing environment

We need to generate secret key for development environment.

mix phoenix.gen.secret
# ednkXywWll1d2svDEpbA39R5kfkc9l96j0+u7A8MgKM+pbwbeDsuYB8MP2WUW1hf

Let's generate User model and controller.

@kenseii
kenseii / feedback.py
Last active Jul 18, 2019
basic feedback aggregator using rpi
View feedback.py
# import libraries and basic configs
import RPi.GPIO as GPIO # Import Raspberry Pi GPIO library
GPIO.setwarnings(False) # Ignore warning for now
GPIO.setmode(GPIO.BOARD) # Use physical pin numbering
from influxdb import InfluxDBClient
import time
client = InfluxDBClient('localhost', 8086, 'root', 'root', 'customer_servicedb') # c$
# set good and bad pin
View .zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/oasis/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
View Elixir Videos
# Basic Syntax
Introduction to Elixir https://www.youtube.com/watch?v=DltjeuB4Cu0
# Intermediate Syntax
Tutoriel Elixir : Découverte du langage Elixir https://www.youtube.com/watch?v=1hl_z9-QO9c
# Basics of OTP
The ABCs of OTP - Jesse J. Anderson https://www.youtube.com/watch?v=4SCwubzqsVU
@kenseii
kenseii / .zshrc
Last active Oct 10, 2019
ubuntu .zshrc config
View .zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/oasis/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
@kenseii
kenseii / jupyter_shortcuts.md
Created Mar 28, 2019 — forked from kidpixo/jupyter_shortcuts.md
Keyboard shortcuts for ipython notebook 3.1.0 / jupyter
View jupyter_shortcuts.md

Toc

Keyboard shortcuts

The IPython Notebook has two different keyboard input modes. Edit mode allows you to type code/text into a cell and is indicated by a green cell border. Command mode binds the keyboard to notebook level actions and is indicated by a grey cell border.

MacOS modifier keys:

  • ⌘ : Command
@kenseii
kenseii / counter.exs
Created Mar 24, 2019
Elixir counting w,l,c
View counter.exs
filename =
IO.gets("File to count the words from (h for help):\n")
|> String.trim
if filename == "h" do
IO.puts """
Usage: [filename] -[flags]
Flags
-l displays line count
-c displays character count
@kenseii
kenseii / bitcoinRPC.py
Created Nov 6, 2017 — forked from ptabatt/bitcoinRPC.py
This is the backend for a Bitcoin RPC Plugin for the Web2py Framework
View bitcoinRPC.py
#!/usr/bin/env python
# coding: utf8
from gluon import *
from jsonrpc import ServiceProxy
import re
#access is a Server Proxy object between web2py and the command
#line program bitcoind using the session variables you supplied
#in the index page