Skip to content

Instantly share code, notes, and snippets.

View stalinkay's full-sized avatar
💭
Ominverse 🌌

Stalin Kay stalinkay

💭
Ominverse 🌌
View GitHub Profile
/db
/plugins
/uploads
/logs
@dannberg
dannberg / obsidian-daily-note-template.txt
Last active July 21, 2024 18:43
Dann Berg's Daily Note Template for Obsidian. Uses Dataview & Templater plugins. Should be saved as a Markdown file in Obsidian. Read the full tour: https://dannb.org/blog/2022/obsidian-daily-note-template/
---
created: <% tp.file.creation_date() %>
---
tags:: [[+Daily Notes]]
# <% moment(tp.file.title,'YYYY-MM-DD').format("dddd, MMMM DD, YYYY") %>
<< [[Timestamps/<% tp.date.now("YYYY", -1) %>/<% tp.date.now("MM-MMMM", -1) %>/<% tp.date.now("YYYY-MM-DD-dddd", -1) %>|Yesterday]] | [[Timestamps/<% tp.date.now("YYYY", 1) %>/<% tp.date.now("MM-MMMM", 1) %>/<% tp.date.now("YYYY-MM-DD-dddd", 1) %>|Tomorrow]] >>
---
@tasercake
tasercake / pyenv_macos_virtualenv.md
Last active February 18, 2024 22:22
Setting up pyenv virtualenvs on a Mac (with Homebrew)

Install Pyenv & Pyenv-virtualenv

Install Python build dependencies

xcode-select --install
brew install openssl readline sqlite3 xz zlib

Install using Homebrew

DELETE FROM wp_termmeta WHERE meta_id=0;
DELETE FROM wp_terms WHERE term_id=0;
DELETE FROM wp_term_taxonomy WHERE term_taxonomy_id=0;
DELETE FROM wp_commentmeta WHERE meta_id=0;
DELETE FROM wp_comments WHERE comment_ID=0;
DELETE FROM wp_links WHERE link_id=0;
DELETE FROM wp_options WHERE option_id=0;
DELETE FROM wp_postmeta WHERE meta_id=0;
DELETE FROM wp_users WHERE ID=0;
DELETE FROM wp_posts WHERE ID=0;
@dominicusin
dominicusin / do-release-upgrade
Last active May 27, 2023 23:11
do-release-upgrade
apt-get upgrade -y
apt-get dist-upgrade -y
apt-get install -y update-manager-core
iptables -I INPUT -p tcp --dport 1022 -j ACCEPT
sudo sed -i 's/Prompt=.*/Prompt=normal/' /etc/update-manager/release-upgrades
rm /var/run/reboot-required*
do-release-upgrade --frontend=DistUpgradeViewNonInteractive
#"DistUpgradeViewText", "DistUpgradeViewGtk", "DistUpgradeViewKDE"
@dkvadratu
dkvadratu / http_headers_security.htaccess
Last active June 17, 2024 15:44
{HTACCESS} HTTP headers for security in .htaccess file
# Check your website headers here: https://www.serpworx.com/check-security-headers/ or https://gf.dev/
# This configuration works for WP, WC on LiteSpeed server. Be careful. Test site after installing. All lines are explained are in serpworx.com tester.
# More docs:
# https://www.netsparker.com/whitepaper-http-security-headers/#XFrameOptionsHTTPHeader
# https://owasp.org/www-project-secure-headers/
# https://www.keycdn.com/blog/http-security-headers
# WordPress plugin for Headers setup https://wordpress.org/plugins/http-headers/
# Main security options in .htaccess file:
@anshulsahni
anshulsahni / deployment_aliases.sh
Last active January 3, 2023 10:27
List of different kinds of aliases I use
### deployment tool aliases
## docker
# docker image
alias dckils='docker image ls'
alias dckilsa='docker image ls -a'
# docker container
alias dckcls='docker container ls'
@michaelbragg
michaelbragg / docker-compose.yml
Created July 18, 2020 06:08
Docker | WordPress | Mailhog: Add the ability to send email from WordPress and have it caught in Mailhog.
volumes:
db_data:
version: '3.7'
services:
mysql:
container_name: mysql
image: mysql:5.7
volumes:
@josemarimanio
josemarimanio / install_pyenv_mac_zsh.rst
Created May 13, 2020 12:13
Installing pyenv on macOS for Zsh using Homebrew