Table of contents
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
| // ==UserScript== | |
| // @name Enable Disney Plus on Linux | |
| // @description This is your new file, start writing code | |
| // @match *://*.disneyplus.com/* | |
| // ==/UserScript== | |
| Object.defineProperty(navigator, "userAgent", { value: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36", configurable: true, enumerable: true, writable: true }); |
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
| // ==UserScript== | |
| // @name Skip YouTube Ads | |
| // @description This is your new file, start writing code | |
| // @match *://*.youtube.com/* | |
| // ==/UserScript== | |
| function skipAd() { | |
| const adPlaying = document.body.querySelector(".ad-showing"); | |
| if (!adPlaying) { |
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 | |
| # Prune local orphan refs | |
| git prune -v | |
| # Deletes all stale (local) remote-tracking branches under origin. | |
| # These stale branches have already been removed from the remote repository | |
| # referenced by <name>, but are still locally available. | |
| git remote prune origin |
The setup of a bluetooth speaker on a Pi Zero W is pretty touchy.
Please get in touch via Twitter @actuino or http://www.actuino.fr/ if you've got comments or improvements to this quick draft.
- Use a solid power source
- check the speaker works on another hardware (android phone f.i.)
- make sure you've updated your Raspbian, install and run rpi-update just in case.
- using Ansible command line:
ansible-playbook --connection=local 127.0.0.1 playbook.yml- using inventory:
127.0.0.1 ansible_connection=local
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
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
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
| -- Two dashes start a one-line comment. | |
| --[[ | |
| Adding two ['s and ]'s makes it a | |
| multi-line comment. | |
| --]] | |
| ---------------------------------------------------- | |
| -- 1. Variables and flow control. | |
| ---------------------------------------------------- |
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
| if [ -f "${rvm_path}/scripts/rvm" ]; then | |
| source "${rvm_path}/scripts/rvm" | |
| if [ -f ".rvmrc" ]; then | |
| source ".rvmrc" | |
| elif [ -f ".ruby-version" ] && [ -f ".ruby-gemset" ]; then | |
| rvm use `cat .ruby-version`@`cat .ruby-gemset` | |
| elif [ -f ".ruby-version" ]; then | |
| rvm use `cat .ruby-version` |
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 | |
| # cpustatus | |
| # | |
| # Prints the current state of the CPU like temperature, voltage and speed. | |
| # The temperature is reported in degrees Celsius (C) while | |
| # the CPU speed is calculated in megahertz (MHz). | |
| function convert_to_MHz { | |
| let value=$1/1000 | |
| echo "$value" |
NewerOlder