Skip to content

Instantly share code, notes, and snippets.

View pflegende's full-sized avatar
💭
house Working from home

Pflegende Angehörige pflegende

💭
house Working from home
View GitHub Profile
@eculver
eculver / Auto-refresh bookmarklet
Created January 2, 2010 01:02
Auto-refresh bookmarklet
// origin: http://www.google.com/support/forum/p/Chrome/thread?tid=1a37ccbdde5902fd&hl=en
javascript:
timeout=prompt("Set timeout [s]");
current=location.href;
if(timeout>0)
setTimeout('reload()',1000*timeout);
else
location.replace(current);
function reload(){
@willurd
willurd / web-servers.md
Last active April 28, 2024 21:38
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@fhemberger
fhemberger / backup-uberspace.exclude
Created October 17, 2013 08:52
How to easily backup your Uberspace (http://uberspace.de) account with rsync
.gem
.npm
cgi-bin
fcgi-bin
html
lib
man
share
tmp
**/node_modules
@RavuAlHemio
RavuAlHemio / gdbcheatsheet.md
Created February 2, 2014 12:20
gdb cheat sheet (in German)

Programm starten

Programmargumente können entweder auf der Kommandozeile übergeben werden:

gdb --args ./prog arg1 arg2 arg3

oder als Teil des gdb-Befehls run:

gdb ./prog

surround.vim
= 20160519 =
:global /{pattern}/ [cmd] führt ex-Kommando cmd für alle Zeilen, die pattern erfüllen, aus
:vglobal ... die pattern nicht erfüllen ...
qaq löscht Register a
:g/pattern/yank A in Register a anhängen
"ap inhalt Register a einfügen
:g/pattern/[range] sort sortiert Bereich range
@jirutka
jirutka / abuild-can-remove
Last active September 13, 2021 17:50
Some helper scripts for checking dependencies of Alpine packages.
#!/bin/sh
#
# This scripts checks the given list of packages if they have
# reverse dependencies (i.e. there are packages which depends on them).
# Dependencies that are on the list are excluded.
#
# Usage: $0 LIST
set -eu
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
@mdmarek
mdmarek / YouTubeMusic
Last active October 29, 2023 18:06
Links to music on YouTube
Classic
https://www.youtube.com/watch?v=xtLoaMfinbU Tchaikovsky, The Nutcracker
https://www.youtube.com/watch?v=7w7vIQe4HU0 Ravel, Piano Concerto for the Left Hand
https://www.youtube.com/watch?v=T5oVgqIbOqw Ravel, Ma mère l'oye
https://www.youtube.com/watch?v=ydKwY0tqAXQ Beethoven, Sonata Claro de Luna
https://www.youtube.com/watch?v=t3217H8JppI Beethoven, Symphony No. 9
https://www.youtube.com/watch?v=arMu4f8rnBk Beethoven, Moonlight Sonata
https://www.youtube.com/watch?v=CMc00D8J7i4 Beethoven, Para Elisa
https://www.youtube.com/watch?v=eqksy-991sI Georg Friedrich Handel, Concerti Grossi Op 6
https://www.youtube.com/watch?v=DxtAHpYIXdU Dvořák, String Quartet No. 12 in F major, Op. 96 American
@heroheman
heroheman / tmux-cheatsheet.md
Last active July 1, 2022 11:34
Tmux Simple Cheatsheet

Basic Tmux Cheatsheet

Sessions

In Bash

  • start new session: tmux
  • start new session with name: tmux new -s sessionname
  • show running sessions: tmux ls
  • attach last session: tmux a
  • attach session by name: tmux a -t sessionname
@megasaturnv
megasaturnv / parseRssFeed.sh
Last active October 16, 2023 07:29
Shell script / one-liner to parse and display an rss feed. May require tweaking for RSS feeds without newlines or where <title> and <description> are on separate lines to their text.
#!/bin/sh
#Megasaturnv 2017-07-28
#Url of the RSS feed
RSS_URL=""
##Commented version:
#Download the rss feed
curl --silent "$RSS_URL" | \
#Only match lines with 'title>' or 'description>'
@ryanfb
ryanfb / georgeblood.m3u
Last active October 16, 2023 12:11
An M3U playlist of items in the Internet Archive 78rpm collection: https://archive.org/details/georgeblood
This file has been truncated, but you can view the full file.
https://archive.org/download/78_.-tam-za-vahom-2.-horicka-zelena_andrej-gellert_gbia0001742a/!.%20Tam%20Za%20Vahom;%202.%20Horicka%20Zelena%20-%20Andrej%20Gellert.mp3
https://archive.org/download/78_1-a-dew-drop-2-rain-song_elizabeth-wheeler-sherman-gilchrist-smith_gbia0013545a/(1)%20A%20Dew%20Drop;%20(2)%20Rain%20Song%20-%20Elizabeth%20Wheeler.mp3
https://archive.org/download/78_...must-suffer-for-the-one-mistake-i-made_peppermint-harris_gbia0001396b/...Must%20Suffer%20(For%20The%20One%20Mistake%20I%20Made)%20-%20Peppermint%20Harris.mp3
https://archive.org/download/78_-and-mimi_art-lund-kennedy-simon-johnny-thompson_gbia0012786b/-And%20Mimi%20-%20Art%20Lund%20-%20Kennedy%20-%20Simon%20-%20Johnny%20Thompson.mp3
https://archive.org/download/78_-tramp-along-the-highway_nelson-eddy-nathaniel-shilkret-and-orchestra-rida-johnson_gbia0011035b/…%20Tramp%20Along%20the%20Highway%20-%20Nelson%20Eddy%20-%20Nathaniel%20Shilkret%20and%20Orchestra.mp3
https://archive.org/download/78_--and-mimi_frankie-carle-and-his-orchest