Skip to content

Instantly share code, notes, and snippets.

View Ivanknmk's full-sized avatar

Iván García Ivanknmk

View GitHub Profile
package examples.database;
import com.google.common.collect.Lists;
import examples.database.dao.PeopleDAO;
import examples.database.model.PeopleInfo;
import org.apache.commons.lang.time.StopWatch;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.Test;
import org.junit.runner.RunWith;
@Ivanknmk
Ivanknmk / fish_prompt.fish
Last active August 31, 2015 02:41 — forked from Olical/fish_prompt.fish
My fish shell lambda prompt functions (they go in ~/.config/fish/functions) it's extremely fast too! :D
# A lambda (λ) prompt.
# Green and red depending on exit status.
# Underlined if git status is dirty.
# Uppercase (Λ) if ahead of the remote.
function fish_prompt
if is_status_okay
set_color green
else
set_color red
*Stop the running EC2 instance
*Detach its /dev/sda1 volume (let's call it volume A)
*Start new t1.micro EC2 instance, using my new key pair
*Attach volume A to the new micro instance, as /dev/xvdf (or /dev/sdf)
*SSH to the new micro instance and mount volume A to /mnt/tmp
*Copy ~/.ssh/authorized_keys to /mnt/tmp/home/ubuntu/.ssh/authorized_keys
*Logout
*Terminate micro instance
*Detach volume A from it
*Attach volume A back to the main instance as /dev/sda1
Proposed stack: Playframework + AngularJS
Frontend : AngularJS
Angular is client side framework to develop web applications. It aims to simplify both the development and the testing of such applications by providing a framework for client-side model–view–controller (MVC) and model–view–viewmodel (MVVM) architectures, along with components commonly used in rich Internet applications.
Advantages:
High Re-usability – The back-end code only needs to spit out JSONs. There could be n number of clients for the same service who would be consuming these JSONs on the webapp level as well as mobile.
set nocompatible " be iMproved, required
filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'pbrisbin/vim-syntax-shakespeare'
Plugin 'rking/ag.vim'
Plugin 'tpope/vim-unimpaired'
@Ivanknmk
Ivanknmk / http-benchmark.md
Created November 17, 2016 16:53 — forked from denji/http-benchmark.md
HTTP(S) Benchmark Tools / Toolkit for testing/debugging HTTP(S) and restAPI (RESTful)

Tools

Located in alphabetical order (not prefer)

  • ab – slow and single threaded, written in C
  • apib – most of the features of ApacheBench (ab), also designed as a more modern replacement, written in C
  • baloo – Expressive end-to-end HTTP API testing made easy, written in Go (golang)
  • bombardier – Fast crossplatform HTTP benchmarking tool, written in Go (golang)
  • curl-loader – performance loading of various application services and traffic generation, written in C
  • gatling – High performance load testing framework based on Scala, Akka and Netty, write in Scala

Keybase proof

I hereby claim:

  • I am ivanknmk on github.
  • I am ivanknmk (https://keybase.io/ivanknmk) on keybase.
  • I have a public key ASADZzEANGzHmS2bdFtZh9psjuxzf3shaI6qjlLIpP7DuAo

To claim this, I am signing this object:

Process: iTerm2 [19436]
Path: /Applications/iTerm2.app/Contents/MacOS/iTerm2
Identifier: com.googlecode.iterm2
Version: 3.3.20181120 (3.3.20181120)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: iTerm2 [19436]
User ID: 501
Date/Time: 2018-11-20 20:35:41.726 +0700
@Ivanknmk
Ivanknmk / iterm2-solarized.md
Created February 2, 2020 16:39 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by