This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # from https://chromium.woolyss.com/ | |
| # and https://gist.github.com/addyosmani/5336747 | |
| # and https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md | |
| sudo apt-get update | |
| sudo apt-get install software-properties-common | |
| sudo add-apt-repository ppa:canonical-chromium-builds/stage | |
| sudo apt-get update | |
| sudo apt-get install chromium-browser | |
| chromium-browser --headless --no-sandbox http://example.org/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| # frozen_string_literal: true | |
| # encoding: utf-8 | |
| # Force UTF-8 encoding | |
| Encoding.default_external = Encoding::UTF_8 | |
| Encoding.default_internal = Encoding::UTF_8 | |
| APPLICATION_ID = ENV.fetch('WOT_API_APP_ID') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -s https://install.zerotier.com | sudo bash | |
| sudo cat /var/lib/zerotier-one/authtoken.secret >> ~/.zeroTierOneAuthToken | |
| chmod 0600 ~/.zeroTierOneAuthToken |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def ranges(array_of_hours) | |
| ranges = array_of_hours.map do |hour| | |
| (hour..hour) | |
| end | |
| ranges = ranges.sort_by {|r| r.first } | |
| *outages = ranges.shift | |
| ranges.each do |r| | |
| lastr = outages[-1] | |
| if lastr.last >= r.first - 1 | |
| outages[-1] = lastr.first..[r.last, lastr.last].max |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| docker run -d --name elasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" --restart=unless-stopped elasticsearch:6.8.4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var h = function(selector){ | |
| document.querySelectorAll(selector).forEach(function(el){ el.style.display = 'none' }) | |
| } | |
| var s = function(selector){ | |
| document.querySelectorAll(selector).forEach(function(el){ el.style.display = 'block' }) | |
| } | |
| var pathContains = function(text){ | |
| return window.location.pathname.indexOf(text) !== -1 | |
| } | |
| setInterval(function(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| docker run -d --name elasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" elasticsearch:6.8.4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Senior (enterprise) | |
| mid UX and SEO knowledge | |
| Analyses and profile an application for performance and memory issues | |
| Analyses and profile an application for security issues | |
| Tune a production deployment | |
| Understand and use Design Patterns (explain what they are, know some basic patterns) | |
| Mentoring skills | |
| Communication skills | |
| Planning and Estimation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Expert | |
| Understands Ruby internals and is aware of multiple layers of software inner workings. | |
| Senior (enterprise) | |
| Analyse and profile an application for performance and memory issues | |
| Analyses and profile an application for security issues | |
| Understand database modeling and query analysis | |
| Tune a production deployment (Passenger, Thin, Apache etc) | |
| Understand and use Ruby metaprogramming |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe" | |
| sudo apt-get update | |
| sudo apt-get install exfat-fuse exfat-utils |
NewerOlder