Skip to content

Instantly share code, notes, and snippets.

View nacho4d's full-sized avatar

Guillermo Ignacio Enriquez Gutierrez nacho4d

View GitHub Profile
@nacho4d
nacho4d / URLRequest + CurlCommand.swift
Created December 11, 2018 15:12
extension to print an NSURLRequest as a curl command (ready to be copy and pasted onto terminal, etc)
extension URLRequest {
/// Internal helper function to escape double quotes
func curlEscapeQuotes(in string: String) -> String {
return string.replacingOccurrences(of: "\"", with: "\\\"")
}
/// Curl Command string
var curlCommand: String {
guard let url = url else {
return "# No URL found"
@nacho4d
nacho4d / .hyper.js
Created February 11, 2019 12:46
hyper terminal configuration file
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
@nacho4d
nacho4d / config.fish
Created March 4, 2019 10:05
My ~/.config/fish/config.fish
set -x LANGUAGE en_US.UTF-8
set -x LANG en_US.UTF-8
set -x LC_ALL en_US.UTF-8
set -x LESSCHARSET utf-8
# Dark terminal
set -Ux LSCOLORS gxfxbEaEBxxEhEhBaDaCaD
# Java Stuff
set -x JAVA_HOME (/usr/libexec/java_home -v 1.8)