Skip to content

Instantly share code, notes, and snippets.

View csantanapr's full-sized avatar
🏠
Working from home

Carlos Santana csantanapr

🏠
Working from home
View GitHub Profile
@tlberglund
tlberglund / git-loglive
Last active September 26, 2024 20:40
Log Live Git Command
#!/bin/bash
while :
do
clear
git --no-pager log --graph --pretty=oneline --abbrev-commit --decorate --all $*
sleep 1
done

Chrome on OSX

  • sans-serif 100 = Helvetica Light
  • sans-serif 200 = Helvetica Light
  • sans-serif 300 = Helvetica Light
  • sans-serif 400 = Helvetica Regular
  • sans-serif 500 = Helvetica Regular
  • sans-serif 600 = Helvetica Bold
  • sans-serif 700 = Helvetica Bold
@boyney123
boyney123 / run_ionic_app_on_all_connected_android_devices.sh
Last active September 29, 2015 06:56
Simple bash script to remove, build, install and launch your ionic app on all connected android devices (android simulators or actual devices).
#!/bin/sh
#Your app id which can be found in your config.xml file (widget id)
app=com.ionicframework.myNewApp
pathToAPK=platforms/android/build/outputs/apk/android-debug.apk
echo "Running Ionic Build"
ionic build
@revolunet
revolunet / cordova-tips.md
Last active August 10, 2022 22:44
Cordova iOS tips

General

  • create a single page javascript application
  • be as low-level as possible to be able to control performance (=minimize layers)
  • masterize your dev/build environnement so you can work/play nicely

Debug apps

  • Open safari console in development menu with simulator or attached devices (enable debug in ipad/safari dev options)
  • debug your app from xcode to get native debugger and performance metrics
@lattner
lattner / async_swift_proposal.md
Last active October 29, 2024 18:53 — forked from oleganza/async_swift_proposal.md
Concrete proposal for async semantics in Swift

Async/Await for Swift

Introduction

Modern Cocoa development involves a lot of asynchronous programming using closures and completion handlers, but these APIs are hard to use. This gets particularly problematic when many asynchronous operations are used, error handling is required, or control flow between asynchronous calls gets complicated. This proposal describes a language extension to make this a lot more natural and less error prone.

This paper introduces a first class Coroutine model to Swift. Functions can opt into to being async, allowing the programmer to compose complex logic involving asynchronous operations, leaving the compiler in charge of producing the necessary closures and state machines to implement that logic.

@tinogomes
tinogomes / DNS_TO_LOCALHOST.markdown
Last active November 13, 2024 15:10
Public DNS Pointing to localhost (127.0.0.1)

Available Public Wildcard DNS Domains pointing to localhost (127.0.0.1)

The best way to safely and securely use local domains pointing to 127.0.0.1 is to edit your local settings (/etc/hosts) and add your own settings. Keep in mind if you want to use subdomains, you need to enter all variations.

Example:

# Adding bottom of your current file /etc/hosts
################# MY LOCAL DOMAINS
127.0.0.1 local.com admin.local.com
127.0.0.1 domain1.com
@csantanapr
csantanapr / scala.md
Last active October 20, 2018 16:26
OpenWhisk Scala Action

Create Directory structure

$ tree
.
├── Hello.scala
├── build.sbt
└── project
    └── plugins.sbt
KUBERNETES_VERSION=${KUBERNETES_VERSION:-v1.12.0}
MEMORY=${MEMORY:-10240}
CPUS=${CPUS:-4}
DISK_SIZE=${DISK_SIZE:-50g}
VM_DRIVER=${VM_DRIVER:-$(minikube config get vm-driver 2>/dev/null || echo "virtualbox")}
# configure knative profile
minikube profile knative
minikube config set kubernetes-version ${KUBERNETES_VERSION}
minikube config set memory ${MEMORY}
AWSTemplateFormatVersion: "2010-09-09"
Description: Subnet IP Monitor
Parameters:
Name:
Type: String
Default: "Subnet-IP-Monitor"
Tag:
Type: String
Description: Subnet Tag to filter
@wolfecameron
wolfecameron / llm_preso_links_2.txt
Created August 10, 2023 13:42
LLM Presentation Links (EY Week #2)