Skip to content

Instantly share code, notes, and snippets.

View nejdetckenobi's full-sized avatar

Nejdet Çağdaş Yücesoy nejdetckenobi

View GitHub Profile
[
{
"bankCode": 206,
"bankName": "Türkiye Finans Katılım Bankası",
"binNumber": "528293",
"cardAssociation": "MASTER_CARD",
"cardFamily": "Bonus",
"cardType": "CREDIT_CARD",
"conversationId": "123456789",
"locale": "tr",

Docker

Agenda

  • What is docker?
  • Docker vocabulary & commands
  • Compose & usage
  • Demo (dockerise Omnishop)
  • Docker for Dev & CI/CD (next session ?)
  • Kubernetes/AWS (next session)
@nejdetckenobi
nejdetckenobi / gource-ffmpeg.sh
Created January 30, 2018 14:16 — forked from eribeiro/gource-ffmpeg.sh
Run Gource on a git repo, outputs as a movie (movie.mp4) and compresses it (output.mp4)
gource -s .06 -1280x720 --auto-skip-seconds .1 --multi-sampling --stop-at-end --key --highlight-users --hide mouse,progress,files,filenames,dirnames --file-idle-time 0 --max-files 0 --background-colour 000000 --font-size 22 --title "Lucene/Solr" --output-ppm-stream - --output-framerate 30 | avconv -y -r 30 -f image2pipe -vcodec ppm -i - -b 65536K movie.mp4
&& ffmpeg -i movie.mp4 -b:v 3048780 -vcodec libx264 -crf 24 output.mp4
@nejdetckenobi
nejdetckenobi / handle_file_upload.php
Created December 28, 2017 14:49 — forked from ebidel/handle_file_upload.php
Uploading files using xhr.send(FormData) to PHP server
<?php
$fileName = $_FILES['afile']['name'];
$fileType = $_FILES['afile']['type'];
$fileContent = file_get_contents($_FILES['afile']['tmp_name']);
$dataUrl = 'data:' . $fileType . ';base64,' . base64_encode($fileContent);
$json = json_encode(array(
'name' => $fileName,
'type' => $fileType,
'dataUrl' => $dataUrl,
#!/usr/bin/perl
#-----------------------------------------------------------------------------
#
# Copyright (C) 2011
# Michael Theall (mtheall)
# Dave Murphy (WinterMute)
#
# This software is provided 'as-is', without any express or implied
# warranty. In no event will the authors be held liable for any
# damages arising from the use of this software.
@nejdetckenobi
nejdetckenobi / 0_user-accounts.md
Created June 28, 2017 11:33 — forked from sayz/0_user-accounts.md
linux sistem yönetimi kampında tuttuğum notlar...

##useradd komutu.

-c "açıklama"

ex: -c "müdür bey"

-s kabukı-adı

ex:

@nejdetckenobi
nejdetckenobi / foo.log
Created June 6, 2016 11:08 — forked from ibeex/foo.log
Flask logging example
A warning occurred (42 apples)
An error occurred
{
"color_scheme": "Packages/Predawn/predawn.tmTheme",
"draw_white_space": "selection",
"ensure_newline_at_eof_on_save": true,
"font_face": "MonteCarlo Fixed",
"font_size": 12,
"gutter": true,
"ignored_packages":
[
"Vintage"