Skip to content

Instantly share code, notes, and snippets.

@ali80
ali80 / test.service
Created September 8, 2021 12:21
create systemd service rpi
[Unit]
Description=Test Service
# After=multi-user.target
[Service]
WorkingDirectory=/home/pi/
User=pi
Environment=DISPLAY=:0
Environment=XAUTHORITY=/home/pi/.Xauthority
Type=simple
@ali80
ali80 / vscode_custom.css
Created April 14, 2021 11:42
Custom CSS for VSCode tabbar fix
.tabs-and-actions-container .editor-actions {
display: none !important;
position: absolute;
top: 35px;
right: 0;
z-index: 1;
background-color: #2D2D2D;
}
.tabs-and-actions-container:hover .editor-actions {
display: flex !important;
@ali80
ali80 / mongodb_cheat_sheet.md
Last active March 15, 2021 16:40 — forked from bradtraversy/mongodb_cheat_sheet.md
MongoDB Cheat Sheet

MongoDB Cheat Sheet

short commands

show dbs

command desc
show dbs
db Show Current Database
use acme create/switch db
show collections