Skip to content

Instantly share code, notes, and snippets.

View kamihouse's full-sized avatar

Thiago Pereira kamihouse

View GitHub Profile
OSX 10.9 Mavericks
https://apps.apple.com/app/id675248567
OS X 10.10 Yosemite
https://apps.apple.com/app/id915041082
OS X 10.11 El Capitan
https://apps.apple.com/app/id1147835434
macOS 10.12 Sierra
@Thakurvaibhav
Thakurvaibhav / sample-ecs-deploy.json
Created November 6, 2018 07:31
Sample deploy.json file used in https://www.linkedin.com/pulse/learners-guide-deploying-docker-ecs-using-gitlab-ci-vaibhav-thakur/ . family and containerDefinitions.name are also generated when you create first ecs deployment from the console.
{
"containerDefinitions": [
{
"memory": 600,
"portMappings": [
{
"hostPort": 0,
"containerPort": 3000,
"protocol": "tcp"
},
#All the environment variables are defined under Settings > CI/CD > Secret Variables section
image: docker:latest
variables:
DOCKER_DRIVER: overlay2
services:
- docker:dind
stages:
- build_dev
@barryvdh
barryvdh / _ide_helper.php
Last active October 24, 2024 17:13
Laravel IDE Helper for Netbeans / PhpStorm / Sublime Text 2 CodeIntel, generated using https://github.com/barryvdh/laravel-ide-helper
<?php
/**
* A helper file for Laravel 5, to provide autocomplete information to your IDE
* Generated for Laravel 5.5.13 on 2017-09-28.
*
* @author Barry vd. Heuvel <[email protected]>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
namespace {
exit("This file should not be included, only analyzed by your IDE");
@drewjoh
drewjoh / custom.js
Created January 27, 2012 13:55
Dynamic (AJAX) loaded Bootstrap Modal (Bootstrap 2.1)
$(document).ready(function() {
// Support for AJAX loaded modal window.
// Focuses on first input textbox after it loads the window.
$('[data-toggle="modal"]').click(function(e) {
e.preventDefault();
var url = $(this).attr('href');
if (url.indexOf('#') == 0) {
$(url).modal('open');
} else {
#!/bin/bash
# --- Version history ---
# 0.4: added variable to store file path, and $2 for base file name
# added variable to store desired reporting interval
# 0.3: added $1 to send in process ID at run time.
# 0.2: switched to $SECONDS for the loop. works.
# 0.1: didn't work well at all.
# --- Version history ---
# Usage: cputrack [PID] [filename]