Skip to content

Instantly share code, notes, and snippets.

:shipit:
💥 shakalaka

Tugberk Ugurlu tugberkugurlu

Block or report user

Report or block tugberkugurlu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@AlexZeitler
AlexZeitler / set-prompt.sh
Last active Sep 9, 2016
bash prompt including current git branch and current docker-machine
View set-prompt.sh
export PS1="\n\w\[\033[m\]\[\e[1;32m\]\$(__git_ps1) \[\033[36m\]\${DOCKER_MACHINE_NAME}\[\e[00m\]\n\[\033[32m\]⋙ \[\e[00m\] "
View Test.cs
public class SomeFixture : IDisposable
{
private DockerClient client;
public SomeFixture()
{
Console.WriteLine("SomeFixture ctor: This should only be run once");
//Using https://github.com/ahmetalpbalkan/Docker.DotNet
@revett
revett / README.md
Last active Nov 7, 2016
Tutum Zero Downtime Re-deploy
View README.md

Tutum Zero Downtime Re-deploy

cats.jpg

I tweeted Tutum last night asking if they're looking at implementing zero downtime re-deploys for a given service. Slightly surprised by their response as it seems like a critical feature if you want to use the service for a production environment.

"not a top priority, but by Spring :)"

As Tutum currently doesn't support graceful termination of containers within a service, I was experiencing a 5-10 second window of 503 errors, so decided to use the following hack (code below) until the feature is officially implemented.

@davidfowl
davidfowl / dotnetlayout.md
Last active May 24, 2019
.NET project structure
View dotnetlayout.md
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
  tests/
@prabirshrestha
prabirshrestha / .bash_profile
Last active May 26, 2019
my terminal settings for windows
View .bash_profile
# curl -Lk https://gist.githubusercontent.com/prabirshrestha/279d8b179d9353fe8694/raw/071a7d7060ba2b76603231f962d2240ed6bf0312/.bash_profile -o ~/.bash_profile
[[ -s ~/.nvm/nvm.sh ]] && . ~/.nvm/nvm.sh # This loads NVM
export PATH="$HOME/.cargo/bin:$HOME/go/bin:$HOME/Library/Python/3.7/bin:$PATH"
export PATH="$HOME/.config/nvim/plugins/vim-themis/bin:$PATH"
stty -ixon
# alias
alias ls='ls -Gp'
alias vi='nvim'
@bradwilson
bradwilson / Cacheability.cs
Created Jan 23, 2014
Using chaining to create cached results in ASP.NET Web API v2
View Cacheability.cs
public enum Cacheability
{
NoCache,
Private,
Public,
}
@RichardSlater
RichardSlater / MongoDB.ps1
Created Jan 16, 2014
Desired State Configuration to Install MongoDB on Windows Server 2013
View MongoDB.ps1
configuration MongoDB {
param (
[string[]]$ComputerName = $env:ComputerName
)
node $ComputerName {
File SetupFolder {
Type = 'Directory'
DestinationPath = "C:\setup"
Ensure = 'Present'
}
@hueniverse
hueniverse / gist:7686452
Last active Dec 30, 2018
Walmart Mobile node.js Setup
View gist:7686452

Overview

We run multiple server processes in two data centers. Each process listens on two ports, one for HTTP and one for HTTPS. HTTPS is terminated by Apache prior to reaching node.js. HTTP goes directly from the client to node.js (through a master load balancer). We do not use clusters. We slice our physical servers into thin virtual machines running SmartOS, each with about 3GB of memory designed for a single node.js process.

Our node.js servers are hapi.js servers using the composer functionality and plugins architecture. We have three sets of plugins loaded: mobile web front end experience (single page app), legacy API reverse proxy, and monitoring.

We also serve original node.js services off another server zone which runs closed source plugins using hapi.

Analytics

@bradwilson
bradwilson / vs2013-normal-menus.ps1
Created Nov 2, 2013
Say goodbye to VS2013's SHOUTING MENUS
View vs2013-normal-menus.ps1
Set-ItemProperty -Path HKCU:\Software\Microsoft\VisualStudio\12.0\General -Name SuppressUppercaseConversion -Type DWord -Value 1
You can’t perform that action at this time.