Skip to content

Instantly share code, notes, and snippets.

View lkraider's full-sized avatar

Paul Eipper lkraider

View GitHub Profile
@lkraider
lkraider / How to link Sublime Text Build system to Python 3.md
Last active December 9, 2018 05:12 — forked from zaemiel/How to link Sublime Text Build system to Python 3
Parse python error message and display in overlay
@lkraider
lkraider / iam-terraform-create-policy.tf
Created July 7, 2017 22:31 — forked from arsdehnel/iam-terraform-create-policy.tf
AWS IAM policies for running Terraform from an EC2 instance.
resource "aws_iam_policy" "terraform_create_policy" {
name = "terraform_create_policy"
path = "/"
policy = "${data.aws_iam_policy_document.terraform_create_policy.json}"
}
data "aws_iam_policy_document" "terraform_create_policy" {
statement {
sid = "1"
actions = [
@lkraider
lkraider / binConverter.py
Last active June 21, 2017 22:40 — forked from mvallebr/binConverter.py
Exemplo de conversão de decimal para binário
print(bin(int(input("Escolha um número decimal para transformar em binario: ")))[2:])
@lkraider
lkraider / dockerrun-jsen-schema.json
Last active August 17, 2021 16:54 — forked from sordina/dockerrun-jsen-schema.json
jsen schema to validate Dockerrun.aws.json files
{
"type": "object",
"required": [
"AWSEBDockerrunVersion",
"containerDefinitions",
"volumes"
],
"properties": {
"AWSEBDockerrunVersion": {
"type": "integer",
@lkraider
lkraider / mac-osx-el-captain-commands.sh
Last active April 24, 2016 11:00 — forked from rahul286/mac-osx-el-captain-commands.sh
Updating to Mac El Capitan using downloaded pkg file
#!/bin/sh
set -ex
## El Capitan Download
## based on https://github.com/lioonline/OS-X-El-Capitan
## and https://7labs.heypub.com/tips-tricks/el-capitan-direct-download.html
## pkg file link - version 10.11.4
HOST="http://osxapps.itunes.apple.com"
PATH="/apple-assets-us-std-000001/Purple69/v4/6a/c9/bc/6ac9bcc0-71a4-9b73-bb59-c1b053df10b9/"
@lkraider
lkraider / sol.py
Last active August 28, 2015 16:36 — forked from CleitonDeLima/sol.py
import fileinput
MAX = 0
P = 10000
def identidade(matriz):
for i in range(MAX):
for j in range(MAX):
matriz[i][j] = int((i == j))
@lkraider
lkraider / custom_schematics_type.py
Last active December 18, 2015 22:38 — forked from JensRantil/custom_schematics_type.py
Demonstrating the convert -> validate -> primitive structure
#!/bin/env python2.7
from schematics.models import Model
from schematics.types import StringType
from schematics.exceptions import ValidationError
class EventType(StringType):
DIVIDER = ':'
@lkraider
lkraider / BasicExample.md
Last active December 14, 2015 13:28 — forked from zdne/BasicExample.md

Format: 1A Host: http://blog.acme.com

Basic ACME Blog API

Welcome to the ACME Blog API. This API provides access to the ACME Blog service.


@lkraider
lkraider / gist:59254
Created February 6, 2009 06:27
Ubiquity I'm Feeling Lucky google search
/* Based on Royall's original quicky script:
* http://gist.github.com/16507
*/
CmdUtils.CreateCommand({
name: "quicky",
icon: "http://www.google.com/favicon.ico",
homepage: "http://lkraider.eipper.com.br/ubiquity",
author: { name: "Paul Eipper", email: "paul@eipper.com.br"},
license: "GPL",
description: "Perform an I'm Feeling Lucky google search on the preview pane",