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/sh | |
### BEGIN INIT INFO | |
# Provides: gogs | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Git repository manager Gogs | |
# Description: Starts and stops the self-hosted git repository manager Gogs | |
### END INIT INFO |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Display files sizes next to download links</title> | |
</head> | |
<body> | |
<a href="001.html" class="fetchSize">First Trickshot</a> | |
<a href="034.html" class="fetchSize">This Trickshot</a> | |
<a href="ball.png" class="fetchSize">Ball.png</a> |
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 is_valid_luhn($number) { | |
settype($number, 'string'); | |
$sumTable = array( | |
array(0,1,2,3,4,5,6,7,8,9), | |
array(0,2,4,6,8,1,3,5,7,9)); | |
$sum = 0; | |
$flip = 0; | |
for ($i = strlen($number) - 1; $i >= 0; $i--) { | |
$sum += $sumTable[$flip++ & 0x1][$number[$i]]; |
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
<select name="Sehir"> | |
<option value="0">------</option> | |
<option value="1">Adana</option> | |
<option value="2">Adıyaman</option> | |
<option value="3">Afyonkarahisar</option> | |
<option value="4">Ağrı</option> | |
<option value="5">Amasya</option> | |
<option value="6">Ankara</option> | |
<option value="7">Antalya</option> | |
<option value="8">Artvin</option> |
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
<select name="cep_alan_kodu"> | |
<option value="501">501</option> | |
<option value="505">505</option> | |
<option value="506">506</option> | |
<option value="507">507</option> | |
<option value="530">530</option> | |
<option value="531">531</option> | |
<option value="532">532</option> | |
<option value="533">533</option> | |
<option value="534">534</option> |
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
<select name="alanKodu"> | |
<option value="322">ADANA</option> | |
<option value="416">ADIYAMAN</option> | |
<option value="272">AFYON</option> | |
<option value="472">AĞRI</option> | |
<option value="382">AKSARAY</option> | |
<option value="358">AMASYA</option> | |
<option value="312">ANKARA</option> | |
<option value="242">ANTALYA</option> | |
<option value="478">ARDAHAN</option> |
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
<select name="ulkeler"> | |
<option value="AF">AFGANİSTAN</option> | |
<option value="DE">ALMANYA</option> | |
<option value="US">AMERİKA BİRLEŞİ</option> | |
<option value="UM">AMERİKAN MİNOR</option> | |
<option value="AS">AMERİKAN SAMOA</option> | |
<option value="AD">ANDORA</option> | |
<option value="AO">ANGOLA</option> | |
<option value="AI">ANGUİLLA</option> | |
<option value="AQ">ANTARTİKA</option> |
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
<select name="plakalar"> | |
<option value="1">ADANA</option> | |
<option value="2">ADIYAMAN</option> | |
<option value="3">AFYON</option> | |
<option value="4">AĞRI</option> | |
<option value="68">AKSARAY</option> | |
<option value="5">AMASYA</option> | |
<option value="6">ANKARA</option> | |
<option value="7">ANTALYA</option> | |
<option value="75">ARDAHAN</option> |
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
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
sh -c 'echo deb https://apt.dockerproject.org/repo ubuntu-trusty main > /etc/apt/sources.list.d/docker.list' | |
# Install docker | |
sudo apt-get update | |
sudo apt-get purge lxc-docker | |
sudo apt-get install linux-image-extra-$(uname -r) | |
sudo apt-get install docker-engine | |
sudo service docker start |
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 get_dir($dir) | |
{ | |
$files = array(); | |
$exclude = array('.', '..', 'appcache.php', '.git', '.gitignore', 'nbproject', 'TODO', 'README.md', 'cache.manifest'); | |
foreach (scandir($dir) as $item) | |
{ | |
if (in_array($item, $exclude)) continue; |
OlderNewer