Skip to content

Instantly share code, notes, and snippets.

View vyach-vasiliev's full-sized avatar

ฬะทçะรโลนร vyach-vasiliev

  • Milky Way galaxy, planet Earth
View GitHub Profile
@vyach-vasiliev
vyach-vasiliev / Install_Ignore_From_Dropbox_Context_Menu.reg
Last active May 7, 2024 21:09
Ignore from Dropbox by context menu in Windows OS [updated 2024]
Windows Registry Editor Version 5.00
;= Setup ignore file/folder menu.
;= Context menu to folders:
[HKEY_CLASSES_ROOT\Directory\shell\Dropbox F Ignore]
"AppliesTo"="System.ItemPathDisplay:\"Dropbox\""
"Icon"="C:\\Program Files (x86)\\Dropbox\\Client\\Dropbox.exe,12"
@="Ignore from Dropbox"
[HKEY_CLASSES_ROOT\Directory\shell\Dropbox F Ignore\command]
@danieldogeanu
danieldogeanu / RenameGitBranch.md
Last active June 11, 2024 12:27
How to rename your Git master branch to main.

To rename your Git master branch to main, you must do the following steps:

  1. Navigate to your repository in the command line and issue the following commands: - git branch -m master main - git push -u origin main

  2. Change your default branch on GitHub by going to your GitHub repository in your browser, and navigate to Settings > Branches and click on the dropdown and switch from master to main and click Update (this will only show if you have two or more branches). The main branch is now your default branch.

  3. Update the tracking of the branch from your command line with the following command: - git branch -u origin/main main

@vyach-vasiliev
vyach-vasiliev / getM3U8.js
Last active June 2, 2020 10:39
Kinopub bookmarklet (m3u8-playlist downloader, one season at a time)
// ver 20200601
function getM3U8() {
// parsing and building playlist
var blocks = [];
for (var i = 0; i < playlist.length; i++) {
// var block = '#EXTINF:%duration logo="%cover",%title %status\n%url\n#EXTALB:%album\n#EXTIMG:%image\n'; // alt version
var block = '#EXTINF:%duration,%title %status\n%url\n';
var item = playlist[i];
block = block
.replace('%duration', item.duration)
@Bnaya
Bnaya / dep.ts
Last active April 28, 2022 16:23
ts-node + esm
export function funci() {
return "AHH HHHHAAA";
}
@neretin-trike
neretin-trike / pug.md
Last active June 20, 2024 07:31
Туториал по HTML препроцессору Pug (Jade)
@santisbon
santisbon / Search my gists.md
Last active June 11, 2024 02:58
How to search gists.

Enter this in the search box along with your search terms:

Get all gists from the user santisbon.
user:santisbon

Find all gists with a .yml extension.
extension:yml

Find all gists with HTML files.
language:html

@zentala
zentala / formatBytes.js
Created September 27, 2017 11:57
Convert size in bytes to human readable format (JavaScript)
function formatBytes(bytes,decimals) {
if(bytes == 0) return '0 Bytes';
var k = 1024,
dm = decimals || 2,
sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'],
i = Math.floor(Math.log(bytes) / Math.log(k));
return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];
}
// Usage:
@vyach-vasiliev
vyach-vasiliev / getZodiacSign.md
Last active July 27, 2017 15:02
Get Zodiac sign by month and day by Javascript
@zeule
zeule / qBittorrent.fonttheme
Last active December 10, 2017 17:46
qBittorrent default themes
[Info]
Name=Default
Description=Default qBittorrent font theme.
[Fonts]
TransferList=QFont:
TorrentProperties=QFont:
ExecutionLog=QFont:
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active June 29, 2024 01:40
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example