Skip to content

Instantly share code, notes, and snippets.

@spff
spff / README.md
Last active November 5, 2021 07:16 — forked from int128/README.md
Example of Envoy TCP Proxy With SSL Termination
@spff
spff / clickhouse-get-tables-size.sql
Last active November 26, 2024 02:17 — forked from sanchezzzhak/clickhouse-get-tables-size.sql
clickhouse get tables size
SELECT
database,
table,
formatReadableSize(sum(bytes)) as size
FROM system.parts
WHERE active
GROUP BY database, table
ORDER BY sum(bytes)
@spff
spff / components.js
Created August 9, 2020 09:48 — forked from steveclarke/components.js
Globally register your custom components in Quasar. Add this file to your /boot dir
// Globally register all base components for convenience, because they
// will be used very frequently. Components are registered using the
// PascalCased version of their file name.
import upperFirst from 'lodash/upperFirst'
import camelCase from 'lodash/camelCase'
export default async ({ Vue }) => {
console.log('loading components')
// https://webpack.js.org/guides/dependency-management/#require-context
@spff
spff / gist:3846be7268d5ee6bb72014a1fb835cb9
Last active August 11, 2019 04:23 — forked from singhabhinav/gist:132b8196abac026b43fa
Install SSL certificate in Nginx (Using .crt & .ca-bundle certificate files)
Step 0 - Get three files from sslforfree
Step 1 - Create .crt file
echo -e "`cat domainname.crt`\n`cat domainname.ca-bundle.crt`" > domainname-ssl-bundle.crt
Step 2-
Add lines for ssl_certificate in nginx configuration
@spff
spff / git checkout-all-branches.sh
Created November 29, 2017 05:39
git checkout-all-branches
#!/bin/bash
#Whenever you clone a repo, you do not clone all of its branches by default.
#If you wish to do so, use the following script:
for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master `; do
git branch --track ${branch#remotes/origin/} $branch
done