Skip to content

Instantly share code, notes, and snippets.

@alpap
alpap / gg.css
Created January 8, 2020 09:01
Open vivaldi://experiments -> Enable "Allow for using CSS modifications" -> Open Appearance section in settings -> Choose the folder you want to use -> Place your CSS files inside it -> Restart Vivaldi to see them in effect
/* Auto hide bookmark bar */
#browser:not(.color-behind-tabs-off) .toolbar-addressbar {
background: inherit;
}
#browser.tabs-top.address-top.bookmark-bar-top .toolbar-addressbar,
#browser.tabs-top.address-bottom.bookmark-bar-bottom .toolbar-addressbar,
#browser.tabs-top.address-bottom.bookmark-bar-top .toolbar-addressbar,
#browser.tabs-bottom.address-top.bookmark-bar-top .toolbar-addressbar,
@alpap
alpap / pipeline.gdsl
Created January 16, 2020 13:43 — forked from ggarcia24/pipeline.gdsl
GDSL supporting pipeline declarative
//The global script scope
def ctx = context(scope: scriptScope())
//What things can be on the script scope
contributor(ctx) {
method(name: 'pipeline', type: 'Object', params: [body: Closure])
property(name: 'params', type: 'org.jenkinsci.plugins.workflow.cps.ParamsVariable')
property(name: 'env', type: 'org.jenkinsci.plugins.workflow.cps.EnvActionImpl.Binder')
property(name: 'currentBuild', type: 'org.jenkinsci.plugins.workflow.cps.RunWrapperBinder')
property(name: 'scm', type: 'org.jenkinsci.plugins.workflow.multibranch.SCMVar')
@alpap
alpap / git-prompt.sh
Created May 21, 2020 09:58
mig-gw look like zsh main theme
# set window title
PS1='\[\033]0;Git-Bash: ${PWD//[^[:ascii:]]/?}\007\]'
PS1="$PS1"'\n' # new line
PS1="$PS1"'\[\033[32m\]' # change to green
PS1="$PS1"'➜ ' # ➜
PS1="$PS1"'\[\033[0m\]' # change color
PS1="$PS1"'\[\033[34m\]' # change to green
PS1="$PS1"' \w' # change color
PS1="$PS1"'\[\033[0m\]' # change color # for detection by MSYS2 SDK's bash.basrc
@alpap
alpap / example.go
Created June 7, 2020 10:51 — forked from yanmhlv/example.go
JSONB in gorm
package main
import (
"database/sql/driver"
"encoding/json"
"github.com/jinzhu/gorm"
_ "github.com/lib/pq"
)
local ret_status="%(?:%{$fg_bold[green]%} ▶ :%{$fg_bold[red]%} ▶ )"
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
PROMPT='${ret_status} %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
RPS1="${return_code}" # ❦☙♨☁⚠⛬
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}%{$fg[yellow]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%} %{$fg[red]%}♨"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%}"
<!DOCTYPE html>
<html data-darkreader-mode="dynamic" data-darkreader-scheme="dark">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Accidental Quality</title>
<meta name="viewport" content="width=device-width,initial-scale=1" />
<style>
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,700;1,600&display=swap');