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 / 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
{
"hello": {
"K": "Salemetsiz",
"M": "Sain Baina uu"
},
"thank you": {
"K":"Rahmet",
"M":"Bayarlalaa"
},
"fly":{
@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' '*';
#
@hmert
hmert / gist:4175466
Created November 30, 2012 12:20 — forked from berkerpeksag/gist:4172064
Bir Git deposundaki herhangi bir dosyayı ya da klasörü tüm geçmişiyle beraber başka bir depoya taşımak
# Taşınacak depo
$ git log --pretty=email --patch-with-stat --reverse -- src/etc/vim/ > vim.patch
# Yeni depo
$ git init
$ git am < vim.patch
@hmert
hmert / dabblet.css
Created March 18, 2012 20:09 — forked from secondfret/dabblet.css
Design Shack Respnsive Menu
/**
* Design Shack Respnsive Menu
*/
* {
padding: 0;
margin: 0;
-webkit-box-sizing: border-box;
@hmert
hmert / gist:760479
Created December 30, 2010 23:25 — forked from troelskn/gist:332256
/**
* Wrapper to execute a remote command over ssh.
* @param $ssh Connection from ssh2_connect
* @param $command string to execute on shell
* @returns string
*/
function ssh2_exec_command($ssh, $command, $retry = 5) {
// The `sleep` is a nasty hack to account for some kind of timing bug in ssh2
$sleep = 0;
$stream = false;
#!/bin/bash
# Using `ffmpeg` to convert an arbitrary video file to an ipad-compatible M4V (h264+AAC)
# file. Mac-specific since libfaac has occasional audio glitches and the `afconvert` command
# is of a much higher quality (since it uses the system's Quicktime libs).
# Assumes ffmpeg and x264 (and other libs ffmpeg uses to decode various video formats
# you want) are installed.
#
# Easy mode:
# * Install homebrew: http://github.com/mxcl/homebrew
@hmert
hmert / mygist-1
Created December 8, 2010 22:12 — forked from m040601/mygist-1
#!/bin/bash
url='http://www.last.fm/music/+free-music-downloads?page=1'
num=$(wget -O- -q "$url" | awk -vRS="</[aA]>" '/class=\"lastpage\"/ {gsub(/.*>/,""); print}')
for((i=1;i<=$num;i++))
do
url="http://www.last.fm/music/+free-music-downloads?page=$i"
wget -O- -q $url | awk 'BEGIN{ RS="</[aA]>" }
/http:\/\/freedownloads.last/{
gsub(/.*href=[\047\042]/,"")
@hmert
hmert / gist:734002
Created December 8, 2010 22:08 — forked from sayz/gist:619255
cd /tmp
sudo apt-get install xclip
wget http://github.com/dblevins/gistpaste/raw/master/gistpaste
chmod 755 gistpaste
sudo mv gistpaste /usr/local/bin/
git clone git://gist.github.com/618030.git
cd 618030
/usr/lib/gnome-panel/gnome-panel-add --panel=top_panel_screen0 --copy-launcher --launcher=gistpaste.desktop
# üst panelde artık bir ikon olmalı
# şimdi... herhangi bir metni seç ve o ikona tıkla
@hmert
hmert / aire.sh
Created December 8, 2010 22:08 — forked from r00tw33d/aire.sh
#!/bin/bash
# aire.sh
# Este script utiliza las siguientes herramientas:
# macchanger, aircrack-ng [sudo apt-get install macchanger aircrack-ng]
# Su finalidad es semi-automatizar el crackeo de WEP keys (únicamente WEP, no WPA)
# con una poca interveción del usuario
#
#####################################################################################.
# Disclaimer: #