Skip to content

Instantly share code, notes, and snippets.

@jayluxferro
jayluxferro / Microsoft_SQL-Server_Docker_Installation_MacOSX.md
Created July 13, 2018 16:31
Microsoft SQL Server Docker Installation on MacOSX
@jayluxferro
jayluxferro / parallels_tools_ubuntu_new_kernel_fix.md
Created July 11, 2018 15:17 — forked from rudolfratusinski/parallels_tools_ubuntu_new_kernel_fix.md
Parallels Tools fix for Ubuntu 18.04 and other Linux distributions with Kernel version >= 4.15

Preparation

  • In open Ubuntu 18.04 machine click Parallels Actions -> "Install Parallels Tools"

  • A "Parallels Tools" CD will popup on your Ubuntu desktop.

  • Open it by double mouse click, copy all the content to a new, empty directory on a desktop, name it for e.g. "parallels_fixed"

  • Open terminal, change directory to parallels_fixed (cd ~/Desktop/parallels_fixed)

  • Make command line installer executable (chmod +x install)

  • Change directory to "installer" (cd installer)

  • Make few other scripts executable: chmod +x installer.* *.sh prl_*

@jayluxferro
jayluxferro / FirebaseStorageNodeJs.js
Last active July 10, 2018 17:28
Firebase Storage using nodejs
/**
* npm dependencies
* "@google-cloud/storage": "^0.4.0",
* "mime": "^1.3.4"
*/
const keyFilename="./my-private-api-key-file.json"; //replace this with api key file
const projectId = "my-project-id-should-go-here" //replace with your project id
const bucketName = `${projectId}.appspot.com`;
@jayluxferro
jayluxferro / OpencvInstallerLinux.md
Last active July 8, 2018 12:05
OpenCV Installer Linux

######################################

INSTALL OPENCV ON UBUNTU OR DEBIAN

######################################

Author: Jay Lux Ferro

Date: 5th July, 2018

1. KEEP UBUNTU OR DEBIAN UP TO DATE

sudo apt-get -y update
@jayluxferro
jayluxferro / NPM_Permission_Error.md
Created June 20, 2018 20:01
NPM Permission Error
sudo npm install -g electron --unsafe-perm=true --allow-root
@jayluxferro
jayluxferro / Desktop_application_using_Electron_with_Sailsjs.md
Created June 19, 2018 19:25
Desktop application using Electron with Sailsjs
  1. command
$ npm install sails -g
  1. command
$ sails new DesktopApp
  1. command
@jayluxferro
jayluxferro / OpenWrt_Virtualbox.md
Created June 13, 2018 12:45
OpenWrt Virtualbox
  1. Download and install VirtualBox
  2. Get an OpenWrt image:
  3. Either use an existing image,
  4. Download the generic combined image for x86 (32-bit), e.g. chaos_calmer/15.05.1/x86/) LEDE 17.01.1 x86
  5. Download the generic combined image for x86_x64 (64-bit), e.g. chaos_calmer/15.05.1/x86/64) LEDE 17.01.1 x86_x64
  6. Uncompress the image if needed: gunzip openwrt.img.gz
  7. Convert it to native VirtualBox format:
VBoxManage convertfromraw --format VDI openwrt.img openwrt.vdi (in virtualbox version 5.0.12 the "--format VDI" is at the end of command)
@jayluxferro
jayluxferro / HyperV.md
Created June 3, 2018 12:15
Run Hyper-V and Virtualbox on the same machine
C:\>bcdedit /copy {current} /d "No Hyper-V"
The entry was successfully copied to {ff-23-113-824e-5c5144ea}.
C:\>bcdedit /set {ff-23-113-824e-5c5144ea} hypervisorlaunchtype off
The operation completed successfully.
@jayluxferro
jayluxferro / .htaccess
Last active May 30, 2018 19:06 — forked from keithmorris/.htaccess
CodeIgniter .htaccess file
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
#Removes access to the system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]