Skip to content

Instantly share code, notes, and snippets.

@gddabe
gddabe / _colors.scss
Last active September 23, 2020 13:47
css starter for typography projects
:root {
/* main colors */
--color-primary: #286bf4;
--color-primary-light: color-mod(var(--color-primary) tint(15%));
--color-primary-dark: color-mod(var(--color-primary) shade(15%));
--color-primary-bg: color-mod(var(--color-primary) alpha(20%));
--color-accent: #f5414f;
--color-accent-light: color-mod(var(--color-accent) tint(15%));
--color-accent-dark: color-mod(var(--color-accent) shade(10%));
@gddabe
gddabe / index.html
Created September 14, 2020 05:46
html fade header line
<div class="fade-line" />
@gddabe
gddabe / Solarized Dark.md
Last active May 29, 2023 08:22
Vivaldi Solarized Theme

Solarized Dark

Background: 002B36
Foreground: d6dbdb
Highlight: 1ebcc5
Accent: 003847
@gddabe
gddabe / karabiner.json
Created June 6, 2020 13:13
Karabiner caps lock to hyperkey
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": false,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
@gddabe
gddabe / Turn off packet signing on a macOS client.md
Created May 6, 2020 12:05
Turn off packet signing on a macOS client

fix mac can't disconnect from smb share issue

sudo vi /etc/nsmb.conf

[default]
signing_required=no

Disconnect and then reconnect any mounted SMB shares to make the changes take effect.

@gddabe
gddabe / cmd
Created May 4, 2020 12:40
omv5 duplicate smb fix, change /etc/avahi/services/smb.service and /etc/samba/smb.conf
sudo service smbd restart
@gddabe
gddabe / Mactype Noto Sans CJK for Win10.md
Created September 23, 2019 03:07
Mactype Noto Sans CJK for Win10
@gddabe
gddabe / dsm installation cmd
Last active November 30, 2018 13:36
dsm3617
diskutil list
#usually disk2s2, s1 is EFI partition
diskutil unmount /dev/disk2s2
sudo dd if=/Users/xxx/Downloads/DSM3617JUN102B/synoboot.img of=/dev/disk2 bs=1M
edit grub.cfg on usb root, set correct vid & pid, sn mac1 is optional
set vid=0x0781
set pid=0x5571
set sn=A8ODN02468
set mac1=0011322CA603
@gddabe
gddabe / pki_setup.md
Created March 21, 2017 15:10 — forked from cbusbey/pki_setup.md
PKI Setup for QuickFIX/Go TLS Example config

The below was guided by the Eric Urban's excellent tutorial at http://www.hydrogen18.com/blog/your-own-pki-tls-golang.html

git clone https://github.com/OpenVPN/easy-rsa.git example-ca
cd example-ca/easyrsa3
./easyrsa init-pki
...
./easyrsa build-ca
...
./easyrsa build-server-full localhost nopass
@gddabe
gddabe / osx.sh
Last active February 16, 2016 17:16
added new general settings
#!/bin/bash
# General
# ------------------------------------------------------------------------------
echo "Disable .DS_Store files on network and usb volumes"
defaults write com.apple.desktopservices DSDontWriteNetworkStores -boolean true
defaults write com.apple.desktopservices DSDontWriteUSBStores -boolean true
echo "Enable dark mode and reduce transparency"
defaults write .GlobalPreferences AppleInterfaceStyle -string "Dark"