Skip to content

Instantly share code, notes, and snippets.

View cad's full-sized avatar

Mustafa cad

View GitHub Profile
74.125.43.103 youtube.com
74.125.43.103 www.youtube.com
74.125.43.103 www.docs.google.com
74.125.43.103 www.clients1.google.com.tr
74.125.43.103 www.translate.google.com.tr
74.125.43.103 docs.google.com
74.125.43.103 clients1.google.com
74.125.43.103 clients1.google.com.tr
74.125.43.103 translate.google.com.tr
74.125.43.103 translate.google.com
@cad
cad / mariadb.md
Last active October 25, 2015 18:46
mysql related commands

MariaDB

Create

CREATE DATABASE $PROJECT_NAME DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
CREATE USER   $PROJECT_NAME@locahlost identified by '$DB_PASS';
@cad
cad / mail.neu.edu.tr-settings
Created October 27, 2015 12:34
mail server settings
[pop3]
host=mail.neu.edu.tr
port=995
ssl=true
[smtp]
mail.neu.edu.tr
port=465
ssl=true
@cad
cad / Services.js
Last active January 3, 2016 14:34
services
import request from 'reqwest';
import when from 'when';
var AUTH_BASE_URL = "http://localhost:5000"
var AUTHENTICATE_URL = AUTH_BASE_URL + "/auth/"
var TASK_BASE_URL = "http://localhost:5001"
var AuthActions = {
authenticateUser: (accessToken) => {
@cad
cad / inventory.py
Created February 9, 2016 16:39 — forked from duggan/inventory.py
Present Terraform tfstate data as an Ansible inventory
#!/usr/bin/env python
import sys
import os
import json
import argparse
import collections
__description__ = """Ansible Dynamic Inventory for Terraform."""
__epilog__ = """

Keybase proof

I hereby claim:

  • I am cad on github.
  • I am cad (https://keybase.io/cad) on keybase.
  • I have a public key whose fingerprint is 704F 78B4 7055 02ED F9FF 0BA1 D6C4 8140 A583 27B6

To claim this, I am signing this object:

[
{"model_name": "Candidate", "model_data": {"name": "ali", "surname": "veli", "party_id": 3, "district_id": 5, "order": 2}},
{"model_name": "Candidate", "model_data": {"name": "hasan", "surname": "huseyin", "party_id": 2, "district_id": 1, "order": 1}},
{"model_name": "Candidate", "model_data": {"name": "foo", "surname": "bar", "party_id": 1, "district_id": 3, "order": 6}}
]