Skip to content

Instantly share code, notes, and snippets.

View shroukkhan's full-sized avatar

Shrouk Hasan Khan shroukkhan

  • Softverk / Fingi / Thai-Fi
  • Bangkok
View GitHub Profile
@shroukkhan
shroukkhan / gist:d4780f0277c807515752
Last active January 23, 2016 13:07 — forked from alokjani/gist:d9eda34a1b5ab70a50e8
Howto - Ubuntu 14.04 with Request Tracker and RT for Incident Response

Ubuntu 14.04 Request Tracker RT 4.0.22 RT for Incident Response RTIR 3.0.4

Request Tracker Installation

export http_proxy="http://10.x.x.x:3128"
export https_proxy="http://10.x.x.x.x:3128"
@shroukkhan
shroukkhan / Running openELEC completely from usb
Created November 20, 2014 05:11
Running openELEC completely from usb
on linux :
1. run ./create_sdcard on usb
2. run ./create_sdcard on sdcard
3. plugin usb and sdcard and bootup pie
4. ssh into device:
# df -h
[ make a note of where the usb is mounted , usually
/dev/sda1 is /var/media/System [ rootfs ]
@shroukkhan
shroukkhan / renameCSipSimple
Created February 15, 2013 14:11
renaming csip simple package
mkdir src/com/fingi
mv src/com.fingi.csipsimple.src/com/fingi/
find src/ -type f -print0 | xargs -0 sed -i 's/com.csipsimple./com.fingi.csipsimple./g' *.java
find res/ -type f -print0 | xargs -0 sed -i 's/com.csipsimple./com.fingi.csipsimple./g' *.xml
@shroukkhan
shroukkhan / renameAndBuild.sh
Last active April 13, 2016 06:58
this script will rename csipsimple and build fingi usage is simple, call it the same way you call build.sh no change is needed to your existing code. the script will automatically download csipsimple and actionbarsherlock if not found. put this scripp in your app (android_app ) folder ( same directory as build.sh) and call it like this: ./rename…
#!/bin/bash
############ check arguments #################
if [ -z "$1" ]
then
echo "No argument supplied, please provide product name and build type. such as: ./renameAndBuild.sh aloft debug "
exit
fi
############ setting paths #################
adb shell input keyevent 82
A Quick self reference for pycharm self debug:
1. copy pycharm-debug.egg from pycharm installation location ( C:\Program Files (x86)\JetBrains\PyCharm 2016.1.2\debug-eggs ) to
the the server
2. Add this to the main method file :
## because i suck at python
egg_path = '/usr/lib/pymodules/python2.6/valkyrie/pycharm-debug.egg' ## or where it was copied!
import sys
sys.path.append(egg_path)
# Config file for mosquitto
#
# See mosquitto.conf(5) for more information.
#
# Default values are shown, uncomment to change.
#
# Use the # character to indicate a comment, but only if it is the
# very first character on the line.
# =================================================================
Building mosquitto:
git clone git@github.com:eclipse/mosquitto.git
sudo apt-get install cmake libssl-dev
cd <MOSQUITTO_SRC>
wget https://github.com/warmcat/libwebsockets/archive/v2.1.0.tar.gz
tar -xzvf v2.1.0.tar.gz
cd libwebsockets-2.1.0/
mkdir build
cd build/
@shroukkhan
shroukkhan / mqtt-publisher.cs
Created August 3, 2017 12:39 — forked from adrenalinehit/mqtt-publisher.cs
MQTT Publisher sample console application to demonstrate connecting to AWS IoT
using System;
using System.Text;
using System.Security.Cryptography.X509Certificates;
using uPLibrary.Networking.M2Mqtt;
namespace MQTT.Sample
{
public class Program
@shroukkhan
shroukkhan / mqtt-subscriber.cs
Created August 3, 2017 12:40 — forked from adrenalinehit/mqtt-subscriber.cs
MQTT subscriber example connecting to AWS IoT
using System.Security.Cryptography.X509Certificates;
using System.Text;
using uPLibrary.Networking.M2Mqtt;
using uPLibrary.Networking.M2Mqtt.Messages;
namespace MQTT.SubscriberTest
{
public class Program
{