# raspbian stretch lite on ubuntu
### You can write the raspbian image onto the sd card,
# boot the pi so it expands the fs, then plug back to your laptop/desktop
# and chroot to it with my script
# https://gist.github.com/htruong/7df502fb60268eeee5bca21ef3e436eb
# sudo ./chroot-to-pi.sh /dev/sdb
# I found it to be much less of a pain in the ass and more reliable
# than doing the kpartx thing
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
| public interface StoreRepository extends PagingAndSortingRepository<Store, String>, | |
| QueryDslPredicateExecutor<Store>, QuerydslBinderCustomizer<QStore> { | |
| @RestResource(rel = "by-location") | |
| Page<Store> findByAddressLocationNear(Point location, Distance distance, Pageable pageable); | |
| default void customize(QuerydslBindings bindings, QStore store) { | |
| bindings.bind(store.address.city).single((path, value) -> path.startsWith(value)); | |
| bindings.bind(String.class).single((StringPath path, String value) -> path.contains(value)); | |
| } |
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
| #include "ili9341.h" | |
| volatile uint16_t LCD_W=ILI9341_TFTWIDTH; | |
| volatile uint16_t LCD_H=ILI9341_TFTHEIGHT; | |
| void ili9341_hard_init(void)//init hardware | |
| { | |
| rstddr=0xFF;//output for reset | |
| rstport |=(1<<rst);//pull high for normal operation | |
| controlddr|=(1<<dc);//D/C as output |
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
| set ssl_starttls=yes | |
| set ssl_force_tls=yes | |
| set imap_user = '[email protected]' | |
| set imap_pass = 'password_here' | |
| set from= $imap_user | |
| set use_from=yes | |
| set realname='Your_Name' | |
| set folder = imaps://imap-mail.outlook.com:993 | |
| set spoolfile = "+INBOX" |
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
| # Emoji | |
| # http://unicode.org/emoji/charts/full-emoji-list.html | |
| <Multi_key> <e> <m> <o> <colon> <D> : "๐" | |
| <Multi_key> <e> <m> <o> <x> <D> : "๐" | |
| <Multi_key> <e> <m> <o> <x> <apostrophe> <D> : "๐" | |
| <Multi_key> <e> <m> <o> <colon> <apostrophe> <D> : "๐" | |
| <Multi_key> <e> <m> <o> <r> <o> <f> <l> : "๐คฃ" | |
| <Multi_key> <e> <m> <o> <colon> <d> : "๐" | |
| <Multi_key> <e> <m> <o> <x> <parenright> : "๐" |
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
| // Original rules: https://github.com/coldfix/udiskie/wiki/Permissions | |
| // Changes: Added org.freedesktop.udisks2.filesystem-mount-system, as this is used by Dolphin. | |
| polkit.addRule(function(action, subject) { | |
| var YES = polkit.Result.YES; | |
| // NOTE: there must be a comma at the end of each line except for the last: | |
| var permission = { | |
| // required for udisks1: | |
| "org.freedesktop.udisks.filesystem-mount": YES, | |
| "org.freedesktop.udisks.luks-unlock": YES, |
I have a pet project I work on, every now and then. CNoEvil.
The concept is simple enough.
What if, for a moment, we forgot all the rules we know. That we ignore every good idea, and accept all the terrible ones. That nothing is off limits. Can we turn C into a new language? Can we do what Lisp and Forth let the over-eager programmer do, but in C?
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
| include "%L" | |
| # Emoji | |
| # http://unicode.org/emoji/charts/full-emoji-list.html | |
| <Multi_key> <colon> <colon> <D> : "๐" | |
| <Multi_key> <colon> <x> <D> : "๐" | |
| <Multi_key> <colon> <l> <o> <l> : "๐" | |
| <Multi_key> <colon> <r> <o> <f> : "๐คฃ" | |
| <Multi_key> <colon> <colon> <d> : "๐" |