Skip to content

Instantly share code, notes, and snippets.

View inadarei's full-sized avatar

Irakli Nadareishvili inadarei

View GitHub Profile
@inadarei
inadarei / openss-osx-install.md
Last active August 29, 2015 13:56
OpenSSL installation with native OS-X PHP
$  wget http://www.php.net/get/php-5.3.28.tar.gz/from/this/mirror
$  mv mirror php.5.3.28.tar.gz
$ tar xzvf php.5.3.28.tar.gz
$ cd php-5.3.28/
$ ./configure --with-openssl=shared
$ make
$ export OPENSSL_EXT_DIR=/usr/local/Cellar/php53-openssl # can be anything really as far as it matches value in the .ini file, later
$ mkdir $OPENSSL_EXT_DIR
$ cp modules/openssl.so $OPENSSL_EXT_DIR
@inadarei
inadarei / private-property.js
Last active August 29, 2015 14:06
Hiding Javascript Object's value from JSON.stringify
function Data() {
var privProp = 5;
this.name = "some data object";
Object.defineProperty(this, 'getPropPublic', {
get: function() { return privProp; }
});
}

Keybase proof

I hereby claim:

  • I am inadarei on github.
  • I am irakli (https://keybase.io/irakli) on keybase.
  • I have a public key whose fingerprint is C511 1274 64E8 0402 9575 3200 7434 E772 6E3B 3232

To claim this, I am signing this object:

@inadarei
inadarei / umasks.bash
Created November 29, 2014 01:11
Check Umasks for Bash Users
#!/bin/bash
for user in $(awk -F: '( $3 >= 500 ){print $1}' /etc/passwd);
do
mask=`sudo su -c 'umask' -l $user 2>/dev/null`
echo $user $mask
done
@inadarei
inadarei / julia.bash
Created December 5, 2014 21:41
julia cli
export PATH="/Applications/Julia-0.3.3.app/Contents/Resources/julia/bin:$PATH"
@inadarei
inadarei / uberextension.xml
Created December 23, 2014 01:47
Extending UBER with profiles (XML)
<uber version="1.0">
<data rel="self" url="http://example.org/" />
<data rel="profile" url="http://microformats.org/profile/hcard">
<data name="fn">Jennifer Gallegos</data>.
</data>
<data name="todo" rel="item http://example.org/rels/todo" url="http://example.org/list/1">
<data name="title">Clean House</data>
<data name="dueDate">2014-05-01</data>
</data>
</uber>
@inadarei
inadarei / uberextension.json
Last active August 29, 2015 14:11
Extending UBER with profiles (JSON)
{
"uber": {
"version": "1.0",
"data": [
{
"rel": [
"self"
],
"url": "http://example.org/"
},
@inadarei
inadarei / text.md
Last active August 29, 2015 14:15 — forked from awinder/text.md

Building Secure Networks with Vyatta on SoftLayer

What is Vyatta, and why would you want to use it?

  • Discussion of private vs public vnet and motivation - very briefly
  • The role/importance of VPN, Firewall and secure access - very briefly
  • Link to the open-source VyOS version and the commercial Vyatta project

Splitting your public and private traffic - spend most of your time here

var React = require('react');
module.exports = function() {
return (
<div>
Your template content.
</div>
);
git clone https://github.com/git/git
cp git/contrib/completion/git-completion.bash ~/git-completion.sh
cp git/contrib/completion/git-prompt.sh ~/git-prompt.sh