Skip to content

Instantly share code, notes, and snippets.

View franciscbalint's full-sized avatar

Francisc Balint franciscbalint

View GitHub Profile
{
"user": {
"debug": true,
"delay": 1,
"error_color": "D02000",
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
"gutter_theme_excludes": [],
"lint_mode": "background",
"linters": {
"php": {
alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app'
alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app'
alias subl='/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl'
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
@franciscbalint
franciscbalint / Make-CS50.sublime-build
Created April 27, 2015 21:30
Sublime Text 3 C build system for CS50
{
"cmd": [
"clang",
"-ggdb3",
"-O0",
"-std=c99",
"-Wall",
"-Werror",
"$file",
"-lcs50",
@franciscbalint
franciscbalint / .gitignore
Last active January 15, 2016 11:13 — forked from octocat/.gitignore
Java Eclipse OSX common .gitignore configurations
*.class
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war
*.ear
# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
@franciscbalint
franciscbalint / compile-asm.sh
Created June 12, 2016 23:22
Complainer ASM
#!/bin/bash
# Author Francisc Balint - fib.im
numArg=$#
clear
if [ $numArg -ne 2 ]; then
echo "You entered too many or too little arguments when expected 2"
echo "you supplied only $numArg"
echo "Usage: compile.sh <input.asm> <program_name>"
exit
else
@franciscbalint
franciscbalint / restart_bluetooth.sh
Last active July 19, 2018 12:00 — forked from nicolasembleton/restart_bluetooth.sh
Restart Bluetooth Daemon on Mac OS X/macOS Sierra without restarting
#!/bin/bash
# To run this script you need to give execute permission.
# $chmod +x restart_bluetooth.sh;
# If you want only to restart:
# $ ./restart_bluetooth.sh;
# If you want to turn bluetooth on;
# $ ./restart_bluetooth.sh 1;
# If you want to turn bluetooth off;
# $ ./restart_bluetooth.sh 0;

Create the directory for the new instance

$ sudo install -o redis -g redis -d /var/lib/redis2

Create a new configuration file

$ sudo cp -p /etc/redis/redis.conf /etc/redis/redis2.conf