Skip to content

Instantly share code, notes, and snippets.

View ganeshkumartk's full-sized avatar
Loves Coffee Chat with >_

Ganesh Kumar T K ganeshkumartk

Loves Coffee Chat with >_
View GitHub Profile
@ganeshkumartk
ganeshkumartk / setup.sh
Created October 8, 2020 15:29 — forked from jjvillavicencio/setup.sh
Install Android SDK on Windows Bash (WSL)
cd /home/<user>/
sudo apt-get install unzip
wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
unzip sdk-tools-linux-4333796.zip -d Android
rm sdk-tools-linux-4333796.zip
sudo apt-get install -y lib32z1 openjdk-8-jdk
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export PATH=$PATH:$JAVA_HOME/bin
printf "\n\nexport JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64\nexport PATH=\$PATH:\$JAVA_HOME/bin" >> ~/.bashrc
cd Android/tools/bin
@ganeshkumartk
ganeshkumartk / main.dart
Created August 14, 2020 09:57
SilverAppbar
import 'package:flutter/material.dart';
void main() => runApp(CustomScrollViewComponent());
class CustomScrollViewComponent extends StatefulWidget {
@override
_CustomScrollViewComponentState createState() =>
_CustomScrollViewComponentState();
}
class _CustomScrollViewComponentState extends State<CustomScrollViewComponent> {
import 'dart:math';
import 'package:flutter/material.dart';
// Colors.
const crossColor = const Color(0xFF1ABDD5);
const circleColor = const Color(0xFFD8B9FA);
const accentColor = const Color(0xFF90A4AE);
void main() => runApp(MyApp());
@ganeshkumartk
ganeshkumartk / index.html
Created March 14, 2020 15:44
Tensorflow.js Car Model Prdeiction
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>get this</title>
<!-- Import TensorFlow.js -->
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@1.0.0/dist/tf.min.js"></script>
<!-- Import tfjs-vis -->
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-vis@1.0.2/dist/tfjs-vis.umd.min.js"></script>
<!-- Import the main script file -->
@ganeshkumartk
ganeshkumartk / GoogleHackMasterList.txt
Created March 13, 2020 14:46 — forked from cmartinbaughman/GoogleHackMasterList.txt
The definitive super list for "Google Hacking".
admin account info" filetype:log
!Host=*.* intext:enc_UserPassword=* ext:pcf
"# -FrontPage-" ext:pwd inurl:(service | authors | administrators | users) "# -FrontPage-" inurl:service.pwd
"AutoCreate=TRUE password=*"
"http://*:*@www&#8221; domainname
"index of/" "ws_ftp.ini" "parent directory"
"liveice configuration file" ext:cfg -site:sourceforge.net
"parent directory" +proftpdpasswd
Duclassified" -site:duware.com "DUware All Rights reserved"
duclassmate" -site:duware.com
Patterns 🌥️ https://t.co/W3LbsLx7Ll
@ganeshkumartk
ganeshkumartk / util.py
Created March 5, 2020 17:31
Utilities for base64 conversion
"""Utilities
"""
import re
import base64
import numpy as np
from PIL import Image
from io import BytesIO
@ganeshkumartk
ganeshkumartk / index.html
Last active March 5, 2020 17:29
Index page: Place it in templates folder ---- main.css & main.js: Place in static folder
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <title>Demo</title>
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='main.css') }}" />
  </head>
<body>
@ganeshkumartk
ganeshkumartk / app.py
Created March 5, 2020 17:02
Keras live model serve flask backend
import os
import sys
# Flask
from flask import Flask, redirect, url_for, request, render_template, Response, jsonify, redirect
from werkzeug.utils import secure_filename
from gevent.pywsgi import WSGIServer
# TensorFlow and tf.keras
import tensorflow as tf

Installing Node.js live-server

The NodeJS live-server package runs a temporary server displaying any HTML/CSS/JS resources in the current folder. It automatically reloads the page in your browser when any of these files change.

OS X

  • Verify that Node.js is installed. If you see anything when you run which npm in a terminal, it is. If not, follow the instructions at nodejs.org to install.
  • Install live-server: npm install -g live-server
  • Move your terminal to where your pages live: cd <path-to-content>
  • Start the server: live-server .