Skip to content

Instantly share code, notes, and snippets.

View prem911's full-sized avatar

Premananda Mohapatra prem911

  • iFinStrats
  • Bangalore
  • 00:24 (UTC +05:30)
View GitHub Profile
@prem911
prem911 / README.md
Last active September 3, 2021 18:41
  • Install TamperMonkey in Chrome/Edge browser
  • Press the "Raw" button for the gist named "exitAll.user.js"
  • Press Install
  • Go to TT's strategies page and refresh if needed
  • Press the Exit All button will full care, note it is your responsibility from now on
<!DOCTYPE html>
<html>
<head>
<style>
body {
margin:0;padding:0;background-color:red;
background-image: url("https://picsum.photos/1000");
color: white;
font-weight:bold;
}
@prem911
prem911 / criticalcss-bookmarklet-devtool-snippet.js
Created August 4, 2017 14:12 — forked from PaulKinlan/criticalcss-bookmarklet-devtool-snippet.js
CriticalCSS Bookmarklet and Devtool Snippet.js
(function() {
var CSSCriticalPath = function(w, d, opts) {
var opt = opts || {};
var css = {};
var pushCSS = function(r) {
if(!!css[r.selectorText] === false) css[r.selectorText] = {};
var styles = r.style.cssText.split(/;(?![A-Za-z0-9])/);
for(var i = 0; i < styles.length; i++) {
if(!!styles[i] === false) continue;
var pair = styles[i].split(": ");
@prem911
prem911 / nginx.conf
Created August 2, 2017 19:28 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
<style id="jsbin-css">
#thing {
position: absolute;
width:272px;
height:107px;
background: url("https://doc-0c-9o-docs.googleusercontent.com/docs/securesc/j5p9ejn8hhsteoaqq8ce21a304fdjoh1/uv85e4brc6o3t9uekqjjm34fj6dn4t2v/1499162400000/03281474769769850186/03281474769769850186/0B0kQYbSggMgAeXpXTmRBN21xVlk?e=download&nonce=2jl04do4nlnjs&user=03281474769769850186&hash=ler89pd9i6g32mnro2upnj2gm5iu7mdv");
border: 1px solid #c0c0c0;
left: 0px;
top: 0px;
display: none;
@prem911
prem911 / docker-compose-postgres.yml
Last active June 23, 2017 11:11 — forked from toast38coza/docker-compose-postgres.yml
Docker-compose files for Kong
version: "2"
services:
postgres:
image: postgres:9.4
container_name: kong-database
ports:
- "5432:5432"
environment:
- POSTGRES_USER=kong
@prem911
prem911 / nginx.conf
Created May 25, 2017 11:49 — forked from nateware/nginx.conf
Nginx sample config for EC2
#
# Sample nginx.conf optimized for EC2 c1.medium to xlarge instances.
# Also look at the haproxy.conf file for how the backend is balanced.
#
user "nginx" "nginx";
worker_processes 10;
error_log /var/log/nginx_error.log info;
<style id="jsbin-css">
#thing {
position: relative;
width:40px;
height:40px;
/*left: 50px;*/
/*top: 50px;*/
background: url("https://www.docusign.com/sites/default/files/eSign_Icon_2.svg");
background-repeat: no-repeat;
}
<style id="jsbin-css">
#contentContainer {
/*position: relative;*/
/*left:100px;*/
width: 500px;
height: 300px;
border: 1px black solid;
/*overflow: hidden;*/
background-color: #EEE;
cursor: auto;
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../core-input/core-input.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;