Skip to content

Instantly share code, notes, and snippets.

View ch1c0t's full-sized avatar

Anatoly Chernov ch1c0t

View GitHub Profile
@JBlond
JBlond / episoden.md
Last active January 7, 2025 12:54
Fragezeichen Episoden

Drei Fragezeichen Episoden

Nr. Titel Erscheinung Autor Rating
001 und der Super-Papagei 1979-10-12 Robert Arthur
002 und der Phantomsee 1979-10-13 William Arden
003 und der Karpatenhund 1979-10-14 M. V. Carey
004 und die schwarze Katze 1979-10-15 William Arden
005 und der Fluch des Rubins 1979-10-16 Robert Arthur
006 und der sprechende Totenkopf 1979-10-17 Robert Arthur
@tkapias
tkapias / wtoggle.sh
Last active December 15, 2024 21:01
Toggle or launch a new instance of a window with i3wm on a single screen setup.
#!/usr/bin/env bash
# Example for i3wm exec binding: toggle or run urxvtc in client mode (systemd daemon urxvtd), with setenv to bypass TMUX in my bashrc.
# bindcode $mod+Shift+49 exec --no-startup-id "/home/user/.config/i3/scripts/wtoggle.sh -i -c \\"^URxvt$\\" -n \\"^Terminal\sURxvt$\\" -m \\"urxvtc -title 'Terminal URxvt' -e sh -c 'TMUX=false bash'\\" -s \\"urxvtd\\""
# locale
export LC_ALL="C.UTF-8"
export TZ=:/etc/localtime
Help()
@toriato
toriato / ay.sh
Created March 7, 2023 12:07
Viraul Microphone for PulseAudio/PipeWire
pactl load-module module-null-sink sink_name=virtual-speakers channel_map=stereo
pactl load-module module-null-sink media.class=Audio/Source/Virtual sink_name=virtual-microphone channel_map=front-left,front-right
pw-link virtual-speakers:monitor_FL virtual-microphone:input_FL
pw-link virtual-speakers:monitor_FR virtual-microphone:input_FR
# pw-link -i
pw-link virtual-speakers:monitor_FL alsa_output.pci-0000_04_00.6.3.HiFi__hw_Generic_1__sink:playback_FL
pw-link virtual-speakers:monitor_FR alsa_output.pci-0000_04_00.6.3.HiFi__hw_Generic_1__sink:playback_FR
@SteveDaulton
SteveDaulton / record_parts.py
Last active January 2, 2025 03:20
Sequential recording with Audacity with Python.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Record Parts:
=============
A demonstration Python application controlling Audacity to make a
sequence of recordings. There will inevitably be short breaks between
each recording due to the time required to Export, clean up and start
@SteveDaulton
SteveDaulton / pipeclient.py
Last active January 2, 2025 03:17
pipeclient.py is a Python module for sending commands to Audacity from Python. This version is more recent than Audacity's version.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Automate Audacity via mod-script-pipe.
Pipe Client may be used as a command-line script to send commands to
Audacity via the mod-script-pipe interface, or loaded as a module.
Requires Python 3.
(Python 2.7 is now obsolete, so no longer supported)
@asterite
asterite / dependency_sets.cr
Created January 4, 2023 18:01
Compute dependency sets
def affected_files(file, dependencies)
tracked_files = Set(String).new
track(file, dependencies, tracked_files)
tracked_files
end
def track(file, dependencies, tracked_files)
return unless tracked_files.add?(file)
dependencies[file].each do |to|

Welcome to the New Era of Scientific Publishing

— by Tobias Kuhn, 4 April 2022; reporting on work with Cristina Bucur, Davide Ceolin, and Jacco van Ossenbruggen [1,2] —

I believe we have made the first steps venturing into a new era of scientific publishing. Let me explain. [Update: At what point exactly a new era begins and what counts as first steps are of course subject to debate. I therefore added a section on related initiatives and further reading below.]

Science is nowadays communicated in a digital manner through the internet. We essentially have a kind of "scientific knowledge cloud", where researchers with the help of publishers upload their latest findings in the form of scientific articles, and where everybody who is interested can access and retrieve these findings. (This is in fact only true for articles that are published as Open Access, but that is not the point here.)

@cisert
cisert / highlight_atoms_3d.py
Created February 9, 2022 10:48
Draw 3D molecule with highlighted atoms
import py3Dmol
from rdkit import Chem
def draw_mol_with_highlights(mol, hit_ats, style=None):
"""Draw molecule in 3D with highlighted atoms.
Parameters
----------
mol : RDKit molecule
hit_ats : tuple of tuples
@nerdinand
nerdinand / Dockerfile
Created January 29, 2022 22:32
Podman setup for Rails 7 (without compose or database)
FROM ruby:3.1
# throw errors if Gemfile has been modified since Gemfile.lock
RUN bundle config --global frozen 1
WORKDIR /usr/src/app
COPY Gemfile Gemfile.lock ./
RUN bundle install
@4abhinavjain
4abhinavjain / reinstall_VPS_from_inside.txt
Last active May 12, 2025 08:12 — forked from ClashTheBunny/reinstall_VPS_from_inside.sh
DIY install debian on Oracle Cloud Infrastructure ( Free Tier ) - ARM64
# should works on any cloud-init enabled hypervisor (openstack.. )
# start from a normal ubuntu 20.04 install as minimal was not available for ARM64
# Since ARM64 machines has higher RAM, Shrinking is desired but not necessary. Instead we will increase tmpfs to 1700MB
# Getting root (if sudo -i doesn't work then set a root password beforehand using 'sudo passwd root'
sudo -i
# make sure we are on the highest kernel, so we can delete all the others ...