Skip to content

Instantly share code, notes, and snippets.

@patsancu
patsancu / git-advanced-shotgun-buffet.sh
Created July 30, 2024 14:22 — forked from v33rh0ra/git-advanced-shotgun-buffet.sh
git-advanced-scott-chacon-fosdem2024
# ---------------------------------------------------------
# Porcelain (82)
# 44 main commands (add, commit, push, pull, ..)
# 11 manipulators (config, reflog, replace, ..)
# 17 interrogators (blame, fsck, rerere, ..)
# interactors (send-email, p4, svn, ..)
# Plumbing (63)
# 19 manipulators (apply, commit-tree, update-ref, ..)
# 21 interrogators (cat-file, for-each-ref, ..)
@patsancu
patsancu / wordlist-german.txt
Last active August 1, 2024 14:34 — forked from MarvinJWendt/wordlist-german.txt
All german words (german wordlist). #data #dictionary #german #dict #wörterbuch #deutsch
This file has been truncated, but you can view the full file.
AA
AAA
Aachen
Aachener
Aachenerin
Aachenerinnen
Aachenern
Aacheners
Aachens
@patsancu
patsancu / RAILS_CHEATSHEET.md
Created March 5, 2023 20:12 — forked from mdang/RAILS_CHEATSHEET.md
Ruby on Rails Cheatsheet

Ruby on Rails Cheatsheet

Architecture

Create a new application

Install the Rails gem if you haven't done so before

Reverse interview

Engineering

  1. What tech stack do you use? Are you rolling out new technologies or sunsetting older ones? Do you have any legacy system that you need to maintain?
  2. What is your maturity stage? Finding a direction, feature work, maintenance...
  3. What are the next big engineering challenges you will face?
  4. How are requirements delivered to the engineering teams? How are technical decisions made and communicated?
  5. What level of involvement do engineers have in relation to architecture and system design? How much freedom for decision making do individual developers have? What happens if an engineer identifies areas of improvement?
  6. What is the junior/senior balance of the team?
@patsancu
patsancu / FixCommandForMacKeyboard.md
Created May 17, 2021 18:03 — forked from digiter/FixCommandForMacKeyboard.md
Map Command Key to Control For ubuntu + mac keyboard

For each machine running xmodmap will give you the mapping and keycode, take a look first then write the script. I use ubuntu and mac keyboard. The below maps both left and right control and super.

Create an .Xmodmap file in your Linux home directory, with the following contents, then execute xmodmap .Xmodmap

clear control
clear mod4

keycode 37 = Super_L
keycode 105 = Super_R
@patsancu
patsancu / .gitconfig
Created April 10, 2019 09:37 — forked from Kovrinic/.gitconfig
git global url insteadOf setup
# one or the other, NOT both
[url "https://github"]
insteadOf = git://github
# or
[url "[email protected]:"]
insteadOf = git://github
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Matplotlib Tips and Demos\n",
"\n",
"When I first learned Python three years ago, I was often finding myself having to lookup the same thing again and again for Matplotlib. This was back pre-2.0 when there was even more issues (e.g. plotting `NaNs` with masked arrays). \n",
"\n",
@patsancu
patsancu / DateDifference.py
Created January 26, 2018 09:03 — forked from amalgjose/DateDifference.py
This is a very simple python code snippet for calculating the difference between two dates or timestamps. This will calculate the difference in terms of number of years, months, days, hours, minutes etc.
__author__ = 'Amal G Jose'
from datetime import datetime
from dateutil import relativedelta
##Aug 7 1989 8:10 pm
date_1 = datetime(1989, 8, 7, 20, 10)
##Dec 5 1990 5:20 am
date_2 = datetime(1990, 12, 5, 5, 20)