Skip to content

Instantly share code, notes, and snippets.

@bouassaba
bouassaba / gist:1763af8a73d087dcc275a69dbf4f7884
Created February 17, 2018 17:57
consul, enable remote connection
consul agent -dev -client 0.0.0.0
@bouassaba
bouassaba / gist:1682d1dc91334d27e5d87411b131d8af
Created February 17, 2018 17:54
rabbitmq create user command line
rabbitmqctl add_user test test
rabbitmqctl set_user_tags test administrator
rabbitmqctl set_permissions -p / test ".*" ".*" ".*"
@bouassaba
bouassaba / p4merge-git-tool.md
Created November 24, 2017 19:06 — forked from dgoguerra/p4merge-git-tool.md
Setup p4merge as difftool and mergetool on Windows

Setting up p4merge as diff and merge tool on Windows. Tried for Git version 1.8.4.msysgit.0.

Two alternatives are explained: using the command line, and directly editing the config file.

Setting up from the command line

Being the installation path "C:Program Files\Perforce\p4merge.exe", just run:

$ git config --global diff.tool p4merge
@bouassaba
bouassaba / gist:4ef71989d682c88585a0e6f1521d7d7c
Created September 16, 2017 21:23
Start PostgreSQL on macOS when installed using Homebrew
pg_ctl -D /usr/local/var/postgres start
@bouassaba
bouassaba / gist:26ce7f1288717d6f5348afdaaff46e48
Created September 3, 2017 15:54 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@bouassaba
bouassaba / HadoopFileSystemOperations.java
Last active July 16, 2017 20:07 — forked from ashrithr/FIleSystemOperations.java
HDFS FileSystems API example
package com.cloudwick.mapreduce.FileSystemAPI;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
@bouassaba
bouassaba / sqlserver_disable_single_user.sql
Created January 2, 2017 04:52
SQL Server disable single user mode for db
USE MASTER;
ALTER DATABASE [my_db] SET MULTI_USER
GO
@bouassaba
bouassaba / gist:ad3e154af47360b267d8d9e40ea7cd5b
Created December 26, 2016 15:32
Windows fonts substitute registry key
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes
@bouassaba
bouassaba / powershell_open_popup.ps1
Created December 26, 2016 04:28
powershell open popup window
$shell = New-Object -ComObject Wscript.Shell
$shell.Popup("Hello World!", 0, "OK", 0x1)
@bouassaba
bouassaba / combine_vmdk.ps1
Created December 23, 2016 11:12
Combine vmware vmdk files into one
vmware-vdiskmanager.exe -r "path\to\source\Virtual Disk.vmdk" -t 0 "path\to\destination\virtualdisk.vmdk"