Skip to content

Instantly share code, notes, and snippets.

@yoavniran
yoavniran / ultimate-ut-cheat-sheet.md
Last active March 24, 2025 20:20
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai, Sinon, and Jest
@raido
raido / index.js
Last active January 26, 2021 01:21
Ember Addon treeForPublic, so included assets from addon would not be namespaced.
/* jshint node: true */
'use strict';
var Funnel = require('broccoli-funnel');
var mergeTrees = require('broccoli-merge-trees');
module.exports = {
name: '<your addon>',
/**
# zypper in redis
# systemctl enable redis@default
# vim /etc/systemd/system/redis.target.wants/[email protected]
19- WantedBy=multi-user.target redis.target
19+ WantedBy=graphical.target multi-user.target redis.target
# systemctl daemon-reload
# systemctl start redis@default
# netstat -tln # <- check that redis is runnning.
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
@klaaspieter
klaaspieter / ASS.md
Created June 22, 2017 07:59 — forked from anonymous/ASS.md
Acronyms Seriously Suck - Elon Musk

From time to time, Musk will send out an e-mail to the entire company to enforce a new policy or let them know about something that's bothering him. One of the more famous e-mails arrived in May 2010 with the subject line: Acronyms Seriously Suck:

There is a creeping tendency to use made up acronyms at SpaceX. Excessive use of made up acronyms is a significant impediment to communication and keeping communication good as we grow is incredibly important. Individually, a few acronyms here and there may not seem so bad, but if a thousand people are making these up, over time the result will be a huge glossary that we have to issue to new employees. No one can actually remember all these acronyms and people don't want to seem dumb in a meeting, so they just sit there in ignorance. This is particularly tough on new employees.

That needs to stop immediately or I will take drastic action - I have given enough warning over the years. Unless an acronym is approved by me, it should not enter the SpaceX glossary.

@necojackarc
necojackarc / Mac Settings.md
Last active February 17, 2025 15:56
Mac Settings

General

  • Enable Tap to Click (System Settings > Trackpad)
  • Show the battery percentage (System Settings > Control Centre > Battery)
  • Show all filename extensions on Finder (Finder > Settings > Advanced)
  • Show Path Bar on Finder (Finder > View)
  • Install KeePassXC to manage credentials
  • Install Google Drive to sync important files such as KeePass file
  • Install Google Chrome
  • Automatically hide and show the Dock (Settings > Desktop & Dock > Dock settings)
  • This allows Mac to show the Dock on each display