Skip to content

Instantly share code, notes, and snippets.

View mospina's full-sized avatar

Manuel Ospina mospina

View GitHub Profile
@mospina
mospina / curl.md
Created July 16, 2023 23:25 — 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.

Example of jatJar task using Gradle Kotlin DSL:

val mainClass = "com.github.daggerok.Main" // replace it!

tasks {
  register("fatJar", Jar::class.java) {
    archiveClassifier.set("all")
    duplicatesStrategy = DuplicatesStrategy.EXCLUDE
 manifest {
@mospina
mospina / .vimrc
Created July 30, 2021 13:13
vimrc
filetype plugin indent on
:set tabstop=2
:set shiftwidth=2
:set expandtab
" Make vim indent 2 spaces for ruby and elixir files only
autocmd FileType ruby set tabstop=2|set shiftwidth=2|set expandtab
autocmd FileType python set tabstop=4|set shiftwidth=4|set expandtab
autocmd FileType elixir set tabstop=2|set shiftwidth=2|set expandtab
@mospina
mospina / package.yaml
Last active March 5, 2021 01:19
Set testing in stack with hspec
tests:
rayuela-test:
main: Spec.hs
source-dirs: test
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- rayuela