Skip to content

Instantly share code, notes, and snippets.

View loftywaif002's full-sized avatar
🎯
Focusing

Dipro Chowdhury loftywaif002

🎯
Focusing
  • IBM
  • San Francisco
  • 16:45 (UTC -07:00)
View GitHub Profile
@loftywaif002
loftywaif002 / gist:f3a4eb49095c7652b9837142d71e5331
Created May 2, 2017 21:28
Mobile Responsive using Javascript -Works fine in Chrome
<script type="text/javascript">
window.onresize = function(){
var winWidth = $(window).width();
switch (true) {
case(winWidth < 370 && winWidth > 350):
@loftywaif002
loftywaif002 / Kong+3NodeCassandra+Docker
Created May 18, 2017 04:04
Setup-3-Node-Cassandra-Cluster+Kong-DOCKER
#Create a custom docker network
docker network create kong-cassandra
#create the 1st cassandra2.2 node in that network witha memory of 1gb
docker run -d --name cassandra1 --net kong-cassandra -p 9042:9042 cassandra:2.2
#WE CAN FIND THE IP ADDRESS FOR 1st Node using the following command
@loftywaif002
loftywaif002 / gist:b63159d61a0c9b3d805168fd29dafed6
Last active August 14, 2017 09:41
react-native-fbsdk-add-to-ios-project
#Fix E-commerce template (firebase+FBSDK)
npm install react-native-fbsdk@0.4.0 --save
react-native link react-native-fbsdk
https://developers.facebook.com/docs/react-native/configure-ios
react-native link
//Error Resolve replace the function
static FBSDKShareLinkContent *RCTBuildLinkContent(NSDictionary *contentData)
@loftywaif002
loftywaif002 / Docker-on-KaliOS
Last active October 30, 2017 04:13
Kali-2017-Docker installation Script
#!/bin/bash
# update apt-get
export DEBIAN_FRONTEND="noninteractive"
sudo apt-get update
# remove previously installed Docker
sudo apt-get remove docker docker-engine docker.io* lxc-docker*
# install dependencies 4 cert
@loftywaif002
loftywaif002 / OpenCV-Kali
Created November 14, 2017 09:07
Install-Open-CV-On-Kali-Debian-Derivative
######################################
# INSTALL OPENCV ON UBUNTU OR DEBIAN #
######################################
# | THIS SCRIPT IS TESTED CORRECTLY ON |
# |----------------------------------------------------|
# | OS | OpenCV | Test | Last test |
# |----------------|--------------|------|-------------|
# | Ubuntu 16.04.2 | OpenCV 3.2.0 | OK | 20 May 2017 |
# | Debian 8.8 | OpenCV 3.2.0 | OK | 20 May 2017 |
@loftywaif002
loftywaif002 / api_keys_android.md
Last active June 4, 2024 13:03
Hiding Api Keys in Anroid

Hiding API keys in local.properties

  1. Make sure your build directory is gitignored. It should be, by default, in a new Android Studio project -- you can double check by making sure that your .gitignore file contains the line:
/build
  1. In your project root directory, add the API key to local.properties file like this:
@loftywaif002
loftywaif002 / karma-jasmine-react.md
Last active December 12, 2021 06:16
Setup Karma with Jasmine for create-react-app

Set up Karma with Jasmine in Create React App

This guide will use specific versions NPM packages. Please double-check that you installed the same versions to avoid installation issues!

  1. Install Create React App
$ npm install -g create-react-app@1.3.1
//QUEUE POPULATOR
var Firebase = require('firebase');
// Same ref as in queue_worker.js
var ref = new Firebase('https://<your-firebase>.firebaseio.com/queue');
// This doesn't need to be set every time, but helps us
// define the spec for the task in this example
ref.child('specs').set({
@loftywaif002
loftywaif002 / React-redux-Dependencies.txt
Last active June 10, 2019 02:02
React-Redux-Dependencies
npm i axios react-router-dom redux react-redux redux-thunk redux-devtools-extension
@loftywaif002
loftywaif002 / install vagrant and vistualbox in macOS
Created June 6, 2020 08:05
how to isntall vagrant and virtual box in mac
# Install Virtualbox && Vagrant for MacOSX
Vagrant uses Virtualbox to manage the virtual dependencies. You can directly download virtualbox and install or use homebrew for it.
```sh
$ brew cask install virtualbox
```
Now install Vagrant either from the website or use homebrew for installing it.