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 November 13, 2024 13:44
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")")"
@dcode
dcode / GitHub Flavored Asciidoc (GFA).adoc
Last active October 12, 2024 11:16
Demo of some useful tips for using Asciidoc on GitHub

GitHub Flavored Asciidoc (GFA)

@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>'