Skip to content

Instantly share code, notes, and snippets.

View tomysmile's full-sized avatar

Tomy Ismail tomysmile

  • NITOZA
  • Dubai
View GitHub Profile
@tomysmile
tomysmile / Raspberry and Gammu.md
Last active May 18, 2022 01:02 — forked from damonsk/gist:3955099
GAMMU: Send SMS with Raspberry Pi

Send SMS messages using Raspberry Pi.

Using gammu and Huawei E220

Prepare SD card with wheezy.

Login / complete rasp-config / reboot / login

Set vimrc to prevent annoying ADBC arrow keys

cp /etc/vim/vimrc ~/.vimrc

@tomysmile
tomysmile / mac-new-INSTALLATION.md
Last active July 12, 2016 04:33 — forked from DenisIzmaylov/INSTALLATION.md
Mac OS X 10.11 El Capitan: fresh install with Node.js (io.js) Developer Environment

OS X 10.11 (El Capitan) / Node.js and io.js Developer Environment

Custom recipe to get OS X 10.11 El Capitan running from scratch with useful applications and Node.js Developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after fresh install.

Content

@tomysmile
tomysmile / app.js
Created October 19, 2015 07:21 — forked from jbavari/app.js
Node API server with CORS disabled, AngularJS controllers with proxy and no proxy, and the ionic.project settings to allow proxy
var express = require('express')
var app = express()
app.get('/api/feed', function(req, res) {
res.json({name: 'feed', items: ['first', 'second']})
})
var server = app.listen(3000, function () {
var host = server.address().address
@tomysmile
tomysmile / mysql_commands.md
Last active April 27, 2016 07:34 — forked from jasperf/access_from_web.md
MySQL Commands to create users, database, password and grant necessary privileges from the command line

Bash commands

starting the server

$ mysql.server start

stoping the server

$ mysql.server stop
@tomysmile
tomysmile / 01_Laravel 5 Simple ACL manager_Readme.md
Created January 8, 2016 06:40 — forked from amochohan/01_Laravel 5 Simple ACL manager_Readme.md
Laravel 5 Simple ACL - Protect routes by an account / role type

#Laravel 5 Simple ACL manager

Protect your routes with user roles. Simply add a 'role_id' to the User model, install the roles table and seed if you need some example roles to get going.

If the user has a 'Root' role, then they can perform any actions.

Installation

Simply copy the files across into the appropriate directories, and register the middleware in App\Http\Kernel.php

@tomysmile
tomysmile / mac-osx-homebrew-setup.md
Last active July 12, 2016 06:12 — forked from sr75/osx-homebrew-setup.md
Mac Yosemite OSX - Homebrew (RVM/MySQL/Redis) setup

Mac Homebrew (RVM/MySQL/Redis) setup

Follow the steps below to setup a local development environment:

XQuartz

Recommended to download latest XQuartz

iTerm2

@tomysmile
tomysmile / 0_reuse_code.js
Created March 12, 2016 07:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@tomysmile
tomysmile / Android Home
Created April 24, 2016 05:29 — forked from ericaroy/Android Home
Setting Android Home on Mac
Note for me to remember how to set Android Home on Mac
Open Terminal and type in..
nano ~/.bash_profile
Add the below paths
The path should be where your android installation is located
export ANDROID_HOME=/Users/username/Library/Android/sdk
export export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
Save file and type in terminal...
source ~/.bash_profile
export ANDROID_HOME=/Users/admin/Library/Android/sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
tools:$ANDROID_HOME/tools:$PATH
@tomysmile
tomysmile / java-settings-osx.md
Created April 24, 2016 05:35 — forked from itsvicsoto/java-settings-osx.md
Java Environment Settings OSX

Java Environment Settings OSX

Brew

Install homebrew

Install Java Pre-Reqs

Install java and maven