Skip to content

Instantly share code, notes, and snippets.

View damien-list's full-sized avatar

Damien List damien-list

View GitHub Profile
@premek
premek / mv.sh
Last active March 5, 2024 17:43
Rename files in linux / bash using mv command without typing the full name two times
# Put this function to your .bashrc file.
# Usage: mv oldfilename
# If you call mv without the second parameter it will prompt you to edit the filename on command line.
# Original mv is called when it's called with more than one argument.
# It's useful when you want to change just a few letters in a long name.
#
# Also see:
# - imv from renameutils
# - Ctrl-W Ctrl-Y Ctrl-Y (cut last word, paste, paste)
@pamelafox
pamelafox / PULL_REQUEST_TEMPLATE.md
Created December 7, 2017 22:04
The pull request template for Woebot.

High-level description of change

Why you made these changes (how it helps us or our users)

Are there performance implications for this change?

REPLACE THIS: Please profile using time/timeEnd any potentially time-taking changes. Then profile using node profiler to identify what aspects take most time.

Have you added tests to cover this new/updated code?

@juanca
juanca / github_load_all_diffs.js
Created March 2, 2017 18:42
Github PR bookmarklet: Load all file diffs
javascript:
document.querySelectorAll('.load-diff-button').forEach(node => node.click())
@avafloww
avafloww / PhpJava.java
Last active June 13, 2024 07:36
This snippet of code is syntactically valid in both PHP and Java, and produces the same output in both.
/*<?php
//*/public class PhpJava { public static void main(String[] args) { System.out.printf("/*%s",
//\u000A\u002F\u002A
class PhpJava {
static function main() {
echo(//\u000A\u002A\u002F
"Hello World!");
}}
//\u000A\u002F\u002A
PhpJava::main();
@Niteshvgupta
Niteshvgupta / readme.md
Last active March 1, 2023 02:15
Install PHP7-compatible memcache on Mac OS X

1. Install PHP7 with brew

brew install php70

2. Install Memcache from source on PHP7 branch

git clone -b NON_BLOCKING_IO_php7 https://github.com/websupport-sk/pecl-memcache.git
cd pecl-memcache
phpize
./configure
make &amp;&amp; make install
@staltz
staltz / introrx.md
Last active September 24, 2024 06:42
The introduction to Reactive Programming you've been missing
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active September 24, 2024 02:02
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active September 21, 2024 08:58
A badass list of frontend development resources I collected over time.
anonymous
anonymous / countryselect
Created November 22, 2012 18:19
List of country with their local name
^<select name="CountrySelect">
<option selected="selected">Select a country from this menu</option>
<option value="couaf.html">Afghanistan • افغانستان</option>
<option value="coual.html">Albania • Shqipëria</option>
<option value="coudz.html">Algeria • الجزائر</option>
<option value="couad.html">Andorra</option>
<option value="couao.html">Angola</option>
<option value="couag.html">Antigua and Barbuda</option>
<option value="couar.html">Argentina</option>
<option value="couam.html">Armenia • Հայաստան</option>
@m4dz
m4dz / README.md
Last active January 27, 2023 01:14
OS X Fresh (Re)Install

OS X ENV (re)Install

This is my personal guide to restore my configuration and setup my system for a fresh install. I use it and keep it updated frequently. Hope it will inspire you on your own way =].

Backup

Before a fresh reinstall, don't forget to backup many things. A regular ghost made with CarbonCopyCloner or Clonezilla is a good solution, but if you can't, you should save the following: