Skip to content

Instantly share code, notes, and snippets.

Guillermo Ignacio Enriquez Gutierrez nacho4d

Block or report user

Report or block nacho4d

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
nacho4d /
Created Mar 4, 2019
My ~/.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)
nacho4d / .hyper.js
Created Feb 11, 2019
hyper terminal configuration file
View .hyper.js
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See 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 / URLRequest + CurlCommand.swift
Created Dec 11, 2018
extension to print an NSURLRequest as a curl command (ready to be copy and pasted onto terminal, etc)
View URLRequest + CurlCommand.swift
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 / BinaryDelegate.swift
Last active May 5, 2018
Delegate class to be used with MFP8 iOS SDK -[WLResourceRequest sendWithDelegate:] method
View BinaryDelegate.swift
// BinaryDelegate.swift
// BinaryResponse
// Based on Nathan Hazout's BinaryDelegate
import UIKit
nacho4d / git-lint
Last active Aug 18, 2017
use swiftlint to lint only modified or stagged files
View git-lint
#! /bin/bash
# Usage:
# Place this file somewhere in your PATH (and make sure it is executable) then call it like `git lint`
# Check swiftlint
command -v swiftlint >/dev/null 2>&1 || { echo >&2 "git-lint requires swiftlint but it's not installed. Aborting."; exit 1; }
# Create a temp file
nacho4d /
Created Feb 22, 2017
Read body of HttpURLConnection as String
public class Sample {
View env.c
#include <stdio.h>
#include <stdlib.h>
int main(void) {
printf("GIT_SSL_NO_VERIFY: %s\n", getenv("GIT_SSL_NO_VERIFY"));
if (getenv("GIT_SSL_NO_VERIFY"))
printf("evaluated as TRUE\n");
printf("evaluated as FALSE\n");
nacho4d / server.xml
Last active Aug 29, 2016
My server.xml
View server.xml
<server description="Liberty beta">
<!-- To enable Swagger -->
<!-- Default stuff -->
nacho4d / launch.json
Created Aug 23, 2016
.vscode/launch.json for Google Chrome Canary
View launch.json
"version": "0.2.0",
"configurations": [
"name": "Launch index.html",
"type": "chrome",
"request": "launch",
"file": "${workspaceRoot}/index.html",
"userDataDir": "${workspaceRoot}/out/chrome",
"runtimeExecutable": "/Applications/Google Chrome Chrome Canary"
nacho4d / exampleJson.js
Created Aug 3, 2016
javax.json is too much hassle
View exampleJson.js
keyString: "String",
keyBoolean: true,
keyArraySimple: [
keyArrayObject: [
You can’t perform that action at this time.