Skip to content

Instantly share code, notes, and snippets.

View jitunayak's full-sized avatar
🏠
Working from home

Jitu Nayak jitunayak

🏠
Working from home
View GitHub Profile
const AWS = require("aws-sdk");
const dynamo = new AWS.DynamoDB.DocumentClient({ apiVersion: '2012-08-10', region: 'ap-south-1' });
async function insert(id, key) {
const param = {
TableName: 'event',
Item: {
PartKey: id,
SortKey: "v" + key,
# Fig pre block. Keep at the top of this file.
export PATH="${PATH}:${HOME}/.local/bin"
eval "$(fig init zsh pre)"
fpath=($fpath "/Users/jitunayak/.zfunctions")
# Set Spaceship ZSH as a prompt
autoload -U promptinit; promptinit
prompt spaceship
@jitunayak
jitunayak / SimpleSocket.java
Created August 27, 2020 19:02 — forked from huscael/SimpleSocket.java
[Java Socket] java socket demo #java #socket
class ServerDemo {
public void start() throws IOException{
ServerSocket ss = new ServerSocket(5678);
ss.bind(local);
while (true) {
Socket socket = ss.accept();
import java.io.IOException;
import java.util.Properties;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Multipart;
import javax.mail.PasswordAuthentication;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jitunayak
jitunayak / client_flask_image_API.py
Last active April 3, 2020 21:20
send image to flask REST API
from __future__ import print_function
import requests
import json
import cv2
addr = 'http://localhost:5000'
test_url = addr + '/iamge/api'
# prepare headers for http request
content_type = 'image/jpeg'
mport mysql.connector
import flask
from flask import request, jsonify
app = flask.Flask(__name__)
app.config["DEBUG"] = True
mydb = mysql.connector.connect(
host="localhost",
echo "# CupCake-Store" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/jitunayak/CupCake-Store.git
git push -u origin master

To reduce the dock hide and opening time:

defaults write com.apple.dock autohide-delay -float 0

to move files :

cmd+c -> cmd+alt+v

kill apps from recent apps

cmd+tab select the app and press Q to quite

SUPERDUPER SERIAL
SUPERDUPER SERIAL:
LAST CHECKED WORKING IN VERSION 3.3.1
NAME: Serial_Box
SERIAL: SPSD001613-C55P-20F5-012L-XVSE-11E3