Skip to content

Instantly share code, notes, and snippets.

module.exports = {
content: ["./src/**/*.{jsx,js}"],
theme: {
extend: {},
},
plugins: [],
}
@droid95
droid95 / content-single-product.php
Created January 13, 2022 19:49 — forked from dompascal/content-single-product.php
Woocommerce - Single Product Content Template
<?php
/**
* The template for displaying product content in the single-product.php template
*
* Override this template by copying it to yourtheme/woocommerce/content-single-product.php
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.6.4
*/
@droid95
droid95 / cdn-nginx.conf
Created November 12, 2021 05:07 — forked from alsyundawy/cdn-nginx.conf
Nginx CDN Server Configuration
server {
listen 80;
server_name cdn.domain.org;
root /usr/share/nginx/cdn
location / {
proxy_pass http://domain.org;
proxy_set_header Host $host;
proxy_set_header True-Client-IP $remote_addr;
@droid95
droid95 / gist:55fa71810ede51e394c0f444cbca1bb9
Created October 14, 2021 04:01 — forked from digitaljhelms/gist:4287848
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@droid95
droid95 / 20190417131115_test-setup.ts
Created October 14, 2021 03:02 — forked from jukkatupamaki/20190417131115_test-setup.ts
How to use Knex.js in a TypeScript project
import { Knex } from 'knex'
export async function up(knex: Knex): Promise<any> {
await knex.schema.createTable('test_setup', (table: Knex.TableBuilder) => {
table.integer('foobar');
});
}
export async function down(knex: Knex): Promise<any> {
await knex.schema.dropTable('test_setup');
@droid95
droid95 / postgres-cheatsheet.md
Created September 29, 2021 13:38 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
@droid95
droid95 / .gitlab-ci.yml
Created March 29, 2021 10:09 — forked from lmcarreiro/.gitlab-ci.yml
GitLab CI .gitlab-ci.yml example
stages:
- build
- test
- deploy
variables:
# from https://storage.googleapis.com/kubernetes-release/release/stable.txt
K8S_STABLE_VERSION_URL: https://storage.googleapis.com/kubernetes-release/release/v1.10.4/bin/linux/amd64/kubectl
build:
@droid95
droid95 / .gitlab-ci.yml
Created March 29, 2021 10:06 — forked from florentchauveau/.gitlab-ci.yml
GitLab CI yaml file for building docker images
# This is a GitLab CI configuration to build the project as a docker image
# The file is generic enough to be dropped in a project containing a working Dockerfile
# Author: Florent CHAUVEAU <florent.chauveau@gmail.com>
# Mentioned here: https://blog.callr.tech/building-docker-images-with-gitlab-ci-best-practices/
# do not use "latest" here, if you want this to work in the future
image: docker:18
stages:
- build
@droid95
droid95 / nginx_deployment.yaml
Created March 21, 2021 20:37 — forked from petitviolet/nginx_deployment.yaml
sample Nginx configuration on Kubernetes using ConfigMap to configure nginx.
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-conf
data:
nginx.conf: |
user nginx;
worker_processes 3;
error_log /var/log/nginx/error.log;
events {
@droid95
droid95 / zookeeper.yaml
Created March 20, 2021 20:39 — forked from rocketraman/zookeeper.yaml
Kubernetes service and deployment descriptor for Zookeeper
apiVersion: v1
kind: Service
metadata:
name: zk
labels:
app: zk
tier: backend
spec:
# Lookup: dig -t srv _client._tcp.zk.default.svc.cluster.local
ports: