git clone https://github.com/libra/libra.git && cd libra
docker run -it --name libra -v $PWD:/root/libra --workdir /root/libra ubuntu bash
apt update
apt install sudo curl zip git
| #!/usr/bin/env ruby | |
| # Prerequisite : | |
| # - On local | |
| # Ruby | |
| # - On local | |
| # Docker (Optional) | |
| # iostat (Optional) |
| # Install Docker on Ubuntu | |
| sudo apt remove docker docker-engine docker.io containerd runc | |
| sudo apt update | |
| sudo apt install ca-certificates curl gnupg | |
| sudo mkdir -m 0755 -p /etc/apt/keyrings | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg |
| // Version: 0.2 | |
| // Author: Ahmed Kamal (AhmedKamal20) | |
| // About : To Mass Unfollow Friends, Pages & Groups | |
| // It'll Unfollow first ~250 (or more) from selected category | |
| // It's kinda slow, but to avoid getting blocked by Facebook | |
| // Usage : | |
| // Open (News Feed Preferences) from the right menu | |
| // Choose (Unfollow people to hide their posts) | |
| // Select between All, Friends Only, Pages Only, Groups Only | |
| // Then open the console and paste the following |
| git diff-tree --no-commit-id --name-only -r HEAD | xargs subl |
I hereby claim:
To claim this, I am signing this object:
| // Open You playlist | |
| // Load all the videos in view | |
| // Open The Console | |
| var times = $x('//*[@id="pl-load-more-destination"]/tr/td[7]/div/div[1]/span'); | |
| var alltimes = new Array() | |
| var timesec = new Array() | |
| for (i = 0; i < times.length; i++) { | |
| alltimes.push(times[i].innerHTML) | |
| timesec.push(parseInt(alltimes[i].split(':')[0]*60) + parseInt(alltimes[i].split(':')[1])) |
| // Open chrome://extensions/ | |
| // F12 >> The Console | |
| var titles = document.querySelectorAll("h2.extension-title"); | |
| var myExtensions = new Array() | |
| for (i = 0; i < titles.length; i++) { | |
| myExtensions.push(titles[i].innerHTML) | |
| } | |
| myExtensions |
| # These are the suggested installation instructions for Ubuntu for class. There is | |
| # lengthy compilation step in the middle of these procedures, so please plan on | |
| # 30min break to complete the "rbenv install" command. | |
| # The instructions start with a visit to the official Rails site (http://rubyonrails.org). | |
| # The download page (http://rubyonrails.org/download/) | |
| # recommends that we install the rbenv installation manager to manage our ruby installation | |
| # and supplies a link to git://github.com/sstephenson/rbenv.git | |
| # There are more words about the rbenv, ruby, and rails installation on the Ubuntu page | |
| # https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-14-04 |