Skip to content

Instantly share code, notes, and snippets.

View udoyen's full-sized avatar

george udosen udoyen

View GitHub Profile
@udoyen
udoyen / cifs-mount.md
Created September 16, 2018 17:19 — forked from ipbastola/cifs-mount.md
How to mount CIFS into Ubuntu 14.04-x64 LTS

CIFS Mount on Ubuntu 14.04

1. Install packages

$ sudo apt-get install cifs-utils

2. Create a Mount point Directory

$ sudo mkdir /mnt/CIFSMOUNT

Keybase proof

I hereby claim:

  • I am udoyen on github.
  • I am udoyen (https://keybase.io/udoyen) on keybase.
  • I have a public key whose fingerprint is FB05 B7B3 FEDE 7EF8 A6B2 AF2C 64E5 DDBA CD55 E285

To claim this, I am signing this object:

@udoyen
udoyen / fuse.md
Created August 19, 2018 21:06 — forked from cstroe/fuse.md
FUSE on Ubuntu

FUSE on Ubuntu

It seems that Fuse is compiled into the Ubuntu kernel by default.

To test you can use sshfs:

sudo apt-get install sshfs
mkdir tmp
sshfs localhost:/tmp ./tmp

ls tmp

@udoyen
udoyen / _service.md
Created August 15, 2018 16:40 — forked from naholyr/_service.md
Sample /etc/init.d script

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
@udoyen
udoyen / ViewVisibilityIdlingResource.java
Created July 27, 2018 04:53 — forked from vaughandroid/ViewVisibilityIdlingResource.java
An IdlingResource for Espresso which blocks until a View has a particular visibility state.
package com.vaughandroid.test.espresso.idlingresources;
import android.app.Activity;
import android.os.Handler;
import android.support.annotation.IdRes;
import android.support.annotation.NonNull;
import android.support.test.espresso.*;
import android.view.View;
import java.lang.ref.WeakReference;
@udoyen
udoyen / DBMS.java
Created July 17, 2018 21:42 — forked from jcxavier/DBMS.java
Singleton database class for Android for quickly starting developing an application with a database being created from a SQL script
/*
* Copyright (C) 2011 João Xavier
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@udoyen
udoyen / install virtualenv ubuntu 16.04.md
Created June 24, 2018 12:39 — forked from Geoyi/install virtualenv ubuntu 16.04.md
How to install virtual environment on ubuntu 16.04

How to install virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv 
@udoyen
udoyen / VSCodeExtension.py
Created June 23, 2018 17:10 — forked from harry-cpp/VSCodeExtension.py
VSCode extension for Nautilus
# VSCode Nautilus Extension
#
# Place me in ~/.local/share/nautilus-python/extensions/, restrart Nautilus, and enjoy :)
# mkdir -p ~/.local/share/nautilus-python/extensions && cp -f VSCodeExtension.py ~/.local/share/nautilus-python/extensions/VSCodeExtension.py && nautilus -q
#
# This script was written by cra0zy and is released to the public domain
from gi import require_version
require_version('Gtk', '3.0')
require_version('Nautilus', '3.0')
@udoyen
udoyen / curl.cmd
Created June 9, 2018 19:43 — forked from gmarik/curl.cmd
@rem Do not use "echo off" to not affect any child calls.
@setlocal
@rem Get the abolute path to the parent directory, which is assumed to be the
@rem Git installation root.
@for /F "delims=" %%I in ("%~dp0..") do @set git_install_root=%%~fI
@set PATH=%git_install_root%\bin;%git_install_root%\mingw\bin;%PATH%
@if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH%
@if not exist "%HOME%" @set HOME=%USERPROFILE%
@udoyen
udoyen / vim_vundle_and_conemu.md
Created June 9, 2018 19:33 — forked from danwagnerco/vim_vundle_and_conemu.md
This is a Windows-specific walkthrough for installing Vim, Vundle and ConEmu

Vim, Vundle and ConEmu on Windows

Let's start by getting it out on the table: Sublime Text is great, and version 3 should no longer be considered "abandonware" as of build 3065. Sublime Text served me very, very well over the years. That said, trying out new things is a major part of leveling-up, and in that vein Vim deserves a go. (And have you seen some of those thoughtbot guys flying around in Vim? It's awesome!)

Getting Vim up-and-running on your Windows machine doesn't have to be an all-day project. In this post, we'll walk through:

  • Installing gVim, which gives us both the "classic" command line version as well as the graphical version
  • Installing Vundle, the best way to handle Vim-enhancing packages
  • Installing ConEmu, a supercharged command line emulator for Windows