Skip to content

Instantly share code, notes, and snippets.

View kenseii's full-sized avatar
🕸️
Downloading RAM

Agano oasis kenseii

🕸️
Downloading RAM
View GitHub Profile
@kenseii
kenseii / app.yaml
Created April 18, 2023 08:07 — forked from alukach/app.yaml
An example Github Actions for Python + Pipenv + Postgres + Pyright
# .github/workflows/app.yaml
name: My Python Project
on: push
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
services:
@kenseii
kenseii / atlas.py
Created December 2, 2022 02:55
Automating the IAM role connection to MongoDB atlas
import os
from pulumi import get_stack, get_project # so that each resource has a project & staging/dev... in AWS console
import pulumi_mongodbatlas as mongodbatlas
ACCOUNT_ID = os.environ["ACCOUNT_ID"]
ATLAS_PROJECT_ID = os.environ["ATLAS_PROJECT_ID"]
my_func_role_arn = f"arn:aws:iam::{ACCOUNT_ID}:role/{get_project()}-{get_stack()}-my-func-iam-role"
lambda_cloud_provider_access = mongodbatlas.CloudProviderAccess(
@kenseii
kenseii / log.txt
Last active November 19, 2021 14:59
5fc9ae59efb644be90cb9c22a70f6dac 9
a00f29a8ed4b4ae79738121dd03d576c 350
4945f09d164b49459c35d3f9b5ec12b7 25
8dab177516c04262abdef3f3e6200548 231
50f5f7dbcc7542a5a1241d5151d9b9e3 109
56b536ef84324182b0211679935fc370 111
1Q16BDB24243071THV0CDUDBB1 83
2T86FVL43230221LXG9CEBVKC3 224
1J34NAY88036615KLD4WYQTCA7 262
0U67MUH71544675THC7JEKFWY6 211
@kenseii
kenseii / goofys.bash
Created January 12, 2021 03:11 — forked from arfon/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 June 17, 2020 05:54 — forked from nikneroz/Guardian JWT.md
Elixir + Phoenix Framework + Guardian + JWT. This is tutorial and step by step installation guide.

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 July 18, 2019 03:21
basic feedback aggregator using rpi
# 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
@kenseii
kenseii / .zshrc
Created June 13, 2019 09:18
Mac .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
# 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 October 10, 2019 03:26
ubuntu .zshrc config
# 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 March 28, 2019 07:48 — forked from kidpixo/jupyter_shortcuts.md
Keyboard shortcuts for ipython notebook 3.1.0 / jupyter

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