Skip to content

Instantly share code, notes, and snippets.

Avatar
🦖

Monica Giambitto nirnaeth

🦖
View GitHub Profile
View questions-for-your-interviewer.md

I bundled these up into groups and wrote some thoughts about why I ask them!

If these helped you, I'd love to hear about it!! I'm on twitter @vcarl_ or send me an email carl.vitullo@gmail.com

Onboarding and the workplace

https://blog.vcarl.com/interview-questions-onboarding-workplace/

  • How long will it take to deploy my first change? To become productive? To understand the codebase?
  • What kind of equipment will I be provided? Will the company pay/reimburse me if I want something specific?
@chadmayfield
chadmayfield / hashcat_macos.sh
Created Jun 2, 2017
Install Hashcat on macOS
View hashcat_macos.sh
#!/bin/bash
git clone https://github.com/hashcat/hashcat.git
mkdir -p hashcat/deps
git clone https://github.com/KhronosGroup/OpenCL-Headers.git hashcat/deps/OpenCL
cd hashcat/ && make
./hashcat --version
./hashcat -b -D 1,2
./example0.sh
@giannisp
giannisp / gist:b53a76047b07751ed3ade3c1db1d2c51
Created Nov 18, 2016
Upgrade PostgreSQL 9.5.5 to 9.6.1 using Homebrew (macOS)
View gist:b53a76047b07751ed3ade3c1db1d2c51
After automatically updating Postgres to 9.6.1 via Homebrew, the pg_ctl start command didn't work.
The error was something like "database files are incompatible with server".
Database files have to be updated before starting the server, here are the steps that had to be followed:
# need to have both 9.6.1 and latest 9.5.x installed, and keep 9.6.1 as default
brew unlink postgresql
brew install postgresql95
brew unlink postgresql95
brew link postgresql
View types.markdown

This document has moved!

It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.

@chbrown
chbrown / _upgrade-pg9.4-to-pg9.5.md
Last active Dec 11, 2018
Upgrade PostgreSQL 9.4 to 9.5 on Mac OS X with Homebrew
View _upgrade-pg9.4-to-pg9.5.md

First, check your current config (example output in homebrew.mxcl.postgresql.plist.xml lower down in this gist):

cat ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist

Most importantly, note the -D /usr/local/var/postgres argument.

Second, shut down your current PostgreSQL.

launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
@pdincau
pdincau / gist:08f7b2fac39088c87b75
Last active Dec 26, 2016
Things I learned about ExUnit
View gist:08f7b2fac39088c87b75
Run tests:
mix test
Run single test file:
mix test path/to/file
Run single test:
@luopio
luopio / gist:f5a58f1dacf94d6094ad
Last active Jun 17, 2016 — forked from gnepud/gist:5804215
Generating a Paymill token to test without the Javascript Bridge
View gist:f5a58f1dacf94d6094ad
module PaymillSupport
def get_payment_token
# Simulate the JavaScript bridge we would use in production
params = {
'transaction.mode' => 'CONNECTOR_TEST',
'channel.id' => Rails.configuration.paymill_public_key,
'jsonPFunction' => 'function',
'account.number' => '4111111111111111',
'account.expiry.month' => 1.year.from_now.month,
@mmasashi
mmasashi / exit_code_matches.rb
Last active May 26, 2020 — forked from stevenharman/exit_code_matches.rb
Exit code matcher for rspec 3
View exit_code_matches.rb
RSpec::Matchers.define :terminate do |code|
actual = nil
def supports_block_expectations?
true
end
match do |block|
begin
block.call
View capybara_cheat_sheet.rb
#=Navigating=
visit('/projects')
visit(post_comments_path(post))
#=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click_on('Button Value')
@rklemme
rklemme / automated_class_instance_collaboration.rb
Last active May 12, 2017
Example for adding functionality to instances of a class which needs help from class methods of the same class. Use two modules - one for instance methods and one for class methods.
View automated_class_instance_collaboration.rb
#!/usr/bin/ruby -w
module Foo
module Foo4Class
def reset_instance_count
@instance_count = 0
end
def new(*a, &b)
super.tap { @instance_count += 1 }