| -- Text logs | |
| -- ******************* | |
| -- 07:30:45; Message 1 | |
| -- 07:30:47; Message 2 | |
| -- 07:30:50; Message 3 | |
| -- 08:10:01; Message 4 | |
| -- 08:10:02; Message 5 | |
| -- 08:10:03; Message 6 | |
| -- 10:25:18; Message 7 | |
| -- 10:25:19; Message 8 |
| # Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-36-generic x86_64) | |
| # (из коробки) OpenSSL 1.1.0g 2 Nov 2017 | |
| # (из коробки) curl 7.58.0 (x86_64-pc-linux-gnu) | |
| # PHP 7.2.10-0ubuntu0.18.04.1 (cli) (built: Sep 13 2018 13:45:02) ( NTS ) | |
| # Компилим GOST-engine | |
| sudo apt install cmake libssl-dev | |
| git clone --branch=openssl_1_1_0 https://github.com/gost-engine/engine.git gost-engine/engine | |
| cd gost-engine/engine | |
| cmake . |
- Open Chrome Developer tools and click the Network tab.
- Navigate to the page with the video and get it to start playing.
- Filter the list of files to "m3u8".
- Find master.m3u8 or index.m3u8 and click on it.
- Save the file to disk and look inside it.
- If the file contains a single m3u8 master url, copy that one instead.
- Run the program m3u8x.
- Paste the same m3u8 url in both textboxes (URL and Quality URL) and click "Headers" and set the referral url and user-agent from the request as found in Chrome.
| using Org.BouncyCastle.Crypto; | |
| using Org.BouncyCastle.Crypto.Parameters; | |
| using Org.BouncyCastle.OpenSsl; | |
| using Org.BouncyCastle.Security; | |
| using System; | |
| using System.IO; | |
| using System.Security.Cryptography; | |
| namespace MyProject.Data.Encryption | |
| { |
| --- PSQL queries which also duplicated from https://github.com/anvk/AwesomePSQLList/blob/master/README.md | |
| --- some of them taken from https://www.slideshare.net/alexeylesovsky/deep-dive-into-postgresql-statistics-54594192 | |
| -- I'm not an expert in PSQL. Just a developer who is trying to accumulate useful stat queries which could potentially explain problems in your Postgres DB. | |
| ------------ | |
| -- Basics -- | |
| ------------ | |
| -- Get indexes of tables |
The connection failed because by default psql connects over UNIX sockets using peer authentication, that requires the current UNIX user to have the same user name as psql. So you will have to create the UNIX user postgres and then login as postgres or use sudo -u postgres psql database-name for accessing the database (and psql should not ask for a password).
If you cannot or do not want to create the UNIX user, like if you just want to connect to your database for ad hoc queries, forcing a socket connection using psql --host=localhost --dbname=database-name --username=postgres (as pointed out by @meyerson answer) will solve your immediate problem.
But if you intend to force password authentication over Unix sockets instead of the peer method, try changing the following pg_hba.conf* line:
from
| <Target Name="AfterBuild" Condition="'$(Configuration)'=='Release'"> | |
| <CreateItem Include="$(SolutionDir)\packages\ILMerge.*\tools\ILMerge.exe"> | |
| <Output TaskParameter="Include" ItemName="ILMergeExe" /> | |
| </CreateItem> | |
| <Error Text="@(ILMergeExe) does not exists" Condition="!Exists('@(ILMergeExe)')" /> | |
| <CreateItem Include="@(ReferencePath)" Condition="'%(CopyLocal)'=='true'"> | |
| <Output TaskParameter="Include" ItemName="ILMergeAssemblies" /> | |
| </CreateItem> | |
| <Delete Files="$(OutputPath)\ILMerge.log" Condition="Exists('$(OutputPath)\ILMerge.log')" /> | |
| <Exec Command=""@(ILMergeExe)" /ndebug /log:$(OutputPath)\ILMerge.log /out:@(MainAssembly) "@(IntermediateAssembly)" @(ILMergeAssemblies->'"%(FullPath)"', ' ')" /> |
| #!/bin/bash | |
| cd "$(git rev-parse --show-toplevel)" | |
| ESLINT="node_modules/.bin/eslint" | |
| pwd | |
| if [[ ! -x "$ESLINT" ]]; then | |
| printf "\t\033[41mPlease install ESlint\033[0m (npm install eslint)\n" | |
| exit 1 | |
| fi |