Skip to content

Instantly share code, notes, and snippets.

View efpapado's full-sized avatar

Stathis [Efstathios] Papadopoulos efpapado

View GitHub Profile

Local Development Techniques with Kubernetes

This talk is all live demos of tools developers can use in their inner-loop, at development time to be more productive with containers.

Start Easier

Docker Compose captures the build arguments and run arguments so we can focus on our coding.

@joseluisq
joseluisq / terminal-git-branch-name.md
Last active April 20, 2024 02:26
Add Git Branch Name to Terminal Prompt (Linux/Mac)

Add Git Branch Name to Terminal Prompt (Linux/Mac)

image

Open ~/.bash_profile in your favorite editor and add the following content to the bottom.

# Git branch in prompt.

parse_git_branch() {
@szeidler
szeidler / module_finder.drush
Last active September 1, 2016 21:48
Search in all aliases for module occurrence. Returns hits and version. Usage " ./module_finder.drush module_name"
#!/usr/bin/env drush
<?php
/**
* Usage: " ./module_finder.drush metatag"
* Usage multiple modules: " ./module_finder.drush 'views|metatag"
*/
// Get all aliases.
$aliases = _drush_sitealias_all_list();
@nmsdvid
nmsdvid / new_gist_file.js
Created February 4, 2014 16:32
Simple JavaScript Debounce Function
// Returns a function, that, as long as it continues to be invoked, will not
// be triggered. The function will be called after it stops being called for
// N milliseconds. If `immediate` is passed, trigger the function on the
// leading edge, instead of the trailing.
function debounce(func, wait, immediate) {
var timeout;
return function() {
var context = this, args = arguments;
clearTimeout(timeout);