Skip to content

Instantly share code, notes, and snippets.

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

ManishRaj androidfanatic

🏠
Working from home
View GitHub Profile
@androidfanatic
androidfanatic / lxqt-rc.xml
Last active June 26, 2019 05:58
always on top, move, print-screen
<?xml version="1.0" encoding="UTF-8"?>
<!-- Do not edit this file, it will be overwritten on install.
Copy the file to $HOME/.config/openbox/ instead. -->
<openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude">
<resistance>
<strength>10</strength>
<screen_edge_strength>20</screen_edge_strength>
</resistance>
<focus>
<focusNew>yes</focusNew>
<!DOCTYPE html>
<html>
<head>
<title>plotrowsv1.mbtiles</title>
<meta charset="utf-8"/>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"/>
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.12.1/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.12.1/mapbox-gl.css' rel='stylesheet' />
<style>
html, body, #map {width:100%; height:100%; margin:0; padding:0;}
<!DOCTYPE html>
<html>
<head>
<title>Docker 301</title>
<meta charset="utf-8">
<style>
@import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono:400,700,400italic);
* {
font-family: 'Ubuntu Mono';
{
"workbench.statusBar.visible": false,
"workbench.activityBar.visible": false,
"window.menuBarVisibility": "toggle",
"workbench.editor.enablePreview": false,
"telemetry.enableTelemetry": false,
"editor.tabSize": 2,
"editor.fontSize": 15,
"editor.lineHeight": 26,
"editor.fontLigatures": true,
@androidfanatic
androidfanatic / logger.js
Created March 26, 2019 10:12
Simple winston logger
const winston = require('winston');
const logger = winston.createLogger({
level: 'debug',
exitOnError: true,
format: winston.format.combine(
winston.format.colorize(),
winston.format.simple(),
),
transports: [
@androidfanatic
androidfanatic / index.html
Created March 22, 2019 11:12
Docker 201 - the talk
<!DOCTYPE html>
<html>
<head>
<title>Docker 201</title>
<meta charset="utf-8">
<style>
@import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono:400,700,400italic);
@import url(https://fonts.googleapis.com/css?family=Indie+Flower);
* {
@androidfanatic
androidfanatic / index.html
Last active January 21, 2019 05:39
Pune Tree Map
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title>Pune Tree Map</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.52.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.52.0/mapbox-gl.css' rel='stylesheet' />
<style>
@androidfanatic
androidfanatic / theme.css
Last active December 28, 2018 06:37
Stylish theme/skin to prevent procrastination | Set to: facebook.com, reddit.com, news.ycombinator.com, linkedin.com, instagram.com
body:before {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
content:"Stop Procrastination!";
background: orangered;
z-index: 99999;
text-align: center;
@androidfanatic
androidfanatic / .bashrc
Last active February 27, 2019 11:12
Alias for myself
# volume up or down
alias vol+="amixer -D pulse sset Master 5%+"
alias vol++="amixer -D pulse sset Master 10%+"
alias vol+++="amixer -D pulse sset Master 15%+"
alias vol-="amixer -D pulse sset Master 5%-"
alias vol--="amixer -D pulse sset Master 10%-"
alias vol---="amixer -D pulse sset Master 15%-"
alias srcedit='nano +99999 ~/.bashrc && source ~/.bashrc'
alias srcupdate='source ~/.bashrc'
// ==UserScript==//
// @name Remove Famous LinkedIn Posts
// @namespace RemoveFamousLinkedInPosts
// @description Remove Famous LinkedIn Posts
// @include https://www.linkedin.com/*
// ==/UserScript==
var MAX_NUM_LIKES = 150;
var DEBUG = false;
var INTERVAL = 500;