Skip to content

Instantly share code, notes, and snippets.

View alex-alex2006hw's full-sized avatar

alex-alex2006hw

View GitHub Profile
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDU+X+iCqhUL13C42VWd13sMV9GgO4qZlwlE+zBfEg3ksdhv+2INtwhJgUaAyvhflqJJtKdz449qDpYe3J1k4jPJ1n9WcxFTwJ2mV/nmOJuF8j4Rq+Vl2Wnvq5rdvTo3ymKfVrIGWF0t4XzBypF9+mcWPBEKL1139bMCUZoK1LfXc6qi63Xgjc/9JxlJ0VZlrnTyl2owsAIY83bSGyu8re4T810LoI78p59Ua6souI9B7aPgGIOhOhOA1qXCrBXlVxGI2KJjVLeeA3s1Ya3dbRIxiGJ7q3+Fo1Usj/uA6FJjBPOtRGZUi6ug8eFrJjhCQv2r7HDC1m5mV2u410teGPpCpaFwdXsCGMcdE9jEs3qkclto/gf/y1FIEXV2X8gH56GVbdpNZwmR/3v0XZ56PLx3MqYo8STsqew8IfDHq7Gv8UdtKO50iKym/LkmGFeeIQTSS14NdxScX38CLsbahdV5rgSDGr2/4n0Wg5sHOET8x+clqyYU7+0ZhetBHKjZRfZAFVPM9ZQqteZAa9qhS3uLjoLwaEBIH7oeu2QFffcYMkAAw8R5l7UYT9AEAk0QvfeV04Jy0lMHkWb1LICZt980WtVuv+Sx6KtzVHJkmhz5BcHEZsjYie/vHGTKlrW8mdlRd/N7D1g+tcP/0GwM7gxhwzJ2knMy9Yzg6TRT+hjaQ== alex@alex2006hw.com
@alex-alex2006hw
alex-alex2006hw / install_ffmpeg_ubuntu.sh
Created November 10, 2015 06:52 — forked from xdamman/install_ffmpeg_ubuntu.sh
Install latest ffmpeg on ubuntu 12.04 or 14.04
#!/bin/bash
# Bash script to install latest version of ffmpeg and its dependencies on Ubuntu 12.04 or 14.04
# Inspired from https://gist.github.com/faleev/3435377
# Remove any existing packages:
sudo apt-get -y remove ffmpeg x264 libav-tools libvpx-dev libx264-dev
# Get the dependencies (Ubuntu Server or headless users):
sudo apt-get update
@alex-alex2006hw
alex-alex2006hw / introrx.md
Created November 29, 2015 02:28 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@alex-alex2006hw
alex-alex2006hw / https.py
Created December 12, 2015 00:28 — forked from stephenlb/https.py
HTTPS Server - All-in-One Secure HTTPS Server
#!/usr/bin/python
# server
# python https.py
#
# browser
# https://0.0.0.0:4443
import BaseHTTPServer
import SimpleHTTPServer
#!/bin/bash
#
# modified from : https://github.com/taaem/nodejs-linux-installer/releases/download/v0.3/node-install.sh
#
echo "-------------- RUN -------------------"
echo " curl https://gist.githubusercontent.com/alex-alex2006hw/d2a94a53c62fa29afd2f/raw/7a49799320508a1b75c885ac088a4a754e9352d3/nodejs-install.sh | /bin/bash"
echo "--------------------------------------"
echo "Node Linux Installer by www.github.com/taaem modified by www.github.com/alex2006hw"
# using Alex T's repo
echo "src/gz all http://repo.opkg.net/edison/repo/all" >> /etc/opkg/base-feeds.conf
echo "src/gz edison http://repo.opkg.net/edison/repo/edison" >> /etc/opkg/base-feeds.conf
echo "src/gz core2-32 http://repo.opkg.net/edison/repo/core2-32" >> /etc/opkg/base-feeds.conf
opkg update
opkg install git screen sudo cronie
# addming local users
useradd -M -s /bin/bash admin
useradd -M -s /bin/bash slave
# updating user's home account
@alex-alex2006hw
alex-alex2006hw / README
Created January 5, 2016 17:59 — forked from t2-support-gists/README
SMS Ruby RESTFul App 1
AT&T API Platform Sample Apps
--------------------------------------
This file describes how to set up, configure and run the Ruby sample
applications using the AT&T API Platform services. It covers all steps
required to register the applications on DevConnect as well as running the
sample applications locally.
1. Configuration
2. Installation

How to get facebook login working with Meteor and Cordova on iOS

Step 1: Make your local dev site internet accessible

Because there is an issue with OAuth2 login and localhost development, you currently have to deploy your meteor site to be able to test the Facebook login. A nice little workaround for this is to make the local instance of meteor accessible externally.

There is a great online guide for setting up port forwarding with your router and you can check your public external IP here.

For example, If you have an Apple router, simply open up Airport Utility on your Mac and click edit on your router, then go to the Network tab. Under Port Settings click the + icon and select Personal Web Sharing, setting all of the public and private ports to 3000. Make sure the private IP is set to your current computer IP.

@alex-alex2006hw
alex-alex2006hw / sshpub-to-rsa
Created January 13, 2016 07:11 — forked from thwarted/sshpub-to-rsa
converts an openssh RSA public key into a format usable by openssl rsautl (if you don't have openssh 5.6 or later with ssh-keygen PEM export format)
#!/usr/bin/env python
# with help and inspiration from
# * ASN1_generate_nconf(3) (specifically the SubjectPublicKeyInfo structure)
# * http://www.sysmic.org/dotclear/index.php?post/2010/03/24/Convert-keys-betweens-GnuPG%2C-OpenSsh-and-OpenSSL
# * http://blog.oddbit.com/2011/05/converting-openssh-public-keys.html
import sys
import base64
import struct
@alex-alex2006hw
alex-alex2006hw / runme
Created April 18, 2016 08:17
run scripts for building
DATE=$(date)
PWD=$(pwd)
MONGO_DB="mongodb://10.101.101.3:27017/native"
PORT=8081
SETTINGS="$PWD/settings.json"
echo $DATE
echo "Starting all processes owned by $PWD ..."
# install react-native-cli if not there