First things first !
sudo apt update
sudo apt upgrade
sudo apt-get install build-essential git
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#!/bin/bash | |
# | |
# esdiagdump | |
# | |
# Usage: esdiagdump [-h <hostname/IP>:<port>] [-o <output filename>] | |
# hostname defaults to localhost | |
# output file defaults to current directory/esdiagdump.out.<timestamp> | |
# | |
# This version is no longer being maintained. The current version lives in the elasticsearch/dev/shared/tools repository. |
# alias to edit commit messages without using rebase interactive | |
# example: git reword commithash message | |
reword = "!f() {\n GIT_SEQUENCE_EDITOR=\"sed -i 1s/^pick/reword/\" GIT_EDITOR=\"printf \\\"%s\\n\\\" \\\"$2\\\" >\" git rebase -i \"$1^\";\n git push -f;\n}; f" | |
# aliases to change a git repo from private to public, and public to private using gh-cli | |
alias gitpublic="gh repo edit --accept-visibility-change-consequences --visibility public" | |
alias gitprivate="gh repo edit --accept-visibility-change-consequences --visibility private" | |
# delete all your repos using gh-cli (please do not run this unless you want to delete all your repos) | |
gh repo list --limit 300 --json url -q '.[].url' | xargs -n1 gh repo delete --yes |
I want to be extremely clear about three things. First, this is my personal opinion – insert full standard disclaimer. Second, this is not a condemnation of everyone at RSA, present and past. I assume most of them are pretty okay, and that the problem is confined to a few specific points in the company. However, “unknown problem people making major decisions at RSA” is a bit unwieldy, so I will just say RSA. Third, I'm not calling for a total boycott on RSA. I work almost literally across the street from them and I don’t want to get beat up by roving gangs of cryptographers at the local Chipotle.
RSA's denial published last night is utter codswallop that denies pretty much everything in the world except the actual allegations put forth by Reuters and hinted at for months by [other sources](http://li
... | |
# Fake a fuse install | |
RUN apt-get install libfuse2 | |
RUN cd /tmp ; apt-get download fuse | |
RUN cd /tmp ; dpkg-deb -x fuse_* . | |
RUN cd /tmp ; dpkg-deb -e fuse_* | |
RUN cd /tmp ; rm fuse_*.deb | |
RUN cd /tmp ; echo -en '#!/bin/bash\nexit 0\n' > DEBIAN/postinst | |
RUN cd /tmp ; dpkg-deb -b . /fuse.deb |
FROM base | |
MAINTAINER Marc-Andre Cournoyer "[email protected]" | |
RUN apt-get -y update | |
RUN apt-get install -y -q curl | |
RUN curl -L https://get.rvm.io | bash -s stable --ruby | |
RUN /bin/bash -l -c rvm requirements |
# Provide access to the Warden::Proxy in the Rack env by including this module in your Grape::API: | |
# | |
# helpers Api::Helpers::Warden | |
# | |
# These methods require that something has configured the Warden::Manager, and | |
# the upstream middleware is in place to make the Warden::Proxy exist in the | |
# env! In a Rails app, this is typically done by Devise or rails_warden. | |
# | |
module Api::Helpers::Warden |
require 'graph-rank' | |
require 'treat' | |
# Implements the PageRank algorithm for | |
# unsupervised extractive summarization. | |
# | |
# Reference: R. Mihalcea and P. Tarau, “TextRank: | |
# Bringing Order into Texts,” in Proceedings of | |
# EMNLP 2004. Association for Computational | |
# Linguistics, 2004, pp. 404–411. |
web: node run.js |