Skip to content

Instantly share code, notes, and snippets.

View iketiunn's full-sized avatar

ike iketiunn

View GitHub Profile
@iketiunn
iketiunn / .gitconfig
Last active July 8, 2024 05:39
git/git-snippet/git-flow/
[color]
ui = true
[core]
editor = vim
excludesfile = ~/.gitignore_global
[alias]
cm = commit -m
co = checkout
st = status
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
@iketiunn
iketiunn / commands.md
Last active June 30, 2016 08:56
Some useful cli commands

Parse json with python

λ curl http://somewhere/data.json | python -m json.tool

Search file by content

Search dir . with conetent partten abc and files with *.php

λ grep --include=\*.php -rnw . -e "abc" 
@iketiunn
iketiunn / no-ip-setting.md
Last active July 3, 2024 15:13
no-ip on Linux machine

After create a account on no-ip.com

Dynamic DNS Update Client (DUC) for Linux

wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
tar vzxf noip-duc-linux.tar.gz
cd noip-2.1.9-1
make
sudo make install
@iketiunn
iketiunn / Lec1b.md
Last active August 9, 2016 03:03
SICP

Computational modle

substition modle

Linear Iteration time = O(n) space = O(1)

Linear Recursion time = O(x) space = O

@iketiunn
iketiunn / zeromq-vs-redis.md
Created October 9, 2016 07:47 — forked from hmartiro/zeromq-vs-redis.md
Comparison of ZeroMQ and Redis for a robot control platform

ZeroMQ vs Redis

This document is research for the selection of a communication platform for robot-net.

Goal

The purpose of this component is to enable rapid, reliable, and elegant communication between the various nodes of the network, including controllers, sensors, and actuators (robot drivers). It will act as the core of robot-net to create a standardized infrastructure for robot control.

Requirements:

@iketiunn
iketiunn / genaral.sh
Last active September 11, 2018 03:26
bash-snippet / bash
# Redireact stdout to date-named file
λ echo '123' >> "$(date -d 'yesterday 01:00' '+%Y-%m-%d').log"
λ ls
2018-09-10.log
@iketiunn
iketiunn / amazon.md
Last active September 21, 2017 10:00
Some amazon compute cloud tips

Increase volumes in amazon console

EC2 service -> ELASTIC BLOCK STORE -> Chose your volume -> Actions -> Modify Volume

Then wait the process compelete.

Resize file system on instance

ubuntu@ip-172-31-26-7:~$ lsblk
NAME    MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda 202:0 0 20G 0 disk
@iketiunn
iketiunn / node-npm.md
Last active September 21, 2017 10:06
Node and npm environment tips or snippets
// in app root
cd node_modules && ln -nsf ../ @app

// .gitignore
node_modules/*
!node_modules/@app

// *.js
// Before
@iketiunn
iketiunn / tar.sh
Last active March 18, 2019 06:09
tar without vendor
tar -vczf targetName.tar --exclude=node_modules --exclude=.git --exclude=./vendor --exclude=./.sass-cache targetName
@iketiunn
iketiunn / index.ts
Last active November 21, 2019 04:27
(TBD) spreadsheet api example
/**
* After aquired a service account's certfication with right permisstion with spreadsheet
*/
import { google } from "googleapis"; // npm i googleapis
const serviceAccount = require('service-account-cert.json')
const auth = new google.auth.JWT(
serviceAccount.client_email,
undefined,
serviceAccount.private_key,
"https://www.googleapis.com/auth/spreadsheets",