Skip to content

Instantly share code, notes, and snippets.

View SenchoPens's full-sized avatar
☮️

Arseniy Chekanov SenchoPens

☮️
  • HSE, Applied Maths & Computer Science
  • Macondo
  • X @senchopens
View GitHub Profile
@psanford
psanford / xdg-open
Created December 23, 2020 03:06
Drop in replacement for xdg-open that is 73% better than the official xdg-open
#!/bin/sh
echo -n "$1" | xclip -selection primary; notify-send "URL Copied" "$1"
@blustrini
blustrini / beamer-pdf-remove-pause-slides.sh
Last active November 5, 2023 10:34 — forked from hannesfrank/beamer-pdf-remove-pause-slides.sh
Remove partial slides from latex-beamer pdf presentations.
#!/usr/bin/env sh
# code adapted from:
# https://gist.github.com/hannesfrank/35f4472c8294ddeb26055672d2114bd9
# for windows change shebang possibly?
# and figure out how to install pdftk?
# apologies, I dont use windows :(
if [[ $# -eq 0 ]] ; then
echo 'usage:' ${0##*/} '<input pdf> <output pdf>'
@wvengen
wvengen / NOTES.md
Last active March 13, 2021 17:20
Freedrum on Linux

Freedrum on Linux

The recently released Freedrum has no official Linux support. But, fortunately, it uses standard Bluetooth LE MIDI. It doesn't seem to work out of the box, yet (on Ubuntu 17.04, most probably Ubuntu 18.04 will support it directly).

Bluez 5.46

One really needs bluez 5.46 or higher. On Ubuntu, these are packaged in artful proposed (amd64). Unfortunately, MIDI support is not enabled in this build (Ubuntu bug #1713017).

So you'll need to download the sources, install dependencies plus libasound2-dev, build and install resulting debs. You may need to add --enable-midi to debian/rules. Like this:

@wldhx
wldhx / python-vs-rust.md
Last active February 7, 2018 15:30
Few trivial code samples contrasting Python and Rust

Python vs. Rust

(For reference: I know why it is the way it is, the stark difference is just kind of fun to contrast on trivial examples.)

Reading from stdin

Python

a = input()
@adeekshith
adeekshith / .git-commit-template.txt
Last active November 21, 2025 16:14 — forked from Linell/.git-commit-template.txt
This commit message template helps you write great commit messages and enforce it across teams.
# <type>: (If applied, this commit will...) <subject> (Max 50 char)
# |<---- Using a Maximum Of 50 Characters ---->|
# Explain why this change is being made
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
# Provide links or keys to any relevant tickets, articles or other resources
# Example: Github issue #23
@mwaskom
mwaskom / seaborn_dark_background.ipynb
Created December 3, 2015 19:49
Use seaborn with a dark background, if you like that sort of thing.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.