Skip to content

Instantly share code, notes, and snippets.

View o's full-sized avatar
🔥
deleting code

Osman o

🔥
deleting code
View GitHub Profile
@o
o / 1.md
Last active August 14, 2019 09:40
Off season running plan
Day Training Alternative
Monday Rest
Tuesday Intervals
Wednesday Easy run
Thursday Threshold run Fartlek
Friday Rest
Saturday Easy run
Sunday 10K
@o
o / telegraf.conf.toml
Created May 3, 2019 08:59
My Telegraf configuration
[agent]
flush_interval = "10s"
flush_jitter = "0s"
interval = "10s"
round_interval = true
[inputs.cpu]
percpu = false
[inputs.disk]

I'd done a lot of Boot projects before. But never tried multi-module structure.

Here is the my sample structure

Parent project: com.github.o.parent

Just declares org.springframework.boot-spring-boot-autoconfigure

Common project:

@o
o / Post.php
Created January 5, 2016 12:28
Sample Symfony Entity
<?php
namespace __
use Doctrine\ORM\Mapping as ORM;
use Doctrine\ORM\Mapping\UniqueConstraint;
/**
* Post
*
@o
o / gulpfile.js
Created December 29, 2015 21:16
test for @ademilter
var gulp = require('gulp');
gulp.task('copy', function () {
return gulp
.src('index.js')
.pipe(gulp.dest('dist'))
})
#!/usr/bin/php
<?php
$a = array(
'asd',
'sdf',
'lkj',
'adl',
'fkj',
'das',
@o
o / example.com.conf
Created August 4, 2013 00:48
Symfony2 Nginx Configuration (For production)
upstream php5-fpm-sock {
server unix:/var/run/php5-fpm.sock;
}
server {
listen 80;
server_name domain.com;
root /path/to/domain.com/public_html/web/;
charset utf-8;
@o
o / community-bundle.md
Created July 8, 2013 12:36
ImportCommunityBundle

I need your help guys. This is the short brief for the our community driven project like Google groups. My goal is the made done this with Symfony2 Standard Edition.

Features:

  • Clean, minimalistic layout.
  • Question / answer system.
  • User login / registration.
  • Filters for questions: Topics i started, Topics i answered, Topics i participated, Nobody replied, Modified within date, Started within date, marked as complete.
  • Powerful search (Will be done with ElasticSearch or something like that)
  • Email features: Instant emails for new topics, instant emails for new answers, Daily summaries, replying topic through email. (Emails will be queued to RabbitMq and processed)
@o
o / phpist-ardindan.md
Created July 8, 2013 08:22
php-ist '13 ardindan

Merhabalar,

Oncelikle php-ist sunumuna katilan herkese cok tesekkurler. Oldukca kalabalik bir toplulukla beraber olmak hem dinleyiciler hemde konusmacilar icin guzel bir motivasyon oldu. Sunum aralarinda cok guzel sohbetler yapildi, harika insanlarla tanisma firsatim oldu.

Bu organizasyonda konusmaci olmamda konularin citasinin yuksek olmasinin buyuk etkisi vardi. Monolitik konulardan ote insanlari daha kaliteli isler yapmaya yonelten konulara deginildi ve dinleyiciler bundan oldukca keyif aldi. Bundan sonra yapilacak benzer bir etkinlikte de bu seviyenin korunmasini dilerim. Laravel, Jenkins, Doctrine, olceklenebilirlik gibi konular oldukca guzel olurdu. Sektorde kabul gormus bir teknolojinin daha fazla anlatilmaya, dogrularin, yanlislarin neler oldugunun daha fazla sekilde gosterilmeye ve anlatilmaya ihtiyaci var. Ben de insanlarin daha guzel seyler yapabilecegi bir teknolojiyi anlatmaktan buyuk mutluluk duydum.

Organizasyonun tek gun ve tek salonda olmasida oldukca iyi oldu, zira insanlar bolunmedi, t

@o
o / User.php
Created May 3, 2012 18:51
A sample user entity with Doctrine 2
<?php
namespace Import\Bundle\TestBundle\Entity;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Security\Core\User\AdvancedUserInterface;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;