Skip to content

Instantly share code, notes, and snippets.

🙌
I may be slow to respond.

Owais alshell7

🙌
I may be slow to respond.
Block or report user

Report or block alshell7

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@alshell7
alshell7 / installing-rasa.md
Last active Apr 29, 2020
Superfast & clean install Rasa and Rasa X on fresh Ubuntu 16.04
View installing-rasa.md

Installing Docker and Docker Compose

wget -O - https://gist.githubusercontent.com/wdullaer/f1af16bd7e970389bad3/raw/install.sh | bash

Installing Rasa X

curl -s get-rasa-x.rasa.com | sudo bash

Installing Rasa and setting up the bot

mkdir -m 777 newbot

cd newbot

@alshell7
alshell7 / Vagrantfile_Multi_Agent
Last active Aug 8, 2019
Array of hashes with settings for each virtual machine in Vagrant
View Vagrantfile_Multi_Agent
# PS D:\vagrant_test> cat .\Vagrantfile
# Prefix for LAN
BRIDGE_NET="192.168.1."
# Prefix for Internal LAN
INTERNAL_NET="192.168.15."
# The domain that we will use for the entire site
DOMAIN="sample.com"
# An array of hashes with settings for each virtual machine
servers=[
{
View install-rabbitmq-ubuntu1604.md

Install RabbitMQ on Ubuntu 16.04

Add RabbitMQ apt repository

echo 'deb http://www.rabbitmq.com/debian/ testing main' | sudo tee /etc/apt/sources.list.d/rabbitmq.list
wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add -
View nnlm-tensor.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alshell7
alshell7 / speedup.md
Last active Oct 17, 2018
Boost your Android Studio performance and speed up Gradle build time
View speedup.md

Modify the following files and settings

File : gradle.properties

  org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m 
  org.gradle.daemon=true
  org.gradle.parallel=true
  org.gradle.configureondemand=false #Since Gradle 4.2, this is to be disabled, else can use it.
@alshell7
alshell7 / multipostnot.java
Created Nov 4, 2017
Preventing multiple executions of a method within a specified threshold time.
View multipostnot.java
private long mLastPostedTime = 0;
private final long threshold = 1000; //1 second
public void postExecution()
{
if (SystemClock.elapsedRealtime() - mLastPostedTime < threshold) {
return;
}
mLastPostedTime = SystemClock.elapsedRealtime();
@alshell7
alshell7 / gist:e7d7cce401d4d633c8a23d73e4a19a35
Last active Mar 25, 2017
Tweaking Windows Form in VB.Net
View gist:e7d7cce401d4d633c8a23d73e4a19a35
'Here Changing the msg value, tweaks out the window state and style. This is awesome !!
Protected Overrides Sub WndProc(ByRef m As Message)
If (m.Msg = 132) Then
m.Result = CType(2, IntPtr)
' Disable this sub for NoMoving Window
Return
End If
MyBase.WndProc(m)
@alshell7
alshell7 / dictionary.txt
Last active Mar 25, 2017
Dictionary words collection
View dictionary.txt
A
a
aa
aal
aalii
aam
aardvark
aardwolf
Aaron
Aaronic
@alshell7
alshell7 / Fade Effect.snippet
Last active Mar 25, 2017
Visual Studio (VB.Net) snippets
View Fade Effect.snippet
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>Fade In and Out Effect</Title>
<Author>Alshell7</Author>
<Description>Does Fade In and Fade Out Effect, during form load and closing respectively.</Description>
<Shortcut>FormFadeEffect</Shortcut>
</Header>
@alshell7
alshell7 / FFT.java
Last active Feb 11, 2017
Edited FFT for android.
View FFT.java
/*
* Copyright (c) 2007 - 2008 by Damien Di Fede <ddf@compartmental.net>
*
* This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free
You can’t perform that action at this time.