Skip to content

Instantly share code, notes, and snippets.

View rashidul0405's full-sized avatar

Md Rashidul Islam rashidul0405

View GitHub Profile
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';
@rashidul0405
rashidul0405 / httpd.conf
Last active October 16, 2015 09:18
Replace yourUserName on line 181 by your username* Replace /Users/yourUserName/Sites on lines 236 and 237 by the path you desire your localhost to be set
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
@rashidul0405
rashidul0405 / How to use Images as Radio buttons.md
Last active September 8, 2015 11:21 — forked from rcotrina94/How to use Images as Radio buttons.md
How to use images for radio buttons (input-radio).
(function(){Array.prototype.slice.call(document.querySelectorAll('[data-reactid]')).forEach(function(ele){ele.style.background = 'rgba(0, 129, 255, 0.05)'})})();
@rashidul0405
rashidul0405 / gapps-config.txt
Last active November 21, 2017 17:56
Google apps cyanogenmod 14 | Android 7.x
# Remove Redundant Apps
CMAccount # Remove CM Account
CMBugReport # Remove CM Bug Report
CMAudioFX # Remove CM AudioFX
CMFileManager # Remove CM File Manager
CMMusic # Remove CM Music
CMScreenCast # Remove CM ScreenCast
CMSetupWizard # Remove CM Setup Wizard (see Notes for CMSetupWizard)
CMUpdater # Remove CM Updater
CMWallpapers # Remove CM Wallpapers
@rashidul0405
rashidul0405 / db-open
Created November 3, 2016 11:54 — forked from helderco/db-open
Script to open a mysql database in Sequel Pro from a service in docker-compose.
#!/bin/bash
set -e
show_help() {
cat << EOF
Usage: ${0##*/} [-u USER] [-p PASS] [-P PORT] [-H HOST] [DATABASE]
${0##*/} -h
Open a standard connection in Sequel PRO.

Set the url with ?XDEBUG_SESSION_START=PHPSTORM and set a header Cookie: XDEBUG_SESSION=PHPSTORM

@rashidul0405
rashidul0405 / next.config.js
Created October 3, 2018 03:47 — forked from trusktr/next.config.js
withTranspileModules example
const path = require("path");
const withTypescript = require("@zeit/next-typescript");
const withCSS = require("@zeit/next-css");
const withSourceMaps = require("@zeit/next-source-maps");
const r = require("regexr");
const cssConfig = {
cssModules: false
};
download_release() {
TOKEN="xxxxxxxxx"
REPO=":owner/:repo"
curl -vLJO https://$TOKEN:@api.github.com/repos/$REPO/zipball/master
}
@rashidul0405
rashidul0405 / dump_route53_records.md
Created February 9, 2021 09:52 — forked from porjo/dump_route53_records.md
Export route53 records to CSV

Retrieve hosted zones with aws route53 list-hosted-zones then enter the zone Id below:

aws route53 list-resource-record-sets --hosted-zone-id "/hostedzone/xxxxxxxxxxx" | \
   jq -r '.ResourceRecordSets[] | [.Name, .Type, (.ResourceRecords[]? | .Value), .AliasTarget.DNSName?]  | @tsv'