Skip to content

Instantly share code, notes, and snippets.

#With the macOS El capitan
#check git version
git --version
#Backup (or remove) Apple git (Optional)
sudo mv /usr/bin/git /usr/bin/git-apple
#Install Homebrew if you didn’t have
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
#Or update if you already have
brew update && brew upgrade
#Install Git with Homebrew
@kadru
kadru / autofix_and_other_utilities_sql_server.sql
Last active January 28, 2019 15:56
autofix and other utilities sql server.sql
EXEC sp_change_users_login 'Auto_Fix', 'user', NULL, 'pass'
-- constraints information
SELECT * FROM sys.objects
WHERE type_desc LIKE '%CONSTRAINT'
SELECT *
FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS
where CONSTRAINT_NAME = 'constraint_name'
@kadru
kadru / expressjs_with_godaddy_certs.md
Created July 6, 2018 23:21 — forked from nanusdad/expressjs_with_godaddy_certs.md
Express JS with GoDaddy SSL Certificates

How to use GoDaddy SSL certs with Express JS

  • Node requires each certificate in the CA chain to be passed separately in an array.
  • GoDaddy provides a cerficate file (gd_bundle.crt) probably looks like this:
-----BEGIN CERTIFICATE-----
MIIE3jCCA...
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
@kadru
kadru / media-query.css
Created July 3, 2018 00:44 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS