Skip to content

Instantly share code, notes, and snippets.

View riza's full-sized avatar
⚒️
dirty stuff

Rıza Sabuncu riza

⚒️
dirty stuff
View GitHub Profile
@riza
riza / scdl.py
Last active August 29, 2015 14:03
Soundcloud Downloader with Python
#!/usr/bin/python
#-*- coding: utf-8 -*-
# requests modülü gerekir
import os
try:
import requests
except ImportError, e:
print u"Lütfen requests modülünü kurun!"
exit()
@riza
riza / sms.sh
Created July 2, 2014 10:10
ADB Sms Sender - req adb
#!/bin/bash
clear;
echo "ADB Shell SMS Sender v1.0b";
echo "#############################";
echo;
# Args
NUMBER=$1
BODY=$2
@riza
riza / scset.py
Last active July 8, 2018 07:21
Soundcloud Playlist Downloader
#!/usr/bin/python
#-*- coding: utf-8 -*-
import os
try:
import requests
except ImportError, e:
print u"Lütfen requests modülünü kurun!"
exit()
# şu alt tarafı yusuf(kulturlupenguen) karrrdeşimden copy paste yaptım :(
<?php
class sess
{
public static function create($array){
foreach ($array as $key => $value) {
#create session
$_SESSION[$key] = $value;
@riza
riza / exec.php
Created July 29, 2014 10:38
shell-exec
<?php
function shExec($commands) {
$cnt = count($commands);
for ($i=0; $i < $cnt ; $i++) {
$cmd = shell_exec($commands[$i]);
echo $cmd."<br>";
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="agnoster"
# Uncomment the following line to use case-sensitive completion.
@riza
riza / initproject.sh
Last active October 31, 2015 22:37
kanka proje yapalım scripti
#!/bin/bash
NAME=$1
mkdir $NAME;
cd $NAME;
git init;
npm init;
print "Tebrikler proje için ilk adımı attınız, şimdi silebilirsiniz.";
@riza
riza / okul.sql
Created December 14, 2015 12:15
İstanbuldaki okulların listesi
INSERT INTO school_names (county, school_name) VALUES ('ADALAR', 'Burgazada Öğretmen Evi ve Akşam Sanat Okulu');
INSERT INTO school_names (county, school_name) VALUES ('ADALAR', 'Halk Eğitim Merkezi');
INSERT INTO school_names (county, school_name) VALUES ('ADALAR', 'Heybeliada Anadolu Lisesi');
INSERT INTO school_names (county, school_name) VALUES ('ADALAR', 'Heybeliada İlkokulu');
INSERT INTO school_names (county, school_name) VALUES ('ADALAR', 'HEYBELİADA İLKOKULU');
INSERT INTO school_names (county, school_name) VALUES ('ADALAR', 'Burgazada Sait Faik Abasıyanık İlkokulu');
INSERT INTO school_names (county, school_name) VALUES ('ADALAR', 'Adalar Anadolu İmam Hatip Lisesi');
INSERT INTO school_names (county, school_name) VALUES ('ADALAR', 'Büyükada Şehit Murat Yüksel İlkokulu');
INSERT INTO school_names (county, school_name) VALUES ('ADALAR', 'Hüseyin Rahmi Gürpınar Çok Programlı Anadolu Lisesi');
INSERT INTO school_names (county, school_name) VALUES ('ADALAR', 'Büyükada 125. Yıl Atatürk Ortaokul');
ADALAR - Burgazada Öğretmen Evi ve Akşam Sanat Okulu
ADALAR - Halk Eğitim Merkezi
ADALAR - Heybeliada Anadolu Lisesi
ADALAR - Adalar Anadolu İmam Hatip Lisesi
ADALAR - Hüseyin Rahmi Gürpınar Çok Programlı Anadolu Lisesi
ADALAR - Büyükada 125. Yıl Atatürk Ortaokul
BAKIRKÖY - Bakırköy Mesleki ve Teknik Anadolu Lisesi
BAKIRKÖY - Ataköy Cumhuriyet Anadolu Lisesi
BAKIRKÖY - Ataköy Anadolu Lisesi
BAKIRKÖY - Bakırköy 70. Yıl Mesleki ve Teknik Anadolu Lisesi
-- phpMyAdmin SQL Dump
-- version 4.4.9
-- http://www.phpmyadmin.net
--
-- Anamakine: localhost:3306
-- Üretim Zamanı: 27 Ara 2015, 21:07:33
-- Sunucu sürümü: 5.5.42
-- PHP Sürümü: 5.6.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";