Skip to content

Instantly share code, notes, and snippets.

@iamvery
iamvery / postgresapp_unix_socket.md
Last active January 21, 2024 10:12
Setup Postgres.app to allow connection via unix socket

These are instructions to setup Postgres.app to allow connections over unix sockets. These instructions were written for Mac OS X 10.8 (Mountain Lion).

  1. Run Postgres.app once so that the configuration is initialized in ~/Library/Application Support/Postgres.
  2. Close Postgres.app
  3. Open ~/Library/Application Support/Postgres/var/postgresql.conf in your favorite text editor.
  4. Uncomment the line unix_socket_directory = '' and change it to unix_socket_directory = '/var/pgsql_socket'
  5. Create the directory /var/pgsql_socket if it doesn't exist.
  6. Run chmod 770 /var/pgsql_socket (may need to be run with sudo)
  7. Run chown root:staff /var/pgsql_socket (may need to be run with sudo)
defmodule RandomTest do
use ExUnit.Case
test "randomness may be seeded" do
seed = :rand.export_seed()
list = Enum.to_list(1..10_000)
values =
for _ <- 1..10_000 do
Enum.random(list)
@iamvery
iamvery / osx-restart-cisco-vpn.sh
Created December 7, 2011 04:46
Restart the Cisco VPN service in Mac OS 10.6ish
# See https://discussions.apple.com/thread/3173994?start=0&tstart=0
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.racoon.plist
sudo launchctl load /System/Library/LaunchDaemons/com.apple.racoon.plist
@iamvery
iamvery / notes.md
Last active October 1, 2021 18:32
2021-10-01 Shoals JavaScript Meetup
@iamvery
iamvery / notes.md
Last active September 17, 2021 18:29
2021-09-17 Shoals JavaScript Meetup

Where to host projects

Talking early career; landing the first job

  • LinkedIn is a good resource, but you may have to closely tweak what you list so you're "caught" in the queries recruiters throw at it.
  • example, someone mentioned changing their profile from "6mo React" to "1yr React" produced a lot more interest

"I have an endpoint that returns a JSON collection of 'exercises'. How can I display it as a web page?"

  • React
source "https://rubygems.org"
gem "gnuplot"
gem "highline"
@iamvery
iamvery / notes.md
Last active March 24, 2021 17:28
2021-03-24 – Florence JS Meetup

Getting started/early career

  • Chandler Baskins spoke on "Angular Air" about lowering the barrier of entry https://www.youtube.com/watch?v=rBvpwE7tbGU
  • Ideas for how to get started?
    • think about how you learn; visual?
    • https://www.udemy.com/ worked for Chandler
    • Video can be misleading. You may think you are retaining more information than you actually are. Generally you may only take away 15% of what you see.
    • Maybe don't try to work along as you watch, but instead watch and then apply concepts on your own so that you have a chance to experience what you're learning in additional to just typing out something that's being presented
    • Having your own project to work on is a great learning strategy whether you're visual or not. It's just a good way to learn.
    • Side projects are also a good way to continue learning even once you're working fulltime.
  • https://www.freecodecamp.org/ was mentioned