Skip to content

Instantly share code, notes, and snippets.

View tremusa's full-sized avatar

Adem Öztürk tremusa

  • @MitekSoft
  • Turkey
View GitHub Profile
@tremusa
tremusa / php-ping.php
Created December 5, 2022 07:03 — forked from k0nsl/php-ping.php
PHP ping script
<?php
/*
*
* Use the examples below to add your own servers. Coded by clone1018 [?]
*
*/
$title = "Simple Server Status"; // website's title
$servers = array(
'Google Web Search' => array(
@tremusa
tremusa / php-pdo-helper.php
Created April 23, 2019 20:40 — forked from luxixing/php-pdo-helper.php
PHP-PDO Class
<?php
/**
* 轻量级pdo操作封装函数
* @author xixing.lu@outlook.com
* @version 2013-04-16
* @todo 根据实际情况继续优化或者添加功能
*/
namespace dataservice\helper;
class PDOHelper
@tremusa
tremusa / Database.php
Created April 23, 2019 20:25 — forked from axquired24/Database.php
PHP PDO Class
<?php
/**
* PDO mysql database helper class
*
* @author wildantea <wildannudin@gmail.com>
* @copyright june 2013
*/
class Database {
@tremusa
tremusa / leaflet_numbered_markers.css
Created April 23, 2019 20:11 — forked from n0m4dz/leaflet_numbered_markers.css
Numbered Markers in Leaflet (JS Mapping)
.leaflet-div-icon {
background: transparent;
border: none;
}
.leaflet-marker-icon .number{
position: relative;
top: -37px;
font-size: 12px;
width: 25px;
@tremusa
tremusa / nginx.conf
Created April 23, 2019 20:09 — forked from n0m4dz/nginx.conf
node.js upstream nginx config
http {
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=one:8m max_size=3000m inactive=600m;
proxy_temp_path /var/tmp;
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
gzip on;
gzip_comp_level 6;
@tremusa
tremusa / Database.php
Created April 23, 2019 19:56 — forked from n0m4dz/Database.php
PHP PDO database CRUD class
<?php
class Database extends PDO
{
public function __construct($DB_TYPE, $DB_HOST, $DB_NAME, $DB_USER, $DB_PASS)
{
parent::__construct($DB_TYPE.':host='.$DB_HOST.';dbname='.$DB_NAME, $DB_USER, $DB_PASS);
}