Skip to content

Instantly share code, notes, and snippets.

@sercanerhan
sercanerhan / music.sh
Created April 14, 2022 20:04
Startup script for calf audio plugin, Ardour, Carla , Guitarix with their saved project files and parameters
#!/bin/bash
#
echo $0 is starting carla
#
pw-jack -s 48000 -p 1024 guitarix &
Sleep 2
pw-jack -s 48000 -p 1024 calfjackhost -l <PATH TO SAVED FILE> &
Sleep 2
pw-jack -s 48000 -p 1024 carla "<PATH TO PROJECT FILE>.carxp" &
Sleep 2
@sercanerhan
sercanerhan / quicksight.md
Last active April 27, 2020 11:44
QuickSight

Simply, I have two tables.

Orders table stores each unique order as a single row. ProductsInTheOrder table stores each product as a single row for each Order.

A quick preview is:

Orders Table

Id Total Timestamp
class customerSupportIntentHandler(AbstractRequestHandler):
"""Handler for Customer Support Project"""
def can_handle(self, handler_input):
return ask_utils.is_intent_name("customerSupportIntent")(handler_input)
def handle(self, handler_input):
# Take answered issue key number as string
issueKey = str(handler_input.request_envelope.request.intent.slots["issueKey"].value)
# In that example, CS is the Project Key for Customer Support. full_key will be CS-1234 while answered slot value is 1234.
full_key = 'CS-%s' % issueKey
@sercanerhan
sercanerhan / postakodu.sql
Created August 15, 2016 10:20 — forked from ismailbaskin/postakodu.sql
İl - İlçe - semt - mahalle - posta kodu veritabanı
This file has been truncated, but you can view the full file.
DROP TABLE IF EXISTS `pk_il`;
CREATE TABLE `pk_il` (
`il_id` int(2) NOT NULL COMMENT 'plaka kodu',
`il_adi` varchar(255) NOT NULL,
PRIMARY KEY (`il_id`),
KEY `il_adi` (`il_adi`) USING BTREE
) ENGINE=MyISAM;
-- ----------------------------