Skip to content

Instantly share code, notes, and snippets.

sudo apt install php8.1-{bcmath,xml,fpm,mysql,zip,intl,ldap,gd,cli,bz2,curl,mbstring,pgsql,opcache,soap,cgi,gmp,mysql}
sudo apt install php7.4-{bcmath,xml,fpm,mysql,zip,intl,ldap,gd,cli,bz2,curl,mbstring,pgsql,opcache,soap,cgi,gmp,mysql}
sudo apt install php8.1-{bcmath,xml,fpm,mysql,zip,intl,ldap,gd,cli,bz2,curl,mbstring,pgsql,opcache,soap,cgi}

To inlcude NoDogSplash into your OpenWRT image or to create an .ipk package (similar to Debians .deb files), you have to build an OpenWRT image. To build the firmware you need a Unix console to enter commands into.

Install the dependencies of the build environment (Debian/Ubuntu):

sudo apt-get install subversion g++ zlib1g-dev build-essential
sudo apt-get install git libncurses5-dev gawk gettext unzip file
@sarpdorukaslan
sarpdorukaslan / phpstorm.protokol.md
Last active February 24, 2019 06:03
phpstorm için protokol (URI) işleyici ekler [Ubuntu \ xFCE]

mimeapps.list içine [Added Associations] altında bir satıra
aşağıdaki satırı ekle

x-scheme-handler/phpstorm=phpstorm-php.desktop

phpstorm-php.desktop içeriği

[Desktop Entry]
Type=Application
Name=PHPStorm IDE
@sarpdorukaslan
sarpdorukaslan / multiArrayToArray.php
Last active March 7, 2016 13:25
Convert multi dimensional array to one dimensional array.
function arrayConvertKeyValue($array,$prefix=null)
{
$tempArray = array();
$childArray = array();
foreach($array as $key => $value)
{
$key = $prefix.".".$key;
if(is_array($value))
{
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
<?php
/**
* usage = sudo php aconf.php -d altklasor -h host.name
*
*/
$shortopts = "d:";
$shortopts .= "h:";
$options = getopt($shortopts);
@sarpdorukaslan
sarpdorukaslan / PriceCalculate.php
Last active August 29, 2015 14:19
Araç Kiralama İçin Fiyat Hesaplama
<?php
Class PriceCalculate {
public $defaultPrice;
public $startDate;
public $endDate;
public $maxToleranceHour = 3;
public $startTime;
public $endTime;
<?php
//mysql sunucuya bağlanma ve veritabanı seçme
//mysql
mysql_connect('localhost','root','parola');
mysql_select_db('deneme');
//pdo
$db = new PDO('mysql:host=localhost;dbname=deneme','root',parola);
//sorgu
$sqlUyeler = 'select * from uyeler where cins="2"';