Skip to content

Instantly share code, notes, and snippets.

View alexwybraniec's full-sized avatar

Alex Wybraniec alexwybraniec

View GitHub Profile
- Ikea Shelves (assembled): £70 https://www.ikea.com/gb/en/p/fjaelkinge-shelving-unit-white-60221683/
- Niceday office chairs (used, four available): Free! https://www.viking-direct.co.uk/en/niceday-ness-mesh-office-chair-in-black-p-7044592
- Ikea (I think) double fronted sideboard cupboard: £20
- Ikea Solid wood counter top (240cm x 64cm x 4cm, some ring marks): £100 https://www.ikea.com/gb/en/p/rasunda-worktop-oak-40301888/
- Four adjustable metal Ikea legs: £50 https://www.ikea.com/gb/en/p/gerton-leg-adjustable-chrome-plated-60261626/
- Google Home (unopened) - £50 (RRP £79) https://store.google.com/gb/product/google_home
- Google Nest Mini 2nd Gen (unopened) - £30 (RRP £49) https://store.google.com/gb/product/google_nest_mini
- Google Chromecast (unopened) - £20 (RRP £30) https://store.google.com/gb/product/chromecast
@alexwybraniec
alexwybraniec / gist:baaec7116232b000f0ad03841b88e515
Created May 26, 2020 09:12
Bash script of backing up multiple dbs
#!/bin/bash
_dbusername="my_backup_username"
_dbpassword="my_backup_password"
_output="/home/dbbackup/_database_backups"
_dow="$(date +'%A')"
declare -a arr=("my_db_1" "my_db_2" "my_db_3")
for i in "${arr[@]}"
@alexwybraniec
alexwybraniec / vagrant up --debug
Created October 23, 2017 13:22
vagrant up --debug
INFO global: Vagrant version: 2.0.0
INFO global: Ruby version: 2.3.4
INFO global: RubyGems version: 2.5.2.1
INFO global: VAGRANT_OLD_ENV_Apple_PubSub_Socket_Render="/private/tmp/com.apple.launchd.gbyHWFZM35/Render"
INFO global: VAGRANT_OLD_ENV_LANG="en_GB.UTF-8"
INFO global: VAGRANT_OLD_ENV_HOME="/Users/alexw"
INFO global: VAGRANT_OLD_ENV__="/usr/local/bin/vagrant"
INFO global: VAGRANT_OLD_ENV_TERM_PROGRAM="Apple_Terminal"
INFO global: VAGRANT_OLD_ENV_TMPDIR="/var/folders/bh/9zyq9s5s66v1_mjnx69cl60w0000gn/T/"
INFO global: VAGRANT_OLD_ENV_SSH_AUTH_SOCK="/private/tmp/com.apple.launchd.XRdhi85Bg5/Listeners"
@alexwybraniec
alexwybraniec / gist:3556b268faeaa919dd6cc11a898c3ad5
Created May 9, 2017 13:31
Mid-level technical interview questions (2015)
1. What is wrong with this snippet of code?
https://gist.github.com/alexwybraniec/2585f0578304734b9a53
2. How would you make the snippet of code in the previous question better?
3. Make the function in this snippet return a date 32 days in the future from the inputed date and in the same format.
https://gist.github.com/alexwybraniec/306a5802ff4ff96d9fd4
4. What would the following code output?
https://gist.github.com/alexwybraniec/61f7487eb4e14dcd3eb5
@alexwybraniec
alexwybraniec / gist:83bd89604dcb78ca34fd01bafb346f1c
Created March 21, 2017 22:39
Graphic Bar - 18th March 2017
name start time playtime artist bpm
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
18/03/2017 18/03/2017 20:03:25 GMT
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Fantastic Man 20:03:25 GMT 00
debutart@localhost:/usr/share/nginx/debutart.com/staging/_project$ iostat -x 1 5
Linux 4.8.6-x86_64-linode78 (localhost) 01/26/2017 _x86_64_ (6 CPU)
avg-cpu: %user %nice %system %iowait %steal %idle
3.11 0.01 1.09 0.11 4.49 91.19
Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
sdb 0.00 0.00 0.00 0.00 0.00 0.00 10.64 0.00 1.41 1.41 0.00 1.41 0.00
sda 0.00 5.86 0.05 4.91 1.20 63.64 26.14 0.02 3.43 3.16 3.44 2.33 1.16
- How to make WP run sites that aren't blog format (mid level)
- Custom post types/custom taxonomies (mid to senior)
- When to use a third party plugin and when to develop their own functionality (mid)
- What the risks are of using third party plugins (security, support, ongoing development) (mid to senior)
- The security risks of setting up and running WP. These are the basics <https://codex.wordpress.org/Hardening_WordPress> (mid to senior)
- How to deal with performance/scaling issues (caching plugins like W3TC or implementing things like Varnish) (senior)
- Best practises for updating WP and plugins (mid to senior)
- SEO considerations (YoastSEO does almost everything you'd need to do). This could be part of the front end development (using good semantic markup in the HTML) (mid)
- How to deploy sites with minimal downtime (mid to senior)
- What to do when things go wrong and best practise backup strategies (mid to senior)
Portishead - Dummy (1994)
https://play.spotify.com/album/3539EbNgIdEDGBKkUf4wno
Beastie Boys - Ill Communication (1994)
https://play.spotify.com/album/6lfjbwFGzQ6aSNP1N3JlT8
Ben Folds Five - Ben Folds Five (1995)
https://play.spotify.com/album/2zNa1aZ0VaGfuiNqDbrQET
Pavement - Crooked Rain Crooked Rain (1995)
@alexwybraniec
alexwybraniec / gist:28c8751967848012b1125ebbb12c772d
Last active January 10, 2017 11:57
Every valid top level domain name as of Jan 2017
.ac
.ad
.ae
.af
.ag
.ai
.al
.am
.ao
.aq
Albums of the year:
Solange - A Seat at the Table
- https://play.spotify.com/album/3Yko2SxDk4hc6fncIBQlcM
Max Graef and Glenn Astro - The Yard Work Simulator
- https://play.spotify.com/album/5jNlHzc5JQdqezZwLX3iFS
Romare - Love Songs: Part 2
- https://play.spotify.com/album/324LXtvXAeKBeDIN1NkGuG