Skip to content

Instantly share code, notes, and snippets.

View 1ncend1ary's full-sized avatar

Aleksei Seliverstov 1ncend1ary

View GitHub Profile
@Krever
Krever / _README.md
Last active March 9, 2024 16:21
Yabai setup for i3wm users
@tanaikech
tanaikech / submit.md
Last active May 25, 2024 01:31
Workaround for Retrieving Direct Links of All Sheets from URL of 2PACX-### of Web Published Google Spreadsheet

Workaround for Retrieving Direct Links of All Sheets from URL of 2PACX-### of Web Published Google Spreadsheet

This is a sample script for retrieving the direct links of all sheets from the URL like https://docs.google.com/spreadsheets/d/e/2PACX-###/pubhtml of the web published Google Spreadsheet. This sample script can be used for the following situation.

  1. The Spreadsheet is published to Web and the URL like https://docs.google.com/spreadsheets/d/e/2PACX-###/pubhtml is known
  2. You are not the owner of Google Spreadsheet.
  3. You don't know the Spreadsheet ID and Sheet IDs.

Under above situation, unfortunately, the direct links of each sheet cannot be directly retrieved. I think that this is the specification of Google side. So in this post, I would like to introduce a workaround for retrieving the direct links of each sheet under above situation.

@jerdna-regeiz
jerdna-regeiz / i3.config
Last active June 16, 2021 10:54
Use vim anywhere by filling clipboard in i3 (inspired by vim-anywhere)
# uses simple terminal (could be replaced with i3-sensible-terminal)
# replace xclip with the clipboard tool of your choice
# will have last selection as content in the editor per default
bindsym $mod+Ctrl+Return exec "zsh -c 'file=$(mktemp); xclip -o > $file; st -n FloatingST -e vim $file; head -c -1 $file| xclip -se c;'"
for_window [instance="Floating.*"] floating enable
@dlaehnemann
dlaehnemann / contribute_github_without_write_access.md
Last active May 1, 2024 13:32
contributing to github repo without write access: pull from origin repo, push to your own fork

Whenever I want to create pull requests to a repo that I don't have write access to, I:

  1. Fork the original repo to my account.
  2. Clone the original repo to my local machine.
  3. Add my fork as an additional remote and make it the push default.
  4. Make changes in a new branch locally.
  5. Push this branch to my fork.
  6. Create a pull request from there.
# Reinstall SpaceVim along with useful bunch of tools that work well together with SpaceVim.
# This is for Ubuntu 20.04
sudo apt install -y ctags miscfiles python3-dev python3-pip rsync shellcheck software-properties-common wbritish wbritish-huge ruby ruby-dev nodejs gcc g++ make universal-ctags python3-pygments ripgrep
sudo select-default-wordlist
sudo apt-get update
sudo apt-get install -y --reinstall neovim
sudo update-alternatives --install /usr/bin/vi vi /usr/bin/nvim 5
sudo update-alternatives --install /usr/bin/vim vim /usr/bin/nvim 5
@evandrix
evandrix / pep20_by_example.py
Created March 13, 2012 18:45
PEP 20 (The Zen of Python) by example
#!/usr/bin/env python
"""
=====================================
PEP 20 (The Zen of Python) by example
=====================================
Usage: %prog
:Author: Hunter Blanks, hblanks@artifex.org / hblanks@monetate.com