Skip to content

Instantly share code, notes, and snippets.

View hkdobrev's full-sized avatar

Harry Dobrev hkdobrev

View GitHub Profile
@hkdobrev
hkdobrev / git-topics.txt
Created March 27, 2018 19:28
Git topics I'm comfortable discussing
git [add, stach, checkout, reset] --patch
git add --interactive
aliases for fast CLI usage
aliases for advanced functionality
hub https://hub.github.com
git log
git shortlog
git reflog
.mailmap
.gitattributes - export-ignore, better hunk headers, image diffs
#!/usr/bin/env bash
echo "Installing Brew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo "Installing Brew Cask"
brew install caskroom/cask/brew-cask
echo "Installing VirtualBox"
brew cask install virtualbox
#!/usr/bin/env bash
# Colours picked from https://robinpowered.com/blog/best-practice-system-for-organizing-and-tagging-github-issues/
###
# Label definitions
###
declare -A LABELS
# Platform

Keybase proof

I hereby claim:

  • I am hkdobrev on github.
  • I am hkdobrev (https://keybase.io/hkdobrev) on keybase.
  • I have a public key whose fingerprint is BF8F D83B EEC4 314A FDFF 6C02 A0E6 4406 2DD8 4926

To claim this, I am signing this object:

@hkdobrev
hkdobrev / 0_reuse_code.js
Created April 1, 2014 12:37
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
'use strict';
var path = require('path');
module.exports = function (grunt) {
// Load externally-defined tasks
grunt.loadTasks('tasks/grunt');
// Load grunt tasks automatically
@hkdobrev
hkdobrev / .gitignore
Last active February 3, 2024 14:37 — forked from octocat/.gitignore
# Folder view configuration files #
###################################
.DS_Store
Desktop.ini
# Thumbnail cache files #
#########################
._*
ehthumbs.db
Thumbs.db
@hkdobrev
hkdobrev / class-order.php
Last active September 7, 2023 09:08
PHP convention for the order in a class.
<?php namespace Vendor\Library;
use Another\Vendor\Library\ClassName;
abstract class ClassName extends AnotherClass implements Countable, Serializable
{
const CONSTANTS = 'top';
use someTrait, anotherTrait {
anotherTrait::traitMethod insteadof someTrait;