Summarizing the instructions of the pass
tool (as seen on its website).
Execute: $ sudo apt install pass
;; Decode ASN.1 encoded private key | |
;; | |
;; RSA private key format: https://www.rfc-editor.org/rfc/rfc3447#appendix-A.1.2 | |
;; | |
;; RSAPrivateKey ::= SEQUENCE { | |
;; version Version, | |
;; modulus INTEGER, -- n | |
;; publicExponent INTEGER, -- e | |
;; privateExponent INTEGER, -- d | |
;; prime1 INTEGER, -- p |
Summarizing the instructions of the pass
tool (as seen on its website).
Execute: $ sudo apt install pass
on alacritty_win() | |
set _running to (application "Alacritty" is running) | |
tell application "Alacritty" to activate | |
tell application "System Events" | |
repeat while (name of first application process whose frontmost is true) is not "alacritty" | |
delay 0.05 | |
end repeat | |
set _alacritty to first application process whose frontmost is true | |
-- If Alacritty was running, create a new window to run command |
I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).
Use ssh keys and define host aliases in ssh config file (each alias for an account).
import { combineReducers } from 'redux'; | |
import users from './reducers/users'; | |
import posts from './reducers/posts'; | |
export default function createReducer(asyncReducers) { | |
return combineReducers({ | |
users, | |
posts, | |
...asyncReducers | |
}); |
This is unmaintained, please visit Ben-PH/spacemacs-cheatsheet
SPC q q
- quitSPC w /
- split window verticallySPC w
- - split window horizontallySPC 1
- switch to window 1SPC 2
- switch to window 2SPC w c
- delete current window-- Decoding | |
SELECT CONVERT_FROM(DECODE(field, 'BASE64'), 'UTF-8') FROM table; | |
-- Encoding | |
SELECT ENCODE(CONVERT_TO(field, 'UTF-8'), 'base64') FROM table; |
// | |
// extract_youtube_id.m | |
// TestRegex | |
// | |
// Created by zdk on 1/8/2013 BE. | |
// Copyright (c) 2013 zdk. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
## Ref: http://www.qtcentre.org/threads/27130-Rotate-QGraphicsProxyWidget-in-QGraphicsView | |
#include <QtGui> | |
int main(int argc, char *argv[]) | |
{ | |
QApplication a(argc, argv); | |
QGraphicsView gv; | |
QGraphicsScene scene(-200,-200,400,400); | |
gv.setScene(&scene); |