run postgresql with systemctl
sudo pacman -S postgresql
find version & build from source
| # Modified sorin prompt that show the last command execution time as the last bit of the right prompt | |
| # name: Sorin | |
| # author: Leonard Hecker <leonard@hecker.io> | |
| # Sources: | |
| # - General theme setup: https://github.com/sorin-ionescu/prezto/blob/d275f316ffdd0bbd075afbff677c3e00791fba16/modules/prompt/functions/prompt_sorin_setup | |
| # - Extraction of git info: https://github.com/sorin-ionescu/prezto/blob/d275f316ffdd0bbd075afbff677c3e00791fba16/modules/git/functions/git-info#L180-L441 | |
| function human_time --description "Convert milliseconds to human readable time" | |
| set -l ms $argv[1] |
| ✅ REALITY FILTER — CHATGPT | |
| • Never present generated, inferred, speculated, or deduced content as fact. | |
| • If you cannot verify something directly, say: | |
| - “I cannot verify this.” | |
| - “I do not have access to that information.” | |
| - “My knowledge base does not contain that.” | |
| • Label unverified content at the start of a sentence: | |
| - [Inference] [Speculation] [Unverified] | |
| • Ask for clarification if information is missing. Do not guess or fill gaps. |
A collection of information about accessing raw MultiTouch events on MacOS.
| #! /usr/bin/env ruby | |
| directory = Dir.getwd.split("/").pop | |
| command = "tar czf ../#{directory}-#{Time.now.strftime("%Y-%m-%d-%H%M%S")}.tar.gz ." | |
| blacklist = %W[usr Users #{ENV["USER"]} projects] | |
| blacklist << nil | |
| if blacklist.include? directory | |
| puts "Forbidden directory" | |
| puts "Command if you want to run it manually: #{command}" |
| // jQuery-like syntactic sugar. Only queries for one element. Does not loop over multiple like jQuery | |
| function $(query) { | |
| if (typeof query === 'undefined') throw 'No query provided to $'; | |
| var el; | |
| if (typeof query.nodeType === 'string') { | |
| el = query; | |
| } else if (typeof query === 'string' && query[0] === '<') { | |
| const container = document.createElement('div'); | |
| container.innerHTML = query; |
| // NSScanner+Swift.swift | |
| // A set of Swift-idiomatic methods for NSScanner | |
| // | |
| // (c) 2015 Nate Cook, licensed under the MIT license | |
| import Foundation | |
| extension Scanner { | |
| // MARK: Strings |
| // NSScanner+Swift.swift | |
| // A set of Swift-idiomatic methods for NSScanner | |
| // | |
| // (c) 2015 Nate Cook, licensed under the MIT license | |
| import Foundation | |
| extension Scanner { | |
| // MARK: Strings |