gh release list -L1000 -Oasc --json tagName \
--template '{{range .}}gh release delete {{.tagName}} -y && \{{printf "\n"}}{{end}}' | grep -v -e product
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
| const dotenv = require('dotenv'); | |
| const express = require('express'); | |
| const { Sequelize, DataTypes } = require('sequelize'); | |
| dotenv.config(); | |
| const app = express(); | |
| const port = parseInt(process.env.APP_PORT) || 3000; | |
| const pg_connection_details = { | |
| database: process.env.PG_DATABASE, |
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
| SiiNunit | |
| { | |
| live_stream_def : _nameless.13d.c83f.e360 { | |
| stream_data: 9 | |
| stream_data[0]: "https://live-bauerdk.sharp-stream.com/myrock_dk_mp3|myROCK|Rock|DA|112|0" | |
| stream_data[1]: "http://live-icy.dr.dk/A/A29H.mp3|P6 Beat|Rock|DA|256|0" | |
| stream_data[2]: "http://streams.radiobob.de/bob-metal/mp3-192/mediaplayer|Radio BOB Metal|Metal|DE|192|0" | |
| stream_data[3]: "https://icecast.skyrock.net/s/natio_mp3_128k|Skyrock|Rock|FR|128|0" | |
| stream_data[4]: "https://live-bauerno.sharp-stream.com/radiorock_no_mp3|Radio Rock|Rock|NO|0|0" | |
| stream_data[5]: "https://stream.oneplay.no/rox128|Radio Rox|Rock|NO|128|0" |
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
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| # If not running interactively, don't do anything | |
| case $- in | |
| *i*) ;; | |
| *) return;; | |
| esac |
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 csv import DictReader, DictWriter | |
| from io import TextIOWrapper | |
| from tempfile import SpooledTemporaryFile | |
| csv_lines = ["A;2;3", "B;4;6", "C;8;12"] | |
| fieldnames = ["Foo", "Bar", "Baz"] | |
| csv_reader = DictReader(csv_lines, fieldnames=fieldnames, delimiter=";") | |
| with SpooledTemporaryFile(mode="w+b") as tmp: | |
| with TextIOWrapper(tmp, encoding='utf-8') as wrapper: | |
| writer = DictWriter(wrapper, fieldnames=fieldnames) |
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 ! $(cat /etc/hosts | grep -q 'winhost'); then | |
| echo 'Adding DNS entry for Windows host in /etc/hosts' | |
| echo '# Windows host - added via ~/.bashrc' | sudo tee -a /etc/hosts | |
| echo -e "$(grep nameserver /etc/resolv.conf | awk '{print $2, " winhost"}')" | sudo tee -a /etc/hosts | |
| fi |
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
| # add Windows host DNS entry | |
| if ! $(cat /etc/hosts | grep -q 'winhost'); then | |
| echo 'Adding DNS entry for Windows host in /etc/hosts' | |
| echo '# Windows host - added via ~/.bashrc' | sudo tee -a /etc/hosts | |
| echo -e "$(grep nameserver /etc/resolv.conf | awk '{print $2, " winhost"}')" | sudo tee -a /etc/hosts | |
| fi | |
| # configure Cargo | |
| . "$HOME/.cargo/env" |
OlderNewer