Skip to content

Instantly share code, notes, and snippets.

View ikbelkirasan's full-sized avatar

Ikbel ikbelkirasan

View GitHub Profile
@ikbelkirasan
ikbelkirasan / express-sample.js
Created February 22, 2018 03:27 — forked from jirishus/express-sample.js
node-express
// Load Dependencies
var express = require('express');
// Define App Using Express
var app = express();
// Define Routes
app.get('/', function(req, res) {
res.send('message to send');
});
@ikbelkirasan
ikbelkirasan / node-mongo-connect.js
Created February 20, 2018 03:49 — forked from mpalensky/node-mongo-connect.js
Node.js MongoDB Init
var express = require('express');
var mongodb = require('mongodb');
var app = express();
var db;
var whateverColl;
// Make sure database connection initialized before satrting app
mongodb.MongoClient.connect('mongodb://127.0.0.1:27017/dbname', function(err, database) {
@ikbelkirasan
ikbelkirasan / List.md
Created February 9, 2018 18:22 — forked from msurguy/List.md
List of open source projects made with Laravel

Other people's projects:

My projects (tutorials are on my blog at http://maxoffsky.com):

<?php // database/migrations/2014_10_12_000000_create_users_table.php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
@ikbelkirasan
ikbelkirasan / Dockerfile
Created February 2, 2018 15:02 — forked from michaelneu/Dockerfile
docker-compose configuration for PHP with NGINX and MySQL, including sendmail, MailDev and phpmyadmin
# see https://github.com/cmaessen/docker-php-sendmail for more information
FROM php:fpm
RUN apt-get update && apt-get install -q -y ssmtp mailutils && rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-install mysql mysqli
RUN echo "hostname=localhost.localdomain" > /etc/ssmtp/ssmtp.conf
RUN echo "root=root@example.com" >> /etc/ssmtp/ssmtp.conf
@ikbelkirasan
ikbelkirasan / adwords-script-gurkenfinder.js
Created January 8, 2018 01:22 — forked from mbaersch/adwords-script-gurkenfinder.js
Identifizieren von schlecht performenden Keywords und Produkten in AdWords
/**************************************************************/
/****** "Gurkenfinder"-Script für Google AdWords *******/
/**************************************************************/
/* v1.3 2017 Markus Baersch (@mbaersch)
Reduzierte Non-MCC-Fassung
gandke marketing & software - www.gandke.de */
/*********** Start Setup **********************/
var emailAddress = "mailadresse@hier.eintragen";
function main() {
var report = AdWordsApp.report(
'SELECT OfferId, Cost, ConversionValue, Conversions ' +
'FROM SHOPPING_PERFORMANCE_REPORT ' +
'WHERE ConversionValue > 0 ' +
'DURING LAST_30_DAYS');
var longtailSum = 0;
@ikbelkirasan
ikbelkirasan / how-to-install-phpmyadmin.md
Created November 4, 2017 08:42 — forked from irazasyed/how-to-install-phpmyadmin.md
Tut: How to install/setup latest version of PHPMyAdmin on Ubuntu 12.04 LTS (Precise Pangolin)

How to install/setup latest version of PHPMyAdmin on Ubuntu 12.04 LTS (Precise Pangolin)

As the official installation packages of most linux distributions are usually totally out of date (but that’s pure intention, to provide extremely stable versions only) it might sense to install the latest version of certain package. Install the latest version of PHPMyAdmin via:

  1. Add this package-repository to your system.
sudo add-apt-repository ppa:nijel/phpmyadmin
@ikbelkirasan
ikbelkirasan / controller.php
Created October 5, 2017 19:24 — forked from clouddueling/controller.php
Long pulling in php with Laravel
<?php
public function get_checkin_poll()
{
$filepath = 'storage/work/checkin_poll_' . Auth::user()->id;
$last_cycle = File::get($filepath);
$break = false;
$thread = uniqid();
@ikbelkirasan
ikbelkirasan / paginate.js
Created September 27, 2017 21:05 — forked from ialpert/paginate.js
paginate extension for lodash/underscore
_.paginate = function(arr, size) {
var pages = [];
size = size || this.length;
while (arr.length) {
pages.push(arr.splice(0, size));
}
return pages;