Skip to content

Instantly share code, notes, and snippets.

View mechazod's full-sized avatar
🎯
Focusing

Mar Mejia mechazod

🎯
Focusing
  • PH, MNL
View GitHub Profile
@mechazod
mechazod / serials_ps_cs6.txt
Created April 21, 2016 19:11
Photoshop CS6
1330-1147-9851-4130-3716-7375
1330-1813-5332-3018-4123-4267
1330-1051-6550-8129-0825-6051
1330-1422-5419-8706-7784-9778
1330-1190-8727-8855-7379-9047
1330-1167-8857-3801-9962-4540
1330-1789-8301-0298-0184-8899
1330-1269-7959-3810-9366-9145
1330-1971-4830-5668-6067-1762
1330-1912-2628-0850-0232-4869
@mechazod
mechazod / android_shared_library.md
Created April 22, 2016 07:44
Getting Started with a library project in Android Studio

Getting Started with a library project in Android Studio

So we're working on creating Android Material Awesome, a library which will hopefully incorperate the benefits of Material Design, Twitter's Bootstrap, and FontAwesome. What we really wanted is a project other people can easily include into their projects using gradle dependencies. To do this we needed to create a standalone library project so we could make it as lightweight as possible for including as a dependency, and a sample app that would use it for testing. These are the steps we took to get started in Android Studio (version 1.1).

Create Projects

The first thing we needed to do was to create two new projects, with all the default settings (Blank Activity etc). One for our sample app, and one for our library. We added both of ours into the same GitHub repo, however you can save them wherever you like.

Fix Up Library Project

https://en.wikipedia.org/wiki/List_of_router_and_firewall_distributions
This is a list of operating system distributions designed for use as the operating system of a computer acting as a router and/or firewall.
Name Status Type Architecture License Cost Description
Alpine Linux Active Linux distribution x86, x86-64, ARM Open source Free Linux distribution running from a RAM drive. Its original target was small appliances like routers, VPN gateways, or embedded x86 devices. However, it supports hosting other Linux guest OSes under LXC control, making it an attractive hosting solution as well. Uses Busybox and musl.
Bifrost Network Project Active Linux distribution x86 ? Free The goal of this project is to find out stability, performance, filter capabilities, administration, computer security, scalability and development possibilities of a Linux-based streamlined router/firewall system. Recent distributions are being used as pure Internet routers, equipped with 1 GB or more of internal memory.
BSD Router Proj
Step 1: Start Redis
This demo provides an introductory overview of Habitat from the comfort of your browser. Below, we'll show you how to quickly download and run existing packages to create services.
After starting a service, we'll demonstrate how easy Habitat makes it to inject configuration changes into a single service and, lastly, how you can automatically cluster the infrastructure and apply changes to any number of services regardless of where they are running (in containers, VMs, or on bare metal).
Habitat centralizes application configuration, management, and behavior around the application itself, not the infrastructure that the app runs on. To begin, let's download and start a service from an existing Habitat package.
$ hab start core/redis
Result:
Success! In a single command, you've downloaded the Redis package (including its dependencies) and started the service.
curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"key": "value"}' https://domain/path/
Installing go 1.4 with homebrew on OSX:
1) Create Directories
mkdir $HOME/Go
mkdir -p $HOME/Go/src/github.com/user
2) Setup your paths
export GOPATH=$HOME/Go
export GOROOT=/usr/local/opt/go/libexec
Kubernetes
About
is an open-source system for automating deployment, scaling and management of containerized applications that was originally designed by Google and donated to the Cloud Native Computing Foundation.
History
Kubernetes (Greek for "helmsman" or "pilot") was founded by Joe Beda, Brendan Burns and Craig McLuckie, was quickly joined by other Google engineers including Brian Grant and Tim Hockin, and was first announced by Google in mid-2014. Its development and design are heavily influenced by Google's Borg system, and many of the top contributors to the project previously worked on Borg. The original codename for Kubernetes within Google was Project Seven, a reference to a Star Trek character that is a 'friendlier' Borg. The seven spokes on the wheel of the Kubernetes logo is a nod to that codename.
Kubernetes v1.0 was released on July 21, 2015. Along with the Kubernetes v1.0 release, Google partnered with the Linux Foundation to form the Cloud Native Computing Foundation (CNCF) and offered Kube
var graphene = require("graphene-pk11");
var Module = graphene.Module;
var lib = "/opt/local/lib/softhsm/libsofthsm2.so";
var mod = Module.load(lib, "SoftHSM");
var SessionFlag = graphene.SessionFlag;
var UserType = graphene.UserType;
mod.initialize();
var graphene = require("graphene-pk11");
var Module = graphene.Module;
var lib = "/opt/local/lib/softhsm/libsofthsm2.so";
var mod = Module.load(lib, "SoftHSM");
var SessionFlag = graphene.SessionFlag;
var UserType = graphene.UserType;
mod.initialize();
https://github.com/node-apn/node-apn/wiki/Preparing-Certificates
Preparing Certificates
https://github.com/node-apn/node-apn.wiki.git
apparently these certificates are no longer the preferred way to connect. consider using tokens instead
After requesting the certificate from Apple, download the .cer file (usually named aps_production.cer or aps_development.cer) from the iOS Provisioning Portal, save in a clean directory, and import it into Keychain Access.
It should now appear in the keyring under the "Certificates" category, as Apple Push Services. Inside the certificate you should see a private key (only when filtering for the "Certificates" category). Export this private key as a .p12 file.