Skip to content

Instantly share code, notes, and snippets.

View smamran's full-sized avatar
:octocat:
Focusing

S. M. AMRAN smamran

:octocat:
Focusing
View GitHub Profile
@smamran
smamran / Android.md
Created February 8, 2016 14:52
Andorid

ADB Command

adb install app/build/outputs/apk/app-debug.apk
@smamran
smamran / MySQL C.md
Last active February 18, 2016 09:45
Mysql Cpp

Linux Compile MySQL C Api Source Codes

>> gcc mysql_me.c  `mysql_config --cflags --libs`
@smamran
smamran / Linux commands.md
Last active March 27, 2016 13:40
Linux Commands
ps aux | grep firefox
sudo killall cupsd
sudo apt-get install htop
sudo renice -5 2744         // Give Priority 2744  0 to -5
df -ah
ls -alh /proc               // List of all active processes 
ls -alh /proc/1 | less      
@smamran
smamran / Range Based For Loop C++.md
Last active January 26, 2016 07:52
Range Based For Loop C++

Range Based For Loop C++

#include <iostream>
#include <vector>
 
int main() 
{
    std::vector<int> v = {0, 1, 2, 3, 4, 5};
 
 for(const int &amp;i : v) // access by const reference
@smamran
smamran / MinGW.md
Last active February 16, 2016 05:39
MinGW

Qmake Qt MinGW Compile Qt project via Command Line

>> qmake
>> mingw32-make -f Makefile.Debug
  [-f Makefile.Debug = Optional]
gcc hello.c -o hello.o -lws2_32
@smamran
smamran / SDK Android.md
Last active March 27, 2016 13:38
SDK Android

Run Prompt For Visual Studio Android Development

"C:\Program Files (x86)\Android\android-sdk\temp\ToolPackage.old01\android.bat"
@smamran
smamran / sqlite Compile.md
Created January 14, 2016 06:34
sqlite Compile

Qt 5.5 for Desktop (MinGW 4.9.2 32 bit)

>> gcc shell.c sqlite3.c -lpthread -o gccsqlite3.exe

Developer Command Prompt for VS2015

>> cl shell.c sqlite3.c -Fesqlite3.exe
@smamran
smamran / Useful Commands Linux.md
Last active June 5, 2016 12:07
Useful Commands Linux

Search Text in Directory Files

>> grep -r "Searching_Text" *

Grep File Name Pattern Search Text

>> grep -r --include "*.txt" texthere .
>> grep -r ----exclude "*.txt" texthere .
@smamran
smamran / Error List.md
Last active June 5, 2016 12:08
Android Error Remove

Remove Android Lint Error

android {

    lintOptions {
        abortOnError false
    }
}
@smamran
smamran / C And C++.md
Last active June 5, 2016 12:09
C/C++ Codes

Char to String conversion C++

    int i = 65;
    char c = i;
    string s;
    stringstream ss;
    ss << c;
    ss >> s;
    cout << s << endl;