Skip to content

Instantly share code, notes, and snippets.

https://github.com/osxfuse/osxfuse/releases/download/osxfuse-3.5.8/osxfuse-3.5.8.dmg
1. brew install ntfs-3g
2. sudo mv "/Volumes/Macintosh HD/sbin/mount_ntfs" "/Volumes/Macintosh HD/sbin/mount_ntfs.orig"
3. sudo ln -s /usr/local/sbin/mount_ntfs "/Volumes/Macintosh HD/sbin/mount_ntfs"
@raulbcs
raulbcs / nettest.sh
Last active November 23, 2016 14:43
#!/bin/bash
GW=`ip route | awk '/default/ { print $3 }'`
checkdns=`cat /etc/resolv.conf | awk '/nameserver/ {print $2}' | awk 'NR == 1 {print; exit}'`
checkdomain=google.com
#some functions
function portscan
{
@raulbcs
raulbcs / vmware-for-3.17.patch
Created January 9, 2015 21:11
fedora 21 vmware patch
diff -ur a/vmblock-only/linux/control.c b/vmblock-only/linux/control.c
--- a/vmblock-only/linux/control.c 2014-04-15 01:41:40.000000000 +0400
+++ b/vmblock-only/linux/control.c 2014-10-09 05:21:34.094551409 +0400
@@ -208,9 +208,11 @@
VMBlockSetProcEntryOwner(controlProcMountpoint);
/* Create /proc/fs/vmblock/dev */
- controlProcEntry = create_proc_entry(VMBLOCK_CONTROL_DEVNAME,
- VMBLOCK_CONTROL_MODE,
- controlProcDirEntry);
@raulbcs
raulbcs / gist:f7f9d766ee5d33c63d27
Created November 4, 2014 14:59
Synchronize linux date and time
date -s "$(curl -s --head http://google.com | grep ^Date: | sed 's/Date: //g')"
@raulbcs
raulbcs / gitsvn.md
Last active August 29, 2015 14:07
Using git svn

Since a few weeks, I've been using git as a interface to svn.
As we all git users know, git is a lot better.
Even if my company isn't going to migrate to git soon, I feel more comfortable working with git.
I assume that, if you are reading this, you already know the git basics (fetch/pull/push/add/commit/rebase).

git svn clone clone remote repository and "translate" svn commits to git commits

git svn fetch fetch remote commits

#!/usr/bin/env bash
# Usage: {script} [ OPTIONS ] TARGET VERSION
#
# TARGET Default target is "/usr/local".
# VERSION If not defined tries to get the build into the Sublime Text 2 website.
#
# OPTIONS
#
# -h, --help Displays this help message.
#
@raulbcs
raulbcs / Instructions
Last active December 30, 2015 09:19
Install pandoc @ OS X 10.9 Mavericks
Install Homebrew (http://brew.sh/)
$ brew install haskell-platform
$ cabal update
$ cabal install pandoc
Pandoc will be installed in ~/.cabal/bin/pandoc
@raulbcs
raulbcs / Solr start-up @ Fedora 18
Last active December 24, 2015 09:58
Instructions
Create a /lib/systemd/system/solr.service file:
[Unit]
Description=Solr
After=syslog.target network.target rpcbind.service
[Service]
User=raul
Group=raul
WorkingDirectory=/var/www/html/solr
Type=simple