Skip to content

Instantly share code, notes, and snippets.

View zgunz42's full-sized avatar
๐Ÿ 
Working from home

I Kadek Adi Gunawan zgunz42

๐Ÿ 
Working from home
View GitHub Profile
@chenshuo
chenshuo / nginx.conf
Created March 3, 2012 17:01
nginx conf using http echo module for '/hello'
#user nobody;
worker_processes 4;
events {
worker_connections 10240;
}
http {
include mime.types;
default_type application/octet-stream;
@veggerby
veggerby / gist:1064440
Created July 5, 2011 08:00
Get gravatar URL from Email
public static string GravatarUrl(this UrlHelper url, string email, int size)
{
string imageUrl = ConfigurationManager.AppSettings["DefaultGravatar"]; // e.g. "identicon" or a URL to image
if (imageUrl.StartsWith("~/"))
{
imageUrl = url.Absolute(imageUrl);
}
if (string.IsNullOrEmpty(email))
{
@pksunkara
pksunkara / config
Last active August 6, 2025 18:44
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
# vi: ft=dosini
[user]
name = Pavan Kumar Sunkara
email = [email protected]
username = pksunkara
[core]
editor = nvim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta
[column]