To allow http calls on IOS
font awesome example usage in CSS
#superfish-1-toggle::after {
content:"\f0c9";
font-family: "FontAwesome";
font-size: 24px;
font-weight: normal;
line-height: 1;
position: relative;
top:-12px;
text-decoration: none;
}
add this to your .info file in your theme
stylesheets[all][] = css/font-awesome/css/font-awesome.css
and the font-awesome folder goes in the css folder.
Adding user or users through the drush command line
drush @hmsdashboard-localtest user-create jbarnett
drush @hmsdashboard-localtest user-add-role administrator jbarnett
drush @hmsdashboard-localtest upwd jbarnett --password="XXXXXXXXXXX"
or for drush 9 drush user:password jbarnett "XXXXXXXXXXXXXXXX"
to get a one time login link
drush --uri="http://first.finra7.org.dd:8083" uli mybarnett
Login with drush
drush -l @hmsdashboardstg.prod.acquia-sites.com uli
In angular 2 to see what is in a json object
loop through the object with *ngFor and then use:
{{obj | json}}free icons!
Awesome list of free font icons!
VIM encryption (password protect your vi file)
:set cm=blowfish
:X to encrypt a file
:set key= to turn off encryption
redirect all to https on Acquia / Drupal
drop this above Drupal's index.php redirection in the .htaccess file
# HTTPS Redirection
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^www.insuramatch.com$
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
ng-options sorted by key, and displaying the value from an associative array
ng-options sorted by key, and displaying the value from an associative array