Skip to content

Instantly share code, notes, and snippets.

nanusdad

Block or report user

Report or block nanusdad

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nanusdad
nanusdad / white_screen_on_android.md
Created Sep 27, 2019
White Screen after splash on Android builds
View white_screen_on_android.md

To troubleshoot

ionic cordova run browser --prod --release

Updates required to config.xml file

<preference name="SplashScreen" value="assets/images/logo.svg" />
<preference name="SplashScreenBackgroundColor" value="#000" />
@nanusdad
nanusdad / omero-cheat-sheet.md
Last active Apr 17, 2019
OMERO cheat sheet
View omero-cheat-sheet.md

Update root password

omero db password
Please enter password for OMERO root user: 
Please re-enter password for OMERO root user: 
UPDATE password SET hash = 'ibTzrADXfsKFfNwBdQsa+g==' WHERE experimenter_id  = 0;

Check password hash

psql -h localhost omdbprim -U omdbusr1 -c " select * from password"
@nanusdad
nanusdad / certbot-initial-and-expand-domains.md
Last active Dec 19, 2018
Using certbot to add and expand domains to cert
View certbot-initial-and-expand-domains.md

To use Lets Encrypt to install certificate to work with AWS Lightsail Wordpress instance

sudo certbot certonly --webroot -w /opt/bitnami/apps/wordpress/htdocs/ \
-d domain1.org

To add new domains to certificate

sudo certbot certonly --webroot -w /opt/bitnami/apps/wordpress/htdocs/ \
--expand -d domain1.org,www.domain1.org,domain2.edu,domain3.org
@nanusdad
nanusdad / vi_related.md
Last active Apr 19, 2018
VI related tips
View vi_related.md
@nanusdad
nanusdad / npm_related.md
Last active Apr 19, 2018
npm related issues / fixes
View npm_related.md
@nanusdad
nanusdad / .gitignore
Created Apr 18, 2018 — forked from smebberson/.gitignore
Express simple authentication example
View .gitignore
node_modules
*.swp
@nanusdad
nanusdad / bitnami_wordpress_admin_passwd_change.md
Last active Mar 6, 2018
Bitnami Wordpress Admin Password Change
View bitnami_wordpress_admin_passwd_change.md
cd /opt/bitnami/apps/wordpress/
sudo ./bnconfig --userpassword YOUR_NEW_PASSWORD
View Rails_console_output.md
$stdout = File.new('console.out', 'w')

#You may also need to call this once:

$stdout.sync = true
@nanusdad
nanusdad / ionic_android_build_on_mac.md
Last active Nov 16, 2017
Android APK with Ionic and Mac
View ionic_android_build_on_mac.md

Using Ionic to build Android APK on Mac

  • Install NodeJS
  • Install ionic and cordova
npm install -g ionic cordova
  • Might need to install node-sass
  • Requires CocoaPods
sudo gem install cocoapods
@nanusdad
nanusdad / expressjs_with_godaddy_certs.md
Last active May 20, 2019
Express JS with GoDaddy SSL Certificates
View expressjs_with_godaddy_certs.md

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-----
You can’t perform that action at this time.