Skip to content

Instantly share code, notes, and snippets.

-- === DDL
CREATE TABLE categories (
id INT PRIMARY KEY AUTO_INCREMENT,
name CHAR(50) NOT NULL
);
CREATE TABLE items (
id INT PRIMARY KEY AUTO_INCREMENT,
name CHAR(50) NOT NULL,
created_at TIMESTAMP,
@protorob
protorob / artowoo.sh
Last active May 4, 2024 11:52
Bash Sript to Automate the Configuration of the Artomultiplo's Woocommerce Starter Kit
#!/bin/bash -e
# Start allways the same
wpuser='yourusername'
wpuseremail='yourname@yourdomain.tld'
wpuserpass=$(date +%s | sha256sum | base64 | head -c 16)
dpprefix=$(date +%s | sha256sum | base64 | head -c 6)
clear
@nauhygon
nauhygon / Build Emacs for Windows 64bit with Native Compilation.md
Last active May 4, 2024 11:51
Step-by-step instructions to build Emacs for Windows 64 bit with MSYS2 and MinGW-w64. Now `native-comp` supported.

Build Emacs-w64 with MSYS2/MinGW-w64 with Native Compilation

Instructions are modified from emacs-w64 Wiki page by zklhp. Many thanks for sharing!

  1. Download the latest MSYS2 from this download page.

  2. Install MSYS2 to, for example, C:\msys2 (make sure no space in path to avoid unwanted problems).

  3. Optionally prettify the MSYS2 console mintty with ~/.minttyrc to make it more pleasing to eyes. Thanks to this awesome theme!

@awwx
awwx / mobserve.cljc
Last active May 4, 2024 11:51
observe Missionary task and flow events
;; SPDX-License-Identifier: EPL-2.0 OR MIT
(ns mobserve
(:require
[missionary.core :as m])
(:import
missionary.Cancelled))
;; Encapsulate differences between Clojure and ClojureScript
;; on how IFn and IDeref are implemented.
@varqox
varqox / install_debian_with_debootstrap_howto.md
Last active May 4, 2024 11:48
Instructions how to install Debian using debootstrap
@DomPizzie
DomPizzie / README-Template.md
Last active May 4, 2024 11:44
A simple README.md template

Project Title

Simple overview of use/purpose.

Description

An in-depth paragraph about your project and overview of use.

Getting Started

@jannegpriv
jannegpriv / installation_steps_k3s_dashboard.md
Last active May 4, 2024 11:43
Installation steps for K3s dashboard.

Installation steps for K3s dashboard

The steps below requires that you have followed the installation steps for installing K3s on RPIs.

NOTE: The following files can be found in the following repository.

Installation steps for K3s dashboard. On master node, create a folder called dashboard:

@titanism
titanism / how-to-list-paypal-subscriptions-and-billing-agreements-recurring-payments-endpoint-api-workaround-hack-fix.md
Created January 24, 2023 19:04
How to list all PayPal subscriptions and billing agreements and recurring ids API retrieve fetch all

How to list all PayPal subscriptions and billing agreements and recurring ids API retrieve fetch all

  1. Go to https://www.paypal.com/billing/subscriptions.

  2. Open Devtools and run the following script:

const arr = [];

const interval = setInterval(function() {
@Voloshin-Sergei
Voloshin-Sergei / commit.md
Created November 3, 2020 13:10
Шпаргалка по оформлению коммитов

Требования к именам коммитов

  • Названия коммитов должны быть согласно гайдлайну
  • Должен использоваться present tense ("add feature" not "added feature")
  • Должен использоваться imperative mood ("move cursor to..." not "moves cursor to...")

Примеры имен коммитов

init: - используется для начала проекта/таска. Примеры:
  • init: start youtube-task
  • init: start mentor-dashboard task
@Juanito99
Juanito99 / Get-SharesWithShareAndNTFSPermissions
Last active May 4, 2024 11:31
List File-Shares with Share and NTFS Permissions in PowerShell
<#
License terms
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
#>
#get all Shares