Skip to content

Instantly share code, notes, and snippets.


Uğur Erkan ugurerkan

View GitHub Profile
# AWS Lambda Deploy Script
# Shell helper for deploy lambda functions
# Make sure aws cli configured and installed before
function package() {
ugurerkan /
Last active Dec 8, 2021
Zimbra 8.6.0 Letsencrypt SSL renew walkthrough.
View gist:85f989eb76cfbe11280a56f1469c1df8
### Keybase proof
I hereby claim:
* I am ugurerkan on github.
* I am ugurerkan ( on keybase.
* I have a public key whose fingerprint is 8FAD F396 CEA3 9C85 C19A 6F74 EF85 B034 B9E6 BFD9
To claim this, I am signing this object:
# toggle iTerm Dock icon
# add this to your .bash_profile or .zshrc
function toggleiTerm() {
echo "Do you wish to hide iTerm in Dock and enable fullscreen visor?"
select ync in "Hide" "Show" "Cancel"; do
case $ync in
'Hide' )
defaults write /Applications/ LSUIElement true
echo "relaunch iTerm to take effectives"
View zaxd.js
var container = document.getElementById('answer');
for(var i = 1; i <= 5; i++) {
var a = document.createElement("a");
a.innerHTML = "link" + i + " ";
var onClick = function () {
var i = this.innerHTML.substr(-2);
ugurerkan / lipsum.gen.php
Created Nov 14, 2013
PHP lipsum text generator
View lipsum.gen.php
function loremGen($max)
$str = '';
$lorem = array('Lorem ipsum dolor sit amet, consectetur adipiscing elit. ',
'Nunc pharetra urna mi. ',
'Suspendisse semper ipsum et leo varius, id posuere odio interdum. ',
'Pellentesque ut turpis porttitor, scelerisque felis eget, malesuada dolor. ',
'Ut nec ultrices nibh. Proin eleifend adipiscing lectus quis volutpat. ',
View tr_ucfirst.php
function tr_ucfirst($str)
$f = mb_substr($str, 0,1);
case 'i':
$r = 'İ';
case 'ç':