This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
00:00 ●━━━━━━─────── 10:01 | |
⇆ㅤㅤㅤㅤ◁ㅤㅤ❚❚ㅤㅤ▷ㅤㅤㅤ↻ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sysfs - virtual filesystem that the Linux kernel uses to export information about kernel objects to processes running in user space | |
mount ‑t sysfs sysfs /sys # mount sysfs | |
# udev is responsible for the dynamic device management needed for hot plugging devices. Information about configured and active devices is contained in the /dev virtual filesystem | |
# search man page only in title | |
man -af | |
# update man pages | |
makewhatis (RHEL) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to invoke the REPL | |
iex | |
# output a simple string | |
IO.puts "Hello world" | |
# to run a file | |
elixirc test.ex | |
# always use snake case |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The Eastern Time Zone is an area 5 hours behind Greenwich Mean Time ( GMT-5 ) during the winter months (referred to as EST) and 4 hours behind Greenwich Mean Time ( GMT-4 ) during the summer months (referred to as EDT) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST "localhost:9200/stackoverflow/_search?size=0" -H 'Content-Type: application/json' -d' | |
{ | |
"query": { | |
"query_string": { | |
"query": "tags:kibana OR tags:javascript" | |
} | |
}, | |
"aggs": { | |
"sample": { | |
"sampler": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create an index | |
CREATE INDEX ON :Person(name) | |
# drop an index | |
DROP INDEX ON :Person(name) | |
# ensure unique names | |
CREATE CONSTRAINT ON (n:Person) ASSERT n.code IS UNIQUE | |
# list all indices |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lsb_release -a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo usermod -a -G groupname username | |
sudo chmod g+w myfolder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# node-reinstall | |
# credit: http://stackoverflow.com/a/11178106/2083544 | |
## program version | |
VERSION="0.0.13" | |
## path prefix | |
PREFIX="${PREFIX:-/usr/local}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo lsof -i:80 |