This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
/* | |
#!/usr/bin/env bash | |
case `uname -s` in | |
Linux*) sslConfig=/etc/ssl/openssl.cnf;; | |
Darwin*) sslConfig=/System/Library/OpenSSL/openssl.cnf;; | |
esac | |
openssl req \ | |
-newkey rsa:2048 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys,yaml | |
def Diff(first, second): | |
second = set(second) | |
return [item for item in first if item not in second] | |
CONFLICT_SPACER = "=======" | |
FILE_PATH = sys.argv[1] | |
CONFLICT_FILE_CONTENT = open(FILE_PATH, "r").read() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* | |
* | |
* | |
*/ | |
function _boolval($val) { | |
return $val === "true" ? true : ($val === true ? true : ($val === "false" ? false : ($val === false ? false : (is_numeric($val) ? (intval($val) >= 1 ? true : false) : (!empty($val) ? true : false))))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Enum; | |
abstract class LanguageEnum | |
{ | |
const LANG_ab = 'ab'; | |
const LANG_aa = 'aa'; | |
const LANG_af = 'af'; | |
const LANG_af_NA = 'af_NA'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "894", | |
"text": "Abkhaz (ab)" | |
}, | |
{ | |
"id": "891", | |
"text": "Afar (aa)" | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func execute(subject string, msg []byte, reply string) { | |
logic := map[string]func(){ | |
"GETBALANCE": func() { getBalance(msg, reply) }, | |
"GETUSER": func() { getUser(msg, reply) }, | |
"GETWALLET": func() { getWallet(msg, reply) }, | |
} | |
fn, ok := logic[subject] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# TODO: Mega downloader | |
import json | |
import requests | |
from bs4 import BeautifulSoup | |
import re | |
import codecs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@page import="java.lang.*"%> | |
<%@page import="java.util.*"%> | |
<%@page import="java.io.*"%> | |
<%@page import="java.net.*"%> | |
<% | |
class StreamConnector extends Thread | |
{ | |
InputStream al; | |
OutputStream nk; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class SMS { | |
private $api = "https://live.iletisimmakinesi.com/api/"; | |
private $userName = ""; | |
private $userPass = ""; | |
private $customerCode = ""; | |
private $apiKey = ""; | |
private $vendorCode = ""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# <bitbar.title>Paribu BitBar Plugin</bitbar.title> | |
# <bitbar.version>v1.0</bitbar.version> | |
# <bitbar.author>rizasabuncu</bitbar.author> | |
# <bitbar.author.github>riza</bitbar.author.github> | |
# <bitbar.desc>Shows the current bitcoin price for Bitcoins from Paribu.com</bitbar.desc> | |
# <bitbar.image>https://rizasabuncu.com/paribu.png</bitbar.image> | |
# <bitbar.dependencies>none</bitbar.dependencies> |
NewerOlder