This file contains 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
apt-get install build-essential g++ flex bison gperf ruby perl \ | |
libsqlite3-dev libfontconfig1-dev libicu-dev libfreetype6 libssl-dev \ | |
libpng-dev libjpeg-dev python libx11-dev libxext-dev git | |
git clone git://github.com/orenyomtov/phantomjs.git | |
cd phantomjs | |
git checkout 2.1.1.1 | |
git submodule init | |
git submodule update |
This file contains 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
# Prerequisites: Node.js | |
# Node.js can be installed using brew (https://brew.sh/) by running: | |
# brew install node | |
sudo echo "Killing Slack" | |
kill -9 $(ps aux | grep 'Slack' | awk '{print $2}') | |
echo "Installing asar" | |
npm install -g asar |
This file contains 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
adb shell settings put secure sleep_timeout 0 |
This file contains 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
//Follow all the users in the current Medium page | |
function filterNodeListByAttribute(nodeList, attributeName) { | |
let foundAttributeValues = [] | |
return Array.prototype.slice.call(nodeList).filter(function(node) { | |
let attributeValue = node.getAttribute(attributeName) | |
return foundAttributeValues.indexOf(attributeValue) == -1 && foundAttributeValues.push(attributeValue) | |
}) | |
} | |
filterNodeListByAttribute(document.querySelectorAll('*[data-action="toggle-subscribe-user"]:not(.is-active)'), 'data-action-value').forEach(subscribeButton => subscribeButton.click()) |
This file contains 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
version: '3' | |
networks: | |
monitor-net: | |
driver: bridge | |
volumes: | |
prometheus_data: {} | |
grafana_data: {} |
This file contains 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
FROM golang:alpine | |
# Install dependencies | |
RUN apk update && apk add git make | |
# Install tools | |
RUN go get github.com/yudai/gotty | |
ENTRYPOINT ["gotty"] |
This file contains 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
version: '3.6' | |
services: | |
gotty: | |
image: pataquets/gotty | |
command: -w bash | |
ports: | |
- 8080 |
This file contains 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
if [ ! -f /usr/bin/gcc-8 ]; then | |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test | |
sudo apt-get update | |
sudo apt-get install -y gcc-8 g++-8 | |
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 1000 | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 1000 | |
fi | |
if [ ! -f /usr/bin/gcc-8 ]; then |
OlderNewer