Value | Color |
---|---|
\e[0;30m | Black |
\e[0;31m | Red |
\e[0;32m | Green |
\e[0;33m | Yellow |
\e[0;34m | Blue |
\e[0;35m | Purple |
System information commands | |
=========================== | |
(*) #su Show only errors and warnings: `dmesg --level=err,warn` | |
(*) View dmesg output in human readable format: `dmesg -T` | |
(*) Get an audio notification if a new device is attached to your computer: `dmesg -tW -l notice | gawk '{ if ($4 == "Attached") { system("echo New device attached | espeak") } }` | |
(*) Dmesg: follow/wait for new kernel messages: `dmesg -w` | |
(*) The proper way to read kernel messages in realtime.: `dmesg -wx` | |
(*) Query graphics card: `lspci -nnk | grep -i VGA -A2` |
Last updated September 21, 2022
This Gist explains how to do this using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.
For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.
There has been a number of comments on this gist regarding some issues around the pinentry-program and M1 Macs. I've finally gotten a chance to try things out on an M1 and I've updated the documentation in 2-using-gpg.md
to reflect my findings.
" IdeaVim Wiki https://github.com/JetBrains/ideavim/wiki | |
" Find more examples here: https://jb.gg/share-ideavimrc | |
let mapleader=";" | |
""" Common settings ------------------------- | |
set showmode | |
set scrolloff=5 | |
" Do incremental searching. | |
set incsearch |
import {HttpClient, HttpErrorResponse, HttpHeaders, HttpParams} from '@angular/common/http'; | |
import {Injectable} from '@angular/core'; | |
import {Observable} from 'rxjs/Observable'; | |
export interface IRequestOptions { | |
headers?: HttpHeaders; | |
observe?: 'body'; | |
params?: HttpParams; | |
reportProgress?: boolean; | |
responseType?: 'json'; |
" TODO: split up config into multiple files | |
" source $HOME/.config/nvim/vim-plug/plugins.vim | |
" source $HOME/.config/nvim/<category>/<sub-category-filename>.vim | |
" source $HOME/.config/nvim/<plug-config>/<plugin-name>.vim | |
set nocompatible | |
filetype off | |
if empty(glob('~/.vim/autoload/plug.vim')) | |
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs |
# Set the name and the supported language of the project | |
PROJECT(hello-world C) | |
# Set the minimum version of cmake required to build this project | |
CMAKE_MINIMUM_REQUIRED(VERSION 2.6) | |
# Use the package PkgConfig to detect GTK+ headers/library files | |
FIND_PACKAGE(PkgConfig REQUIRED) | |
PKG_CHECK_MODULES(GTK3 REQUIRED gtk+-3.0) | |
# Setup CMake to use GTK+, tell the compiler where to look for headers |
Bounded Contexts provide an isolated space for experimentation. Isolation is fundamental to provide safety. If your model is shared with too many parties, people would not run experiments, afraid of breaking someone else’s code.
for 4.2.4 or higher,4.2.5,4.2.6 ,it's works , this is the way which makes Always in evaluation mode 。
- go to the dir :
/Applications/Beyond Compare.app/Contents/MacOS
- change the name
BCompare
toBCompare.bak
- touch a file name
BCompare
, andchmod a+u BCompare
- insert BCompare the content :
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@
This gist is about using a Multi-Tenancy strategy for your Doctrine entities.
See: https://gist.github.com/CarlosEduardo/aedfa640e3f7f22451686fb7e57228e3