Skip to content

Instantly share code, notes, and snippets.

View HersonHN's full-sized avatar

Herson HersonHN

View GitHub Profile
# 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 22:16
Theme color configuration with SASS
$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 April 11, 2020 07:31
nginx configuration
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 February 8, 2019 07:59
Global Search in 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