(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| /* | |
| Grep.js | |
| Author : Nic da Costa ( @nic_daCosta ) | |
| Created : 2012/11/14 | |
| Version : 0.2 | |
| (c) Nic da Costa | |
| License : MIT, GPL licenses | |
| Overview: | |
| Basic function that searches / filters any object or function and returns matched properties. |
| /* -*- Mode: Text; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- | |
| * This Source Code Form is subject to the terms of the Mozilla Public | |
| * License, v. 2.0. If a copy of the MPL was not distributed with this | |
| * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
| /* | |
| * Solarized. | |
| * see output-base.css for details. | |
| */ |
| #!/bin/bash | |
| FILEBASE=${1%.*} | |
| FILEXT=${1##*.} | |
| FILEPATH=${1%/*} | |
| TEXFILE=$FILEBASE.tex | |
| PDFFILE=$FILEBASE.pdf | |
| # errorexit |
| #!/bin/bash | |
| # Generar un script para vegnuxmod (roms para firefox os) que permita la automatización | |
| # en las compilaciones de los diferentes "branches" o ramas utilizando las mismas fuentes git | |
| # evitando la redundancia de código, en esta primera versión se manejarán las siguientes versiones. | |
| # v1.4, v2.0 y master | |
| # | |
| # Se describirá a continuación paso por paso los procedimientos que se deben seguir para preparar | |
| # el código fuente segun la rama git. | |
| # | |
| ############# |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| #!/bin/sh | |
| BACKUP_DATE=`date +%Y-%m-%d_%H-%M-%S` | |
| BACKUP_DIR="~/PEAK/BACKUPS/$BACKUP_DATE" | |
| mkdir -p "$BACKUP_DIR" | |
| cd "$BACKUP_DIR" | |
| sudo adb pull /data/local/storage/persistent/ |
| input:not(.tactile-searchbox-input):not(.urlbar-input):not(.textbox-input):not(.form-control):not([type='checkbox']) { | |
| -moz-appearance: none !important; | |
| background-color: white; | |
| color: black; | |
| } | |
| #downloads-indicator-counter { | |
| color: white; | |
| } |
(Tested with KeePassXC on Fedora 25)
By default when using GNOME Keyring you have a keyring that is unlocked when you log in (usually called "Login"). You can make use of that by storing a KeePass database password in this keyring and using it to automatically unlock your KeePass database.
Store the KeePass database password in GNOME Keyring. You'll have to set a label and at least one attribute/value pair. The label is displayed in a GNOME keyring manager (e.g. Seahorse), the attribute/value pair should be a unique identifier because it's needed for the lookup. I suggest to use keepass as attribute and the database name as value (make sure it doesn't contain any spaces).
secret-tool store --label="KeePass <database_name>" keepass <database_name>
Then create a script to launch and immediately unlock your KeePass database.
| // create context with no upfront defaultValue | |
| // without having to do undefined check all the time | |
| function createCtx<A>() { | |
| const ctx = React.createContext<A | undefined>(undefined) | |
| function useCtx() { | |
| const c = React.useContext(ctx) | |
| if (!c) throw new Error("useCtx must be inside a Provider with a value") | |
| return c | |
| } | |
| return [useCtx, ctx.Provider] as const |