Skip to content

Instantly share code, notes, and snippets.

View acpmasquerade's full-sized avatar
💭
in mood

Dhruba Adhikari acpmasquerade

💭
in mood
View GitHub Profile
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
sudo apt update
apt-cache policy docker-ce
sudo apt install -y docker-ce
#sudo systemctl status docker
sudo usermod -aG docker ${USER}
sudo curl -L https://github.com/docker/compose/releases/download/1.25.0-rc1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
@acpmasquerade
acpmasquerade / wal_archive.sh
Last active January 10, 2019 14:00
Postgres WAL Archive Script (archive_command) checking File Integrity based upon the checksum of source and target
#!/bin/bash
# -----------------
# DISCLAIMER !!!
# To be used as is.
# --------------------
# Syntax = wal_archive.sh wall_source_fullpath wall_name
# archive_command='wal_archive.sh "%p" "%f"'
# PS: The order is %p followed by %f
@acpmasquerade
acpmasquerade / picovico-api-2.7-payload.json
Last active October 8, 2017 18:23
Sample payload for PICOVICO 2.7 API
{
"style": "vanilla_frameless",
"quality": 480,
"name": "Picovico API sample",
"aspect_ratio": "16:9",
"assets": [
{
"music": {
"asset_id": "aud_6j44J9zjbSQe54ZTTSqUj2"
},
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="my-element">
<template>
<style>
@acpmasquerade
acpmasquerade / gist:9525621
Last active August 29, 2015 13:57
codepiece to illustrate scrollHeight, offsetHeight and clientHeight in Javascript
<pre>
height 200
border 10
margin 11
padding 13
</pre>
<table><tr><td>
<div id="box" style="width:200px;height:200px;overflow:auto;border:10px solid red;margin:11px;padding:13px;font-size:15px;">
Lorem ipsum content dolor mita
Lorem ipsum content dolor mita