Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
🧙🏻‍♂️

Uğur Erkan ugurerkan

💭
🧙🏻‍♂️
View GitHub Profile
View aws-lambda-deploy-helper.sh
#!/bin/bash
# AWS Lambda Deploy Script
#
# Shell helper for deploy lambda functions
# Make sure aws cli configured and installed before
FUNCTION_NAME="my-lambda-script"
function package() {
@ugurerkan
ugurerkan / zimbra-letsencrypt-renew.md
Last active Dec 8, 2021
Zimbra 8.6.0 Letsencrypt SSL renew walkthrough.
View zimbra-letsencrypt-renew.md
View gist:85f989eb76cfbe11280a56f1469c1df8
### Keybase proof
I hereby claim:
* I am ugurerkan on github.
* I am ugurerkan (https://keybase.io/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:
View toggleiTerm.sh
# 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/iTerm.app/Contents/Info LSUIElement true
echo "relaunch iTerm to take effectives"
break
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);
alert(i);
};
@ugurerkan
ugurerkan / lipsum.gen.php
Created Nov 14, 2013
PHP lipsum text generator
View lipsum.gen.php
<?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);
switch($f)
{
case 'i':
$r = 'İ';
break;
case 'ç':