Skip to content

Instantly share code, notes, and snippets.

View hardikdangar's full-sized avatar

hardik hardikdangar

View GitHub Profile
@hardikdangar
hardikdangar / cloudSettings
Created January 1, 2021 12:11
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-01-01T12:11:04.114Z","extensionVersion":"v3.4.3"}
@hardikdangar
hardikdangar / fullscreen.css
Created October 8, 2020 11:41 — forked from yang-wei/fullscreen.css
Full size background image using CSS cover in mobile devices
html {
background: url(image url) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
height: 100%;
overflow: hidden;
}
@hardikdangar
hardikdangar / squid.conf
Created March 4, 2017 09:48
squid.conf
# General
http_port 3130
http_port 3128 intercept
https_port 3129 intercept ssl-bump cert=/etc/squid/ssl_cert/srtpl.pem generate-host-certificates=on dynamic_cert_mem_cache_size=4MB
acl DiscoverSNIHost at_step SslBump1
acl NoSSLIntercept ssl::server_name_regex -i "/etc/squid/url.nobump"
ssl_bump splice NoSSLIntercept
ssl_bump peek DiscoverSNIHost
#!/bin/bash
### Set Language
TEXTDOMAIN=virtualhost
### Set default parameters
action=$1
domain=$2
rootDir=$3
owner=$(who am i | awk '{print $1}')
sitesEnable='/etc/nginx/sites-enabled/'
PreferencesManager.convertPreferences() has been deprecated. Please upgrade to the current Preferences system (https://github.com/adobe/brackets/wiki/Preferences-System#conversion-from-the-pre-36-preferences-system).
at Object.convertPreferences (/preferences/PreferencesManager.js:325:28)
at Object.eval (/utils/Resizer.js:560:24) /utils/DeprecationWarning.js:90
Deprecated: Do not use $().on/off() on Brackets modules and model objects. Call on()/off() directly on the object without a $() wrapper.
at new _beforeHTMLReady.jQuery.fn.init (/brackets.js:469:36)
at n (file:///opt/brackets/www/thirdparty/thirdparty.min.js:556:405)
at Object.eval (/./ParfaitAPI.js:126:5) /utils/DeprecationWarning.js:90
Deprecated: Do not use $().on/off() on Brackets modules and model objects. Call on()/off() directly on the object without a $() wrapper.
at new _beforeHTMLReady.jQuery.fn.init (/brackets.js:469:36)
at n (file:///opt/brackets/www/thirdparty/thirdparty.min.js:556:405)

Installing SSHPASS

SSHPass is a tiny utility, which allows you to provide the ssh password without using the prompt. This will very helpful for scripting. SSHPass is not good to use in multi-user environment. If you use SSHPass on your development machine, it don't do anything evil.

Installing on Ubuntu

apt-get install sshpass

Installing on OS X

#!/usr/bin/env bash
# Update Repositories
sudo apt-get -y update
sudo apt-get install -y python-software-properties python g++ make
sudo add-apt-repository -y ppa:chris-lea/node.js
sudo apt-get -y update
# NODE
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty-64"
config.vm.box_url = "~/Downloads/trusty-server-cloudimg-amd64-vagrant-disk1.box"