Skip to content

Instantly share code, notes, and snippets.

@praveen-palanisamy
praveen-palanisamy / wp-backup-script.sh
Created August 19, 2018 16:25
WordPress backup script: A bash script to compress and backup a complete wordpress site including the database
#!/usr/bin/env bash
# wp-backup-script.sh - Creates a complete, compressed backup of your WordPress database and files. You can then transfer it to your preferred location (local disk, cloud backup storage etc)
# Author: Praveen Palanisamy | Twitter: @PraveenPsamy | GitHub: https://github.com/praveen-palanisamy| Website: https://praveenp.com
# Dependencies: mailutils
# 0. Change the variables below to suit your environment
WP_FOLDER="$HOME/public_html/" # Folder where your wordpress root installation is
BACKUP_FOLDER="$HOME/backups" # Folder where you want to store the backups
@themagicalmammal
themagicalmammal / Optimizations_Artix.md
Last active January 18, 2025 01:58
Set of optimizations, I use on my Artix Setup
@Maharshi-Pandya
Maharshi-Pandya / contemplative-llms.txt
Last active January 18, 2025 01:53
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
@HenkPoley
HenkPoley / KEYDB.cfg
Last active January 18, 2025 01:51
KEYDB.cfg of 2017 september 2nd - 14:04:55, originally from http://labdv.com/aacs/ . downloaded from https://web.archive.org/web/20170902140455id_/http://www.labdv.com/aacs/KEYDB.cfg - you can use it with VLC 2.2.4 (not newer! - http://download.videolan.org/pub/videolan/vlc/2.2.4/ ) and libaacs.dll from https://vlc-bluray.whoknowsmy.name
; KEYDB.cfg
; 2017-09-02 16:04:54
;
; server: http://www.labdv.com/aacs
; processing keys: 18 (18 from doom9.org forum)
; host certificates: 8 (7 from doom9.org forum)
; disc VUK keys: 24010 keys for 23999 discs (0 from doom9.org forum)
; processing keys
| PK | 0x810827A76E5B2CC1685E3217A23E2186 ; DK_V01-V12
@zhangyoufu
zhangyoufu / extract-installbuilder.tcl
Created August 10, 2020 10:18
extract password-protected InstallBuilder installer
#!./tclkit
## prepare runtime environment
proc init {} {
## mount optional.pak (for tcltwofish)
set optionalPak installbuilder/paks/optional.pak
vfs::mk4::Mount $optionalPak $optionalPak -readonly
## adjust library search path
set ::auto_path [list $tcl::kitpath/lib/tcl$::tcl_version $tcl::kitpath/lib $tcl::kitpath/libraries $optionalPak/linux-x64 $tcl::kitpath]
@unitycoder
unitycoder / teams-ux-notes.md
Last active January 18, 2025 01:38
Whats Wrong With Microsoft Teams - UX

Whats Wrong With Microsoft Teams

  • not in any order, and i know few of these have been fixed, like having conference in separate window
  • This first list is for Classic version, New Teams specific are in the gist below (but new Teams has most of the classic bugs still too)

Chat

  • If you typed message in some chat, then alt tab and go to another chat, that message is still in the chatbox (wrong room)
  • if there is many single messages, with link on each, tooltip emoji menu popups and blocks your view to previews item (and you can accidentally click it if tried to click the previous link)
  • if paste image to messagebox, messagebox stays very small 2 rows.. so cannot see anything (or wait, it expands after you alt tab away..)
  • channel mention doesnt show alerts for people by default
  • replies minimize automatically if leave chat open for a while (so context is lost where you left it)
@RoboPhred
RoboPhred / monaco-react-tsx.ts
Created April 6, 2018 23:54
Monaco playground snippet for TSX support
// The Monaco Editor can be easily created, given an
// empty container and an options literal.
// Two members of the literal are "value" and "language".
// The editor takes the full size of its container.
// Important Bit #1: Typescript must see the 'file' it is editing as having
// a .tsx extension
const modelUri = monaco.Uri.file("foo.tsx")
// Important Bit #2
@trey
trey / .eleventy.js
Last active January 18, 2025 01:35
Display Image Exif Data in 11ty
const responsiveImage = require('./src/_includes/shortcodes/responsive-image');
const exifData = require('./src/_includes/shortcodes/exif-data');
// …
module.exports = function(eleventyConfig) {
// …
eleventyConfig.addShortcode('responsiveImage', responsiveImage);
@inkss
inkss / #readme.md
Last active January 18, 2025 01:27
IPV6 直播源

个人向直播源

精简了上游直播源内容,仅保留个人所需的。

一、订阅地址

TVM3U

https://gist.githubusercontent.com/inkss/0cf33e9f52fbb1f91bc5eb0144e504cf/raw/ipv6.m3u
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active January 18, 2025 01:27
Conventional Commits Cheatsheet

Conventional Commit Messages starline

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs

Commit Message Formats

Default