Skip to content

Instantly share code, notes, and snippets.

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

Ajinkya Rathod ajinzrathod

🏠
Working from home
View GitHub Profile
@ajinzrathod
ajinzrathod / pandas_postgres.py
Created September 8, 2021 15:27 — forked from kunanit/pandas_postgres.py
Read postgres database table into pandas dataframe
import pandas as pd
from sqlalchemy import create_engine
# follows django database settings format, replace with your own settings
DATABASES = {
'production':{
'NAME': 'dbname',
'USER': 'user',
'PASSWORD': 'pass',
'HOST': 'rdsname.clqksfdibzsj.us-east-1.rds.amazonaws.com',
import java.lang.annotation.*;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Inherited
@interface Deletable {
}
@Deletable
class Entity {
@ajinzrathod
ajinzrathod / UsingMarkerInterface.java
Last active July 28, 2021 06:42
Sharing Annotation Example
interface Deletable {
}
class Entity implements Deletable {
// implementation details
}
class ShapeDao extends Entity {
// other dao methods
public boolean delete(Object object) {
# Search "Startup Applications" in App launcher
# Under name: Auto Screenshot Taker
# Under Command: /usr/bin/python3 /home/ajinkya/Documents/Ajinkya/Freelancing/screenshots.py
# Under Comment: Auto Screenshot Taker
# Now the script
# import py auto gui
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style>
.inp-field {
@ajinzrathod
ajinzrathod / tmux.md
Created June 8, 2021 11:33 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@ajinzrathod
ajinzrathod / tmux-cheatsheet.markdown
Created June 7, 2021 13:57 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@ajinzrathod
ajinzrathod / removehtml
Created May 22, 2021 05:28 — forked from digitalex/removehtml
Delete all HTML comments in VIM
%s/<!--\_.\{-}-->//g