rg -a "text match", note the database file to usesqlite3 Database.db.tables.schema <table>select...until you find theZBLOB's table primary keyZ_PK- Save it to file with
SELECT writefile('out.plist', ZBYTES) FROM ZBLOB WHERE Z_PK=298;<-- use your pk - Convert plist to text format with
plutil -convert xml1 out.plist - Open it with an editor and find your contents among shitloads of metadata
This file contains hidden or 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
| Sun, may you shine down on us | |
| let us rejoice in your warmth | |
| in delight, | |
| in delight | |
| Come, sit by me on the ground | |
| we'll chase away the demons | |
| fly, over the hills, | |
| of memories |
This file contains hidden or 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
| // From https://jack.wrenn.fyi/blog/undroppable/ | |
| use std::mem; | |
| /// A type that cannot be dropped. | |
| pub struct Undroppable<T: ?Sized>(mem::ManuallyDrop<T>); | |
| impl<T> Undroppable<T> { | |
| // Makes `val` undroppable. | |
| // |
This file contains hidden or 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
| def filtered = ['class', 'active'] | |
| println theObject.properties | |
| .sort{it.key} | |
| .collect{it} | |
| .findAll{!filtered.contains(it.key)} | |
| .join('\n') |
Based on https://github.com/ellerbrock/conventional-commit-types-emoji for preview and on https://github.com/pvdlg/conventional-commit-types for the actial emoji images
🚨 There is a commit-emoji hook now to insert emoji automatically based on prefix, so you can just install it and use regular conventional commits (even using a tool like koji). 🚨
feat(xxx): ✨ Features your commit message
This file contains hidden or 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
| #!/bin/sh | |
| set -e | |
| set -x | |
| reponame=`basename $(pwd)` | |
| echo "#######################################################################################" | |
| echo "# Script to import all local branches from current repository (${reponame}) into pijul" | |
| echo "# Will create a bunch of temp repos for import, so have sufficient disk space" | |
| echo "#######################################################################################" |
This file contains hidden or 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
| /* | |
| Referenced from: | |
| http://web.archive.org/web/20120110153227/http://weegen.home.xs4all.nl/eelis/analogliterals.xhtml | |
| */ | |
| #ifndef ANALOGLITERALS_HPP | |
| #define ANALOGLITERALS_HPP | |
| namespace analog_literals { |
This file contains hidden or 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
| #![feature(unboxed_closures, fn_traits)] | |
| fn main() { | |
| let add = |a: i32, b: i32| a + b; | |
| let sqr = |a: i32| a.pow(2); | |
| let add_two = |a: i32| a + 2; | |
| assert_eq!(chain(add, sqr)(2, 3), 25); | |
| assert_eq!( | |
| chain( |
This file contains hidden or 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
| use std::collections::hash_map::Entry; | |
| use std::collections::HashMap; | |
| trait EntryExt<'a, K, V>: 'a { | |
| fn or_insert_with2<F: FnOnce(&K) -> V>(self, f: F) -> &'a mut V; | |
| } | |
| impl<'a, K, V> EntryExt<'a, K, V> for Entry<'a, K, V> { | |
| fn or_insert_with2<F: FnOnce(&K) -> V>(self, f: F) -> &'a mut V { | |
| match self { |
This file contains hidden or 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
| # See https://news.ycombinator.com/item?id=20213092 | |
| FROM python:3 | |
| ARG VERSION=2.1.1.0 | |
| RUN pip install pytz passlib bcrypt radicale==$VERSION | |
| ENV RADICALE_CONFIG /etc/radicale/config | |
| RUN mkdir -p /etc/radicale | |
| COPY config $RADICALE_CONFIG |
NewerOlder