Skip to content

Instantly share code, notes, and snippets.

@asadadams
asadadams / electron-reset.css
Created November 19, 2020 11:32 — forked from Splode/electron-reset.css
Disable selection/highlighting and element draggin in Electron
/* disable selection */
:not(input):not(textarea),
:not(input):not(textarea)::after,
:not(input):not(textarea)::before {
-webkit-user-select: none;
user-select: none;
cursor: default;
}
input, button, textarea, :focus {
outline: none;
@asadadams
asadadams / wordpress
Last active May 2, 2020 12:41
Wordpress lookup
FUNCTIONS
bloginfo('title') - Website Title
bloginfo('description') - Website tagline
get_header() - get header.php
get_footer() - get footer.php
wp_head() - let wordpress to load whatever it needs in <head/>
wp_footer() - load all js footers and files needed in the footer
have_posts() - no of posts
the_post() - keep track of individual post
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install ntfs-3g
sudo apt-get install exfat-utlis exfat-fuse
sudo apt-get install samba samba-common-bin
@asadadams
asadadams / docker
Created April 12, 2020 08:48
Docker commands
docker images - Show all images on system
docker pull [image name] - Pull image
docker rmi [image id] - Remove image
docker ps -a - show all running containers
docker run -it -d [image name] - Run image as container