Skip to content

Instantly share code, notes, and snippets.

View vrusua's full-sized avatar
🇺🇦

Ruslan Voroshchuk vrusua

🇺🇦
View GitHub Profile
@vrusua
vrusua / #dev_effects.md
Last active February 16, 2022 10:37
some useful CSS/JS effects
                            ### EFFECTS ###

animate sliding onscroll / hierarchy

Lateral On-Scroll Sliding with jQuery

@vrusua
vrusua / #dev_optimisation.md
Created May 17, 2015 09:24
some site optimisation tweaks
                            ### OPTIMISATION ###

##IMAGES preload

@vrusua
vrusua / c3js-custom-legend.markdown
Created February 18, 2017 21:35
C3JS Custom Legend
@vrusua
vrusua / #dev_xhr-iframe.md
Last active October 25, 2021 14:20
Cross domain messaging and dynamic iframe height

Generating Authy passwords on other authenticators


There is an increasing count of applications which use Authy for two-factor authentication. However many users who aren't using Authy, have their own authenticator setup up already and do not wish to use two applications for generating passwords.

Since I use 1Password for all of my password storing/generating needs, I was looking for a solution to use Authy passwords on that. I couldn't find any completely working solutions, however I stumbled upon a gist by Brian Hartvigsen. His post had a neat code with it to generate QR codes (beware, through Google) for you to use on your favorite authenticator.

His method is to extract the secret keys using Authy's Google Chrome app via Developer Tools. If this was not possible, I guess people would be reverse engineering the Android app or something like that. But when I tried that code, nothing appeared on the screen. My gues

@vrusua
vrusua / digitalocean-centos-wordpress.sh
Created February 7, 2018 10:21 — forked from reitermarkus/digitalocean-centos-wordpress.sh
Install WordPress on DigitalOcean CentOS Droplet with PHP 7
#!/bin/sh
DATABASE_NAME='wordpress'
DATABASE_USER='wordpress'
ROOT_MYSQL_PASSWORD=`dd if=/dev/urandom bs=1 count=32 2>/dev/null | base64 -w 0 | rev | cut -b 2- | rev`
WORDPRESS_MYSQL_PASSWORD=`dd if=/dev/urandom bs=1 count=32 2>/dev/null | base64 -w 0 | rev | cut -b 2- | rev`
# Write Passwords to File.
@vrusua
vrusua / digitalocean-centos-wordpress.sh
Created February 7, 2018 10:21 — forked from reitermarkus/digitalocean-centos-wordpress.sh
Install WordPress on DigitalOcean CentOS Droplet with PHP 7
#!/bin/sh
DATABASE_NAME='wordpress'
DATABASE_USER='wordpress'
ROOT_MYSQL_PASSWORD=`dd if=/dev/urandom bs=1 count=32 2>/dev/null | base64 -w 0 | rev | cut -b 2- | rev`
WORDPRESS_MYSQL_PASSWORD=`dd if=/dev/urandom bs=1 count=32 2>/dev/null | base64 -w 0 | rev | cut -b 2- | rev`
# Write Passwords to File.
@vrusua
vrusua / nginx.conf
Created February 7, 2018 10:18 — forked from mreschke/nginx.conf
Nginx config for multiple laravel sites based on /api/v1 url paths
# This config will host your main [Laravel] GUI application at /, and any additional [Lumen] webservices at /api/v1 and /api/v2...
# This also works perfectly for all static file content in all projects
# This is full of debug comments so you can see how to print debug output to browser! Took me hours to nail this perfect config.
# Example:
# http://example.com - Main Laravel site as usual
# http://example.com/about - Main Laravel site about page as usual
# http://example.com/robots.txt - Main Laravel site static content as usual
# http://example.com/api/v1 - Lumen v1 api default / route
# http://example.com/api/v1/ - Lumen v1 api default / route
@vrusua
vrusua / backup.php
Created August 22, 2016 06:48 — forked from toddsby/backup.php
backup.php
<?php
/*
* PHP: Recursively Backup Files & Folders to ZIP-File
* (c) 2012-2014: Marvin Menzerath - http://menzerath.eu
* contribution: Drew Toddsby
*/
// Make sure the script can handle large folders/files
ini_set('max_execution_time', 600);
ini_set('memory_limit','1024M');