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 apt-get update | |
| sudo apt-get install -y wget gnupg apt-transport-https | |
| wget -qO- https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - | |
| sudo wget -qO /etc/apt/sources.list.d/microsoft.list https://packages.microsoft.com/config/$(. /etc/os-release && echo $ID/$VERSION_ID)/prod.list | |
| sudo apt-get update | |
| sudo apt-get install -y powershell |
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
| FROM debian | |
| RUN apt-get update && apt-get install cron -y | |
| RUN echo '* * * * * echo "[$(date -Is)] Job fired!" > /proc/1/fd/1 2>/proc/1/fd/2' | crontab | |
| CMD ["cron", "-f"] |
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
| let makeURL = (origin, location, parameters) => [origin, ...location].join('/') + '?' + $.param(parameters) | |
| makeURL(window.location.origin, [ 'search' ], { 'query': 'hello world' }) |
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
| git config --global alias.submodule-remove '!git submodule deinit -f "${1%/}" && git rm --cached -f "${1%/}" && rm -rf ".git/modules/$1"' |
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
| void TwoLevelsFullyDefined() { | |
| const int itemsCount = 12; | |
| const int level1BlocksInList = 2; | |
| const int itemsInLevel1Block = 6; | |
| const int level2BlocksInLevel1Block = 2; | |
| const int itemsInLevel2Block = 3; | |
| Console.WriteLine("<list>"); |
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 Page Manipulation | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description Updates page contents | |
| // @author [email protected] | |
| // @include https://target.site/* | |
| // @grant none | |
| // ==/UserScript== |
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 wget -O /etc/udev/rules.d/70-u2f.rules https://raw.githubusercontent.com/Yubico/libfido2/master/udev/70-u2f.rules | |
| # reboot |
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
| NODEREPO="node_12.x" | |
| wget -qO- https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - | |
| echo "deb https://deb.nodesource.com/${NODEREPO} $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/nodesource.list | |
| echo "deb-src https://deb.nodesource.com/${NODEREPO} $(lsb_release -cs) main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list | |
| sudo apt-get update | |
| sudo apt-get install -y nodejs |
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/sh | |
| get_xorg_conf() { | |
| local usage="Usage: ${FUNCNAME[0]} monitor horizontal_resolution vertical_resolution refresh_rate" | |
| local mon=${1?$usage} | |
| local X=${2?$usage} | |
| local Y=${3?$usage} | |
| local refresh=${4?$usage} | |
| local cvt="$(cvt $X $Y $refresh)" |
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 dnf install libva-intel-driver |