Skip to content

Instantly share code, notes, and snippets.

View fix-spotlight-indexing.sh
# source:
# https://discussions.apple.com/message/32354266#message32354266
sudo mdutil -Ea
sudo mdutil -ai off
sudo mdutil -ai on
@HersonHN
HersonHN / _colors.scss
Last active May 23, 2020
Theme color configuration with SASS
View _colors.scss
$foreground: #16161d; // Eigengrau
$background: #FFFFFF;
@mixin color-theme($fg, $bg, $link, $link-hover) {
color: $fg !important;
background-color: $bg !important;
a[href] { color: $link !important };
a[href]:hover { color: $link-hover !important };
@HersonHN
HersonHN / nginx.conf
Created Apr 11, 2020
nginx configuration
View nginx.conf
events {
worker_connections 1024; # increase if you have lots of clients
accept_mutex on; # "on" if nginx worker_processes > 1
use epoll; # enable for Linux 2.6+
}
http {
map $sent_http_content_type $cacheable_types {
"text/css" "60d";
@HersonHN
HersonHN / GlobalSearch.vim
Last active Feb 8, 2019
Global Search in VIM
View GlobalSearch.vim
function! GlobalSearch()
let text = escape(input("what do you want to search?: "), '\\/')
if text == ""
echo "" | return
endif
let extension = escape(input("Wich extension? (* for all): "), '\\/')
if extension == ""
echo "" | return
endif
You can’t perform that action at this time.