Skip to content

Instantly share code, notes, and snippets.

@pihentagy
pihentagy / keybase.md
Created June 7, 2023 14:08
keybase.md

Keybase proof

I hereby claim:

  • I am pihentagy on github.
  • I am pihentagy (https://keybase.io/pihentagy) on keybase.
  • I have a public key ASDKYr0hSiAo3DIc3rgeO4-T1p-AwHxvS0TIaSomWHZRngo

To claim this, I am signing this object:

@pihentagy
pihentagy / feed.xml
Last active December 7, 2022 15:17
Media RSS example
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/">
  <channel>
    <title>My Movie Review Site</title>
    <link>http://www.foo.com</link>
    <description>I review movies.</description>
    <item>
      <title>Spirit of the Forest</title>
      <link>https://www.wikiart.org/en/odilon-redon/spirit-of-the-forest-1890?utm_source=Muzei&amp;utm_campaign=Muzei</link>
      <media:content
url="https://storage.googleapis.com/muzeifeaturedart/lt-full/odilon-redon-1890_spirit-of-the-forest.jpg"
@pihentagy
pihentagy / main.dart
Created August 26, 2021 08:09
yielding from deep
void subsub() {
print("I need to yield here"); // how to yield here?
}
String sub() {
subsub();
return "stuff";
}
Stream<String> greeter() async* {
@pihentagy
pihentagy / obsidian.css
Created October 9, 2020 09:34
Clutter free edit mode
/* inline formatting, link targets and [[ ]] disappears if not active line*/
div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-formatting,
div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-string.cm-url,
div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-formatting-link,
div:not(.CodeMirror-activeline)>.CodeMirror-line span.cm-hmd-barelink,
div:not(.CodeMirror-activeline)>.CodeMirror-line span.cm-comment
{ display: none; }
/* hide all html tags -- IT IS COMMENTED OUT BY DEFAULT */
/* div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-tag{ display: none; } */
@pihentagy
pihentagy / bash-debug.sh
Created June 26, 2014 19:11
Bash command trace to file
# bash -x to file
exec 99>/tmp/mylogfile
BASH_XTRACEFD=99 # magic bash environment variable
set -o xtrace # start tracing from here onward