Skip to content

Instantly share code, notes, and snippets.

View Ivanknmk's full-sized avatar

Iván García Ivanknmk

View GitHub Profile
@Ivanknmk
Ivanknmk / curl.md
Created April 15, 2023 16:02 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@Ivanknmk
Ivanknmk / config.el
Created July 17, 2022 03:50 — forked from Khady/config.el
OCaml and Reasonml emacs configuration
(use-package company
:ensure t
:custom
(company-quickhelp-delay 0)
(company-tooltip-align-annotations t)
:hook
((prog-mode utop-mode) . company-mode)
:config
(company-quickhelp-mode 1)
:bind

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
@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

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

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:

@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
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'
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.
*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