Skip to content

Instantly share code, notes, and snippets.

@alpap
alpap / alp.css
Created January 4, 2020 15:49
css classes for easier everyday styles
.shadow {
box-shadow: 0px 0px 4px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.shadow-md {
box-shadow: 0px 0px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.shadow-lg {
box-shadow: 0px 0px 16px 0 rgba(0, 0, 0, 0.2),
@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"
)
<!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');