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
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Text.Json; | |
| using System.Text.Json.Serialization; | |
| using System.Threading.Tasks; | |
| using WindowTop.Helpers; |
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
| #EXTM3U | |
| #EXTINF:-1,BBC - Radio 1 | |
| http://open.live.bbc.co.uk/mediaselector/5/select/version/2.0/mediaset/http-icy-mp3-a/vpid/bbc_radio_one/format/pls.pls | |
| #EXTINF:-1,BBC - Radio 2 | |
| http://open.live.bbc.co.uk/mediaselector/5/select/version/2.0/mediaset/http-icy-mp3-a/vpid/bbc_radio_two/format/pls.pls | |
| #EXTINF:-1,BBC - Radio 3 | |
| http://open.live.bbc.co.uk/mediaselector/5/select/version/2.0/mediaset/http-icy-mp3-a/vpid/bbc_radio_three/format/pls.pls | |
| #EXTINF:-1,BBC - Radio 4 | |
| http://open.live.bbc.co.uk/mediaselector/5/select/version/2.0/mediaset/http-icy-mp3-a/vpid/bbc_radio_fourfm/format/pls.pls | |
| #EXTINF:-1,BBC - Radio 4 LW |
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
| These commands are based on a askubuntu answer http://askubuntu.com/a/581497 | |
| To install gcc-6 (gcc-6.1.1), I had to do more stuff as shown below. | |
| USE THOSE COMMANDS AT YOUR OWN RISK. I SHALL NOT BE RESPONSIBLE FOR ANYTHING. | |
| ABSOLUTELY NO WARRANTY. | |
| If you are still reading let's carry on with the code. | |
| sudo apt-get update && \ | |
| sudo apt-get install build-essential software-properties-common -y && \ | |
| sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \ |
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
| require('dotenv').config() | |
| const path = require('path') | |
| const fs = require('fs') | |
| const yaml = require('js-yaml') | |
| const { exec } = require('child_process') | |
| const { appBuilderPath } = require('app-builder-bin') | |
| const AWS = require('aws-sdk') | |
| const axios = require('axios') | |
| const packageData = JSON.parse(fs.readFileSync('package.json')) |
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
| #EXTM3U | |
| #EXTINF:-1,BBC - Radio 1 | |
| http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio1_mf_p | |
| #EXTINF:-1,BBC - Radio 2 | |
| http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio2_mf_p | |
| #EXTINF:-1,BBC - Radio 3 | |
| http://open.live.bbc.co.uk/mediaselector/5/select/version/2.0/mediaset/http-icy-aac-lc-a/format/pls/vpid/bbc_radio_three.pls | |
| #EXTINF:-1,BBC - Radio 4 | |
| http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio4fm_mf_p | |
| #EXTINF:-1,BBC - Radio 5 live |
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
| <?php | |
| use Illuminate\Support\Facades\Password; | |
| # Generate a token in the same style as laravels password reset tokens. | |
| # Will generate something like: 785f616c4978a87ad65a899ed4133b358a4697649c55b0965a7ebb7486bd9801 | |
| $token = Password::getRepository()->createNewToken(); | |
| # Laravels underlying token generation technique for the above is: | |
| # hash_hmac('sha256', Str::random(40), <your-app-key>) |
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
| curl -X POST \ | |
| -H "X-Parse-Application-Id: LL9oIdzIkmwl5xyowQQu0fTmXyUWfet9RuAzwHfj" \ | |
| -H "X-Parse-REST-API-Key: R3S8PYQKuzeV4c8MUeO5ved46C50MEp56boDHW1O" \ | |
| -H "Content-Type: application/json" \ | |
| -d @data.json \ | |
| https://parseapi.back4app.com/functions/import |
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
| curl -X POST \ | |
| -H "X-Parse-Application-Id: YKjNQyNBBsaJpRlcSRxBfR3yKCGdU395XzZfqjdB" \ | |
| -H "X-Parse-REST-API-Key: JBDMxg9uyvbq7FQdd44EtSKDLdDlIrRrP6EIvFZJ" \ | |
| -H "Content-Type: application/json" \ | |
| -d '{"exportClass": "MyClass"}' \ | |
| https://parseapi.back4app.com/functions/export > out.json |