Skip to content

Instantly share code, notes, and snippets.

View eralpkaraduman's full-sized avatar
🐊
ᑴ ͡° ͟ʖ ͡°ᑷ

Eralp Karaduman eralpkaraduman

🐊
ᑴ ͡° ͟ʖ ͡°ᑷ
View GitHub Profile
@eralpkaraduman
eralpkaraduman / gist:5721513
Created June 6, 2013 13:34
image sequence to video (4 digits after image filenames)
ffmpeg -r 30 -i kamyonlu2%04d.png -c:v libx264 -crf 23 -pix_fmt yuv420p kamyonlu2.mp4
setBackgroundImage
------------------
forState:UIControlStateNormal
forState:UIControlStateSelected
setDividerImage (unselected-unselected)
--------------------------------------
forLeftSegmentState:UIControlStateNormal
@eralpkaraduman
eralpkaraduman / program.cs
Created August 13, 2013 12:03
implementing ironJS javascript DLR runtime on mono using c#
using System;
using IronJS;
using IronJS.Hosting;
using IronJS.Compiler;
using System.Collections;
namespace ironJSTest
{
class MainClass
@eralpkaraduman
eralpkaraduman / homeUpdater.js
Last active December 25, 2015 20:29
AWS route 53 dynamic ip update tool.
var AWS = require('aws-sdk');
AWS.config.loadFromPath('config.json');
var route53 = new AWS.Route53();
var net = require('net');
var os = require('os');
var zone = "YOUR_ZONE_ID";
var domain = "yourdoma.in";
@eralpkaraduman
eralpkaraduman / extrachSeconds.sh
Created December 5, 2013 11:28
logs duration of videos between filename range to file as file,duration (number of seconds)
#!/bin/bash
START=4699
END=4824
VIDEO_PATH="/media/videoStorage/wowzaVideoFiles/cevaptv/"
EXT="_240p.mp4"
rm seconds.log
for((i=$START; i<=$END; i++))
Köstebek Şarkısı: Gizli Ajan Reiji
14 Şubat 2014, 23:59
Cinemaximum Fitaş Salon 1
Ucuz Heyecanlar
15 Şubat 2014, 23:59
Cinemaximum Fitaş Salon 1
Rüzgar Yükseliyor
21 Şubat 2014, 22:00
@eralpkaraduman
eralpkaraduman / winmac.ahk
Created February 28, 2014 23:45
autohotkey windows survival
LWin::Control
Control::LWin
!u::ü
!i::ı
!c::ç
!g::ğ
!o::ö
!s::ş
@eralpkaraduman
eralpkaraduman / embeddingUnity3DInTumblr.txt
Last active August 29, 2015 14:05
Embedding Unity3D in Tumblr & Stuff
// customize theme -> edit html
// paste below in head
<!-- Unity3D -->
<script type="text/javascript">
<!--
var unityObjectUrl = "http://webplayer.unity3d.com/download_webplayer-3.x/3.0/uo/UnityObject2.js";
if (document.location.protocol == 'https:')
unityObjectUrl = unityObjectUrl.replace("http://", "https://ssl-");
document.write('<script type="text/javascript" src="' + unityObjectUrl + '"></script>');
@eralpkaraduman
eralpkaraduman / week_log.py
Created September 11, 2015 10:45
dumps commit messages with dates in last week to a file with week number
import subprocess
from datetime import datetime
process = subprocess.Popen([
"git",
"log",
"--after", "1 week ago",
"--author", "eralpkaraduman",
"--format=%cd%n%s%n",
"--reverse",
@eralpkaraduman
eralpkaraduman / ruby_and_rails_books.md
Last active September 28, 2015 10:21
Ruby & Rails Books

ruby books:

  • pickaxe - programming ruby
  • ruby way
  • metaprogramming ruby

rails books: