See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
name: Flamegraph PR | |
on: | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: |
""" | |
Convert YouTube subtitles(vtt) to human readable text. | |
Download only subtitles from YouTube with youtube-dl: | |
youtube-dl --skip-download --convert-subs vtt <video_url> | |
Note that default subtitle format provided by YouTube is ass, which is hard | |
to process with simple regex. Luckily youtube-dl can convert ass to vtt, which | |
is easier to process. |
#include <bits/stdc++.h> | |
using namespace std; | |
//IO | |
#define fastio ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(NULL) | |
#define tc int t; cin >> t; while(t--) | |
#define cases cout << "Case " << cnt << ": " | |
#define get_arr(arr, n) fori(i,n) cin >> arr[i] | |
#define print_arr(arr, n) fori(i,n) cout << arr[i] << " "; cout << endl |
name: Deploy to GitHub Pages | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: |
_
(underscore) to move the cursor at the beginning of line (doesn't switch to insert mode)
0
(zero) moves the cursor to the zeroth position of the line (doesn't switch to insert mode)$
(dollar) to move the cursor at the end of line (doesn't switch to insert mode)d$
will delete from wherever your cursor is till the end of the linef<character>
to move cursor to the first occurrence of <character>
f(
to move cursor to first occurence of (
t<character>
to move cursor to upto but not on the first occurrence of <character>
t(
to move cursor to first occurence of (
![Adblock Plus 2.0] | |
! Title: FuckFandom | |
! Expires: 30 days (update frequency) | |
! Homepage: https://gist.github.com/Craftplacer/04089c2c666c89e10818124c92d9c65b | |
fandom.com##.mcf-wrapper | |
fandom.com##.wds-global-footer | |
fandom.com##.global-navigation | |
fandom.com##.top-ads-container |
mkdir -m 700 ~/.ssh; curl https://github.com/aidik.keys >> ~/.ssh/authorized_keys