Skip to content

Instantly share code, notes, and snippets.

@tomysmile
tomysmile / mac-setup-redis.md
Last active March 18, 2024 22:12
Brew install Redis on Mac

type below:

brew update
brew install redis

To have launchd start redis now and restart at login:

brew services start redis
@magicznyleszek
magicznyleszek / multiply-blending-mode-to-png.md
Created August 20, 2014 11:27
Multiply blending mode to PNG in Photoshop
  1. copy your image (Ctrl+A and Ctrl+C)
  2. make a new document-sized pure-black layer behind it
  3. group the black layer and yor image together
  4. add mask to the group
  5. enter mask edit mode (alt+click on the mask icon/thumbnail)
  6. paste your image in the mask (b/w) and then invert it.
  7. save it as a 24-bit transparent PNG
@rmoff
rmoff / foo.md
Last active January 5, 2024 17:17
cx_Oracle install on MacOS
  1. Download Instant Client:
  • instantclient-basic-macos.x64-11.2.0.4.0.zip
  • instantclient-sdk-macos.x64-11.2.0.4.0.zip
  • instantclient-sqlplus-macos.x64-11.2.0.4.0.zip
  1. Unzip and move to /opt

  2. Create symlink

@plepe
plepe / gist:52ecc9f18efb32c68d18
Last active October 23, 2023 08:50
MDADM and LVM cheat sheet

mdadm

Glossary:

  • md: multiple devices
command description
cat /proc/mdstat show status of all raids
mdadm --detail /dev/md0 detailed status of raid md0
@SergLam
SergLam / locale-capital.json
Created January 15, 2020 15:00
Locale - country capital city datasheet (usefull for map centring)
[
{"locale_key": "bs", "Marathi": "Bosnian",
"capital": {
"name": "New Delhi",
"latitude": 28.6357600,
"longitude": 77.2244500
}
},
{"locale_key": "ee_TG", "Marathi": "Ewe (Togo)",
"capital": {
@aidmax
aidmax / tmbackup.sh
Last active March 13, 2020 10:50
Install Time Machine service on CentOS 7
# Install Time Machine service on CentOS 7
# Updated for netatalk 3.1.12
# install required packages for compiling from source
yum install -y rpm-build gcc make wget
# install Perl-IO-socket dependency for netatalk 3.1.12
yum install -y perl-IO-Socket-INET6 perl-interpreter perl-generators libxslt
# install netatalk