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
| <# | |
| .SYNOPSIS | |
| Searches for and plays web radio stations by genre using the Radio Browser API. | |
| .DESCRIPTION | |
| The playWebRadio function searches the Radio Browser API (radio-browser.info) for radio stations | |
| matching a specified genre/style and plays a random working station using VLC media player. | |
| The function performs the following operations: | |
| - Searches the Radio Browser API for stations matching the specified genre tag |
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
| # Prerequisites: | |
| # 1. Python 3.x | |
| # 2. Pillow library (PIL fork) | |
| # pip install pillow | |
| import os | |
| import sys | |
| from PIL import Image | |
| dir_path = None |
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
| <# | |
| .SYNOPSIS | |
| Keep a VPN connection alive by periodically issuing a GET | |
| .DESCRIPTION | |
| Keep a VPN connection alive by periodically issuing a GET on a specified URL and log status code. | |
| .PARAMETER url |
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
| Get-ChildItem –Path "." -Attributes Directory | | |
| Foreach-Object { | |
| Write-Output "---------------------------------------------" | |
| Write-Output "Processing $_" | |
| Set-Location $_.FullName | |
| git fetch --all --tags --prune | |
| } | |
| Set-Location .. |
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
| function randomAlpha(n) { | |
| let result = ''; | |
| for (let i = 0; i < n; i++) { | |
| const rint = Math.floor(Math.random() * Math.floor(15)) + 10; | |
| const c = rint.toString(26); | |
| result += c; | |
| } | |
| return result; | |
| } |
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
| <# | |
| .SYNOPSIS | |
| Start a Wiremock Docker container | |
| .DESCRIPTION | |
| This script starts a Docker container using image rodolpheche/wiremock by Rodolphe Chaigneau: | |
| https://hub.docker.com/r/rodolpheche/wiremock/ |
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 axios = require('axios'); | |
| const restify = require('restify'); | |
| function respond(req, res, next) { | |
| function ok() { | |
| res.send('hello ' + req.params.name); | |
| } | |
| function error(code, data) { |
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
| key | value | |
|---|---|---|
| rootPath | /users/dimitri/data | |
| year | 2018 | |
| month | 2 | |
| label | a nice label |
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
| function playMusicForProgramming() { | |
| param( | |
| [int] $n = 1 | |
| ) | |
| playRandomMusic $n 'C:\download\music\musicforprogramming.net' | |
| } | |
| function playAmbientMusic() { | |
| param( | |
| [int] $n = 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <maps xmlns="http://www.megadix.org/standards/JFCM-map-v-1.2"> | |
| <map name="Wildlife Park"> | |
| <concepts> | |
| <concept act="TANH" input="0.0" name="Black market price" output="0.0"/> | |
| <concept act="TANH" input="0.0" name="Erbivores" output="0.0"/> | |
| <concept act="TANH" input="0.0" name="Grassland" output="0.0"/> | |
| <concept act="TANH" input="0.0" name="Poachers" output="0.0"/> | |
| <concept act="TANH" input="0.0" name="Predators" output="0.0"/> | |
| <concept act="TANH" input="0.0" name="Rain" output="0.0"/> |