Skip to content

Instantly share code, notes, and snippets.

View edigu's full-sized avatar

Yılmaz edigu

View GitHub Profile
@edigu
edigu / compare_notes.md
Created January 30, 2019 16:14 — forked from mbohun/compare_notes.md
sonatype nexus compare snapshots / releases
$ $ find sonatype-work/nexus/storage/releases/au -name "*.war" | sed -e 's/sonatype-work\/nexus\/storage\/releases\/au\/org\/ala\///g' -e 's/\/.*$//g' | sort |uniq > /tmp/releases.out

$ find sonatype-work/nexus/storage/snapshots/au -name "*.war" | sed -e 's/sonatype-work\/nexus\/storage\/snapshots\/au\/org\/ala\///g' -e 's/\/.*$//g' | sort |uniq > /tmp/snapshots.out

$ diff -y /tmp/snapshots.out /tmp/releases.out | less
actions                                                       <
ala-cas                                                         ala-cas
@edigu
edigu / README.md
Last active November 1, 2018 10:38
OSX Hombebrew & Nginx + Ekstralar

Problem: OSX el capitan üzerinde Homebrew ile nginx'in built-in gelen formülü kullanarak (brew install nginx) kurulursa production ortamına göre çok basic kalıyor.

Ekstra modül ihtiyacında nginx'i elle derlemek yerine homebrew üzerinden temiz kurulum için;

$ brew update
$ brew tap homebrew/nginx
$ brew unlink nginx
$ brew options nginx-full
@edigu
edigu / ocp.php
Created July 2, 2013 13:50 — forked from ck-on/ocp.php
<?php
/*
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)
Author: _ck_ (with contributions by GK, stasilok)
Version: 0.1.6
Free for any kind of use or modification, I am not responsible for anything, please share your improvements
* revision history
0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter
0.1.5 2013-04-12 added graphs to visualize cache state, please report any browser/style bugs
@edigu
edigu / chrome
Created May 16, 2013 08:51
Amazing legacy bug in Google Chrome!
var elem = document.getElementById('any-element-id');
elem.innerHTML = '<table class="bar">' + "A text ";
elem.innerHTML += "Another textual string";
elem.innerHTML += '</table>';
// Produces : "A text <table class="bar"></table>Another textual string</table>"
// Expected : "<table class="bar">A text Another textual string</table>"
// http://webdesignpatterns.org/pattern/amazing-legacy-bug-google-chrome
@edigu
edigu / gist:1257675
Created October 2, 2011 17:33
Find Duplicate files in current directory (Mac)
find . -size 20 \! -type d -exec cksum {} \; | sort | tee /tmp/f.tmp | cut -f 1,2 -d ' ' | uniq -d | grep -hif - /tmp/f.tmp > dup.txt