Skip to content

Instantly share code, notes, and snippets.

View hmert's full-sized avatar
🎃
fintech

Hüseyin Mert hmert

🎃
fintech
View GitHub Profile
@hmert
hmert / output
Created April 21, 2011 15:11
python port scanner
#!/usr/bin/env python
from socket import *
if __name__ == '__main__':
target = raw_input('IP: ')
targetIP = gethostbyname(target)
#scan reserved ports
for i in range(20, 1025):
s = socket(AF_INET, SOCK_STREAM)
@hmert
hmert / pdf2jpg.sh
Created December 8, 2010 21:32 — forked from yura/pdf2jpg.sh
#!/bin/bash
# Script to convert PDF file to JPG images
#
# Dependencies:
# * pdftk
# * imagemagick
PDF=$1
# nayn.cla
Dünyayı güzelleştirmek için birlikte çalışalım.
// apache_request_headers replicement for nginx
if (!function_exists('apache_request_headers')) {
function apache_request_headers() {
foreach($_SERVER as $key=>$value) {
if (substr($key,0,5)=="HTTP_") {
$key=str_replace(" ","-",ucwords(strtolower(str_replace("_"," ",substr($key,5)))));
$out[$key]=$value;
}else{
$out[$key]=$value;
}
@hmert
hmert / err_output
Created March 27, 2018 19:47
vagrant up
DEPRECATION: The 'sudo' option for the Ansible provisioner is deprecated.
Please use the 'become' option instead.
The 'sudo' option will be removed in a future release of Vagrant.
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'ubuntu/trusty32'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'ubuntu/trusty32' is up to date...
==> default: Setting the name of the VM: freefeed-ansible_default_1522179948746_78268
==> default: Clearing any previously set forwarded ports...
@hmert
hmert / README.markdown
Created June 12, 2017 10:14 — forked from bewest/README.markdown
Ting configure AT chat+pppd in linux 3g+beaglebone angstrom cloud9-image
<!DOCTYPE html>
<html class="full" lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>Full Page Image Background Template for Bootstrap 3</title>
@hmert
hmert / cors-nginx.conf
Last active December 30, 2015 06:19 — forked from michiel/cors-nginx.conf
#
# Wide-open CORS config for nginx
#
location / {
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
#
<html>
<head>
<!-- Load jQuery from Google's CDN -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<!-- Source our javascript file with the jQUERY code -->
<script src="script.js"></script>
</head>
<body>
<h3>Choose file(s)</h3>
<p>