Skip to content

Instantly share code, notes, and snippets.

View chris-asl's full-sized avatar

Chris Aslanoglou chris-asl

View GitHub Profile
@suhlig
suhlig / install-tmux
Last active October 12, 2023 21:25 — forked from philipsd6/install-tmux
Install tmux on rhel/centos
# Install tmux on rhel/centos 7
# What do we want?
libeventversion=2.1.11
tmuxversion=3.1
# install deps
yum install gcc kernel-devel make ncurses-devel
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
@boneskull
boneskull / README.md
Last active April 10, 2024 12:47
example of how to debug mocha v4 if hanging

Here's an example of how to debug Mocha v4 if it hangs.

Ensure you're using a Node.js 8 or newer (or any version with async_hooks support).

If you run your test, you'll notice it hangs:

$ mocha test.js
@th3hunt
th3hunt / ProGit.md
Last active August 11, 2023 08:50
Pro Git - A list of Git aliases & recipes to Git like a 😎

Pro Git

A list of Git aliases & recipes to Git like a 😎.

Aliases

# ~/.git/config

[alias]
  # List all aliases :)
  la = "!git config -l | grep alias | cut -c 7-"
@hvanderlaan
hvanderlaan / smartlight.cfg
Last active September 2, 2017 16:05
getting Ikea tardfri lightbulb status
[tardfri]
hubip = x.x.x.x
securityid = AABBCCDDEEFFGGHH
# usefull bash commands for moss
# print submission dates
reset; ls -l */*.{tar,gz,rar} | awk '{for(i=6;i<=9;i++)printf "%s ",$i;printf "\n"}' | sort
# unzip archives
find . -type f -name *.tar -print0 | xargs -0 -I file sh -c 'tar -xf file -C `dirname file`'
find . -type f -name *.tar.gz -print0 | xargs -0 -I file sh -c 'tar -xzf file -C `dirname file`'
find . -type f -name *.rar -print0 | xargs -0 -I file sh -c 'unrar -y e file "`dirname file`"'
@pavelbinar
pavelbinar / extract-subtitles-from-mkv.md
Last active June 3, 2024 07:51 — forked from bmaeser/subtitle-extract.txt
Extract subtitles from .mkv files on Mac OS X
@justinabrahms
justinabrahms / .pdbrc.py
Created July 23, 2014 21:11
default pdbpp to start with sticky enabled
import pdb
class Config(pdb.DefaultConfig):
sticky_by_default = True
@DanHerbert
DanHerbert / fix-homebrew-npm.md
Last active June 4, 2024 04:16
Instructions on how to fix npm if you've installed Node through Homebrew on Mac OS X or Linuxbrew

OBSOLETE

This entire guide is based on an old version of Homebrew/Node and no longer applies. It was only ever intended to fix a specific error message which has since been fixed. I've kept it here for historical purposes, but it should no longer be used. Homebrew maintainers have fixed things and the options mentioned don't exist and won't work.

I still believe it is better to manually install npm separately since having a generic package manager maintain another package manager is a bad idea, but the instructions below don't explain how to do that.

Fixing npm On Mac OS X for Homebrew Users

Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.

@sloria
sloria / bobp-python.md
Last active June 26, 2024 15:54
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens