Skip to content

Instantly share code, notes, and snippets.

View jesuswasrasta's full-sized avatar
💭
Releasing tomorrow's legacy code, today

Ferdinando Santacroce jesuswasrasta

💭
Releasing tomorrow's legacy code, today
View GitHub Profile
@nickyleach
nickyleach / git-sync
Created March 9, 2011 20:12
git alias to sync the current branch
[alias]
sync = "!f(){ local branch=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e \"s/* \\(.*\\)/\\1/\"`; git pull origin $branch && git push origin $branch; }; f"
@pksunkara
pksunkara / config
Last active June 29, 2024 11:23
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
username = pksunkara
[init]
defaultBranch = master
[core]
editor = nvim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta
@jjdevbiz
jjdevbiz / bashrc
Created July 31, 2014 20:41
bash.bashrc from linux mint 17
if [ -f ~/.mint.bashrc ]; then
source ~/.mint.bashrc
fi
@wpscholar
wpscholar / vagrant-cheat-sheet.md
Last active June 26, 2024 13:23
Vagrant Cheat Sheet

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Creating a VM

  • vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.
  • vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.

Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)
@xpmatteo
xpmatteo / string-calculator-kata-test.cbl
Last active April 15, 2016 07:32
The String Calculator Kata in Cobol :)
IDENTIFICATION DIVISION.
PROGRAM-ID. StringCalculatorTest.
DATA DIVISION.
WORKING-STORAGE SECTION.
*> constants
01 newline PIC X VALUE x'0a'.
*> add parameters
#!/bin/bash
set -o pipefail
set -s
#####
# This script will take a fresh KDE Neon install and make it suitable for getting stuff done.
# It may not work against another Ubuntu Installation type.
# Run it with: bash <(wget -qO- https://git.io/vSe77)
#####
@lisawolderiksen
lisawolderiksen / git-commit-template.md
Last active June 28, 2024 17:15
Use a Git commit message template to write better commit messages

Using Git Commit Message Templates to Write Better Commit Messages

The always enthusiastic and knowledgeable mr. @jasaltvik shared with our team an article on writing (good) Git commit messages: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the

@DianaPerkinsDesign
DianaPerkinsDesign / gist:45844e7012d24102673270f669185a4b
Last active December 5, 2021 12:01
Board Game Recommendations

Playing at a Distance

First of all, there are some great digital options for playing games. Some work well remotely, some support local play on one device. Some are free, some cost money. Rather than list/compare all the options, here are some to check out on your own:

  • [Tabletop Simulator][]
  • [Tabletopia][]
  • [Board Game Arena][]
  • [Yucata][]

No Printer Required

@ibrahimhajjaj
ibrahimhajjaj / open_folder_in_PhpStorm_2020.bat
Last active May 27, 2024 10:10
Add Open Folder in PHPStorm to Windows Context Menu
@echo off
SET PhpStormPath=C:\Program Files\JetBrains\PhpStorm 2020.3.3\bin\phpstorm64.exe
echo Adding file entries
@reg add "HKEY_CLASSES_ROOT\*\shell\PhpStorm" /t REG_SZ /v "" /d "Open in PhpStorm" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\PhpStorm" /t REG_EXPAND_SZ /v "Icon" /d "%PhpStormPath%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\PhpStorm\command" /t REG_SZ /v "" /d "%PhpStormPath% \"%%1\"" /f
echo Adding within a folder entries
@jcwillox
jcwillox / toolbox-context-menu.ps1
Last active May 30, 2024 02:01
PowerShell script to automatically add context menu entries for Jetbrains IDEs
<#
.SYNOPSIS
Automatically add context menu entries for Jetbrains IDEs.
.PARAMETER Name
The name or names of the IDEs to add context menus for, use -List to see available IDEs.
.PARAMETER BasePath
The path to the Toolbox apps directory, defaults to "$env:LOCALAPPDATA\JetBrains\Toolbox\apps".
.PARAMETER Global
Install context menu entries in HKLM registry (machine wide), requires running as administrator.
.PARAMETER Force