Skip to content

Instantly share code, notes, and snippets.

View angel-vladov's full-sized avatar

Angel Vladov angel-vladov

View GitHub Profile
@angel-vladov
angel-vladov / enable-sourcemaps.patch
Created September 27, 2018 20:33
Working Angular 6 SCSS Sourcemaps
--- node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/styles.js
+++ node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/styles.js
@@ -220,7 +220,7 @@ function getStylesConfig(wco) {
options: {
ident: 'embedded',
plugins: postcssPluginCreator,
- sourceMap: cssSourceMap
+ sourceMap: cssSourceMap ? 'inline' : false
}
},
@angel-vladov
angel-vladov / .bash_prompt
Last active October 15, 2019 11:55
Manjaro Gnome bash with Git branch
git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
if [[ ${EUID} == 0 ]] ; then
PS1='\[\033[01;31m\]\h\[\033[01;36m\] \W\[\033[01;31m\]\[\033[00;37m\]$(git_branch 2>/dev/null)\[\033[01;32m\]\$\[\033[00m\] '
else
PS1='\[\033[01;32m\]\u@\h\[\033[01;37m\] \W\[\033[01;32m\]\[\033[00;37m\]$(git_branch 2>/dev/null)\[\033[01;32m\]\$\[\033[00m\] '
fi
function Write-BranchName () {
try {
$branch = git rev-parse --abbrev-ref HEAD
if ($branch -eq "HEAD") {
# we're probably in detached HEAD state, so print the SHA
$branch = git rev-parse --short HEAD
Write-Host " ($branch)" -ForegroundColor "red"
}
else {
@angel-vladov
angel-vladov / metadata.json
Created June 6, 2021 13:22
Cardano Test Pool
{
"name": "Cardano Test Pool - A",
"description": "Cardano Test pool",
"ticker": "TEST-A",
"homepage": "https://github.com/abracadaniel/cardano-node-docker"
}