Skip to content

Instantly share code, notes, and snippets.

@SergLam
SergLam / locale-capital.json
Created Jan 15, 2020
Locale - country capital city datasheet (usefull for map centring)
View locale-capital.json
[
{"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 Mar 13, 2020
Install Time Machine service on CentOS 7
View tmbackup.sh
# 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
@LoranKloeze
LoranKloeze / whatsapp_phone_enumerator_floated_div.js
Last active Oct 15, 2021
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses (floated div)
View whatsapp_phone_enumerator_floated_div.js
/****** I've created a Chrome extension from this script, take a look at https://github.com/LoranKloeze/WhatsAllApp ********/
/******************** Keep in mind: this script is frozen. Check the url mentioned above. **********************************/
/******************** Keep in mind: this script is frozen. Check the url mentioned above. **********************************/
/******************** Keep in mind: this script is frozen. Check the url mentioned above. **********************************/
/******************** Keep in mind: this script is frozen. Check the url mentioned above. **********************************/
/******************** Keep in mind: this script is frozen. Check the url mentioned above. **********************************/
/******************** Keep in mind: this script is frozen. Check the url mentioned above. **********************************/
// Was this script of any use for you? Please consider a donation. It has taken me a lot of time to figure this
@rmoff
rmoff / foo.md
Last active Jun 7, 2021
cx_Oracle install on MacOS
View foo.md
  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 Oct 16, 2021
MDADM and LVM cheat sheet
View gist:52ecc9f18efb32c68d18

mdadm

Glossary:

  • md: multiple devices
command description
cat /proc/mdstat show status of all raids
mdadm --detail /dev/md0 detailed status of raid md0