Skip to content

Instantly share code, notes, and snippets.

@Vitexus
Vitexus / flexibee-evidencies.sql
Created November 18, 2017 01:20
SQL Queries For Each FlexiBee evidence
This file has been truncated, but you can view the full file.
############################################ analyza-nakupu ###########################################################
/* centralServer LOG*/ select hodnota from cssetting where klic = $1
/* centralServer DETAIL*/ parameters: $1 = 'ACCESS_CONTROL_ALLOW_ORIGIN'
/* centralServer LOG*/ select a.attname from pg_class c join pg_attribute a on a.attrelid = c.oid join pg_type t on t.oid = a.atttypid where relname = 'csuzivatel' and a.attnum > 0 and not a.attisdropped order by a.attnum
/* centralServer LOG*/ SELECT max(dbversion) FROM dbversion WHERE needreimport = 't'
@anvk
anvk / psql_useful_stat_queries.sql
Last active July 12, 2024 11:28
List of some useful Stat Queries for PSQL
--- PSQL queries which also duplicated from https://github.com/anvk/AwesomePSQLList/blob/master/README.md
--- some of them taken from https://www.slideshare.net/alexeylesovsky/deep-dive-into-postgresql-statistics-54594192
-- I'm not an expert in PSQL. Just a developer who is trying to accumulate useful stat queries which could potentially explain problems in your Postgres DB.
------------
-- Basics --
------------
-- Get indexes of tables
@abhijeetchopra
abhijeetchopra / 0-README.md
Last active September 2, 2024 05:37
Creating automatic scheduled backup copies of your Google Sheets using Google Apps Script

How to "Schedule Automatic Backups" of your Google Sheets

This tutorial demonstrates how to use Google Apps Script to:

  • Create copies of the Google Sheet in the desired destination folder automatically at set intervals.

  • Append the time stamp with each backup file's name.

  • Adjust time trigger for backing up every day/hour/minute.

@hackenbruder
hackenbruder / govdata-js-example.js
Created August 30, 2015 20:17
Příklad použití GovData Javascript SDK
GovData.findEntityByNumber('00006947',
function(entity) {
console.info('Název:', entity.getName());
if(entity.hasVAT()) {
console.info('Je plátcem DPH.');
var vat = entity.getVAT();
if(vat.hasAccounts()) {
var accounts = vat.getAccounts();
@labnol
labnol / google-apps-script.md
Last active September 11, 2024 16:03 — forked from junaidk/resources.md
How to Learn Google Apps Script

Learning Google Apps Script

Find the best resources for learning Google Apps Script, the glue that connects all Google Workspace services including Gmail, Google Drive, Calendar, Google Sheets, Forms, Maps, and more.

A good place to learn more about Google Apps Script is the official documentation available at developers.google.com. Here are other Apps Script resources that will help you get up to speed.

  1. Google Apps Script Code Samples by Amit Agarwal
  2. Google Apps Script Development - Create Google Apps Script projects locally inside VS Code - video tutorial
  3. Awesome Google Scripts by Amit Agarwal
  4. Google Developer Experts - Follow Apps Scr