- 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.
set PATH=%PATH%;C:\Program Files\TortoiseSVN\bin | |
git stash: svn diff > patch_name.patch; svn revert -R . | |
git stash apply: patch patch_name.patch | |
based on stackoverflow answer: http://stackoverflow.com/questions/1554278/temporarily-put-away-uncommited-changes-in-subversion-a-la-git-stash |
{"lastUpload":"2020-07-14T08:25:59.082Z","extensionVersion":"v3.4.3"} |
# https://stackoverflow.com/questions/39928401/recover-db-password-stored-in-my-dbeaver-connection | |
# requires pycrypto lib (pip install pycrypto) | |
import sys | |
import base64 | |
import os | |
import json | |
from Crypto.Cipher import AES |
To add an entry in the Windows Explorer context menu to open Cmder
in a specific directory, paste this into a OpenCmderHere.reg
file
and double-click to install it.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
@="Open Cmder Here"
"Icon"="\"%CMDER_ROOT%\\icons\\cmder.ico\",0"
$ cd /tmp
$ rails -v
Rails 6.0.3.2
$ rails new my-app
Using -T -d postgresql from /Users/rileytg/.railsrc # use postgres, dont use tests (usually add rspec). this is a fairly common rails stack.
...
Bundle complete! 14 Gemfile dependencies, 65 gems now installed.
...
If you want to clone an svn repository with git-svn but don't want it to push all the existing branches, here's what you should do. | |
* Clone with git-svn using the -T parameter to define your trunk path inside the svnrepo, at the same time instructing it to clone only the trunk: | |
git svn clone -T trunk http://example.com/PROJECT | |
* If instead of cloning trunk you just want to clone a certain branch, do the same thing but change the path given to -T: | |
git svn clone -T branches/somefeature http://example.com/PROJECT |
Set the SVN_EDITOR var: | |
# export SVN_EDITOR=vim | |
================================== | |
SETTING UP A NEW SVN PROJECT | |
================================== | |
Create a new SVN "repo" (aka folder): | |
(NOTE: https is required for our new SVN, as well as --username) | |
# svn mkdir https://some/url/path/to/newRepo --username first.last |
#Getting started with git-svn
git-svn is a git command that allows using git to interact with Subversion repositories.git-svn is part of git, meaning that is NOT a plugin but actually bundled with your git installation. SourceTree also happens to support this command so you can use it with your usual workflow.
Reference: http://git-scm.com/book/en/v1/Git-and-Other-Systems-Git-and-Subversion
##Cloning the SVN repository
You need to create a new local copy of the repository with the command
Peter Naur's classic 1985 essay "Programming as Theory Building" argues that a program is not its source code. A program is a shared mental construct (he uses the word theory) that lives in the minds of the people who work on it. If you lose the people, you lose the program. The code is merely a written representation of the program, and it's lossy, so you can't reconstruct