- C-a == Ctrl-a
- M-a == Alt-a
:q close
:w write/saves
:wa[!] write/save all windows [force]
:wq write/save and close
import { Component } from '@angular/core'; | |
import { NgModel } from '@angular/forms'; | |
import * as moment from 'moment'; | |
@Component({ | |
selector: "my-datepicker-demo", | |
template: ` | |
<div class="col-md-7 separator-right"> | |
<h3>Configuration Options Tester</h3> | |
<form> | |
<div class="col-md-12"> |
function mul(val1) { | |
if(val1) { | |
return (val2) => { | |
if(val2) { | |
return mul(val1*val2); | |
} else { | |
return val1; | |
} | |
} | |
} else { |
/* | |
Copy this into the console of any web page that is interactive and doesn't | |
do hard reloads. You will hear your DOM changes as different pitches of | |
audio. | |
I have found this interesting for debugging, but also fun to hear web pages | |
render like UIs do in movies. | |
*/ | |
const audioCtx = new (window.AudioContext || window.webkitAudioContext)() |
# vim: set expandtab sw=4 tabstop=4: | |
# *color* 'area' 'fgcolor' 'bgcolor' '[attributes]' | |
# general | |
color default 15 0 | |
color cursor 15 241 | |
color title-focus 242 221 | |
color title-blur 242 221 | |
color delimiter 213 default | |
color author 156 default |
// Credit to : https://dev.to/akhilarjun/one-line-dark-mode-using-css-24li | |
html[theme='dark-mode'] { | |
filter: invert(1) hue-rotate(180deg); | |
} |
#zsh | |
apt install zsh | |
chsh -s /bin/zsh | |
#oh-my-zsh | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
#zsh-autosuggestions | |
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions |
# Mount all partitions after chroot to fully load the os | |
chroot /dev/sda7 | |
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done | |
# install uninstall gnome shell extension | |
gnome-extensions uninstall [email protected] | |
gnome-extensions install [email protected] | |
#To disable gnome file indexing/tracker | |
gsettings set org.freedesktop.Tracker.Miner.Files enable-monitors false |
/** | |
* Copyright 2019 Google LLC. | |
* SPDX-License-Identifier: Apache-2.0 | |
*/ | |
function getEnvironment() { | |
var environment = { | |
spreadsheetID: "<REPLACE WITH YOUR SPREADSHEET ID>", | |
firebaseUrl: "<REPLACE WITH YOUR REALTIME DB URL>" | |
}; |
# Only listen on http; disable ajp and https | |
web: java -jar jenkins.war --httpPort=$PORT --ajp13Port=-1 --httpsPort=-1 |