This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pw-cli s <device id> Props '{ params = [ "api.alsa.headroom" 1024 ] }' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
www.spiegel.de##[data-area="article-teaser-list"] > div:has( a[href*="bento.de"] ) | |
www.spiegel.de##[data-area="article-teaser-list"] > div:has( [id*="splus"] ) | |
! thx @RolfWojtech | |
www.spiegel.de##:xpath(//article[.//header//span[contains(@data-contains-flags,"paid")]]) | |
www.spiegel.de##:xpath(//li[.//span[contains(@data-contains-flags,"paid")]]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_mime.c> | |
AddType application/javascript js jsonp | |
AddType application/json json | |
AddType audio/ogg oga ogg | |
AddType audio/mp4 m4a f4a f4b | |
AddType video/ogg ogv | |
AddType video/mp4 mp4 m4v f4v f4p | |
AddType video/webm webm | |
AddType video/x-flv flv | |
AddType image/svg+xml svg svgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#put it into one of your app/helpers files | |
# you have to replace the collection_path with the path of your model! | |
# tag.link only works from rails 5.1 ... prior you have to use content_tag ... | |
# next - prev links header | |
def pagination_head_tags(collection) | |
if collection.total_pages | |
link_tags = "" | |
if collection.current_page < collection.total_pages | |
link_tags += tag.link nil, href: collection_path(page: collection.current_page + 1), rel: "next" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gitk ... search for the last commit before the merge | |
git checkout <sha1-of-this-commit> | |
git branch <newbranchname> | |
git checkout <newbranchname> | |
git merge <branch-which-original-is-merged> | |
... redo the conflict resolution |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Server code in C */ | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> |