Skip to content

Instantly share code, notes, and snippets.

View knightsamar's full-sized avatar
💭
I might not respond unless you email me.

Samarendra M Hedaoo knightsamar

💭
I might not respond unless you email me.
View GitHub Profile
@knightsamar
knightsamar / sample_data_q4.txt
Created August 7, 2019 05:43
Sample data for the the Q4 of Relational Algebra Assignment for CS340
-- this is for the Q4 of Relational Algebra Assignment for CS340
group: PlayerTeamCities
Player = {
id:number, score:number, team_id:number
1, 100, 1
2, 200, 2
3, 99, 1
4, 100, 2
@knightsamar
knightsamar / sample_data_q4.txt
Created August 7, 2019 05:43
Sample data for the the Q4 of Relational Algebra Assignment for CS340
-- this is for the Q4 of Relational Algebra Assignment for CS340
group: PlayerTeamCities
Player = {
id:number, score:number, team_id:number
1, 100, 1
2, 200, 2
3, 99, 1
4, 100, 2
group: q_piazza
student = {
sid:number, fname:string, lname:string
1,'ABC','XYZ'
2,'PQR','UVZ'
3,'AAA','BBB'
4,'XXX','YYY'
}
@knightsamar
knightsamar / gist:9a02ecefab6c753b5f30cf1508817e2a
Last active February 9, 2021 15:41
auto dealer schema & sample data for use in cs340 assignment
group: auto_dealer_schema
Model = {
model_id:number, model_name:string, first_production_year:string
1,'Model1',"1985"
2,'Model2',"1987"
3,'2 Series',"1990"
4,'Focus',"1986"
}
@knightsamar
knightsamar / gist:0ce57b3161703de6476db669e991721b
Created September 20, 2017 22:43
workstation public key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDTc3XDLlwIcQRpdwyqTaEjJLXcxyNK4HA4ywU+uj06BV+x4h6uVG0SGbVJ6ivMscPT8178Y7HiIGWwLTSmbN5cSL1R9zgUEtOlBGB4JxaWS+yXMYN2TyqxPSraqyRnFSCQhPgAaVe+VppL+ic6A9otZ20kD4jbCCXcKpGOMVBrHWdjHVm1RL+RJ3rTePFNXEvyN1SxmKgmJ7W0p09NWummNENcLeLJlZGMXNNdem+2yIw3zlpi2r4q9NiYBzry5HdCSvAvzeKcoLUmM+eS7eVrHaCGN/IjcebvzFU/ddJl52VmQm99H1ZvHiLpCP6XZ6sXu20NKkewvgggYdh6+f+YWoI6xbL5xQch4gQS0A/Kk26UknaaNmU4ityLT5N84TGirCsyheH7OHW+hLLrPOFviDuvcTwm+WjhfGY1q8uRtNPqMQbVjnr3MG4jdwmQPZgRiw6hnnqSG6kFQAFDubCPz1RRbKjfUJrS63K3zVkcyeQgsjiLDixNhZRfdMp7GcANpIVmMxDN2YixI8nTcwlqhgnGI4WlB36E2gqS1KzmS3MUFoFWETM8AvBu3RWrG26yoLR6KlrsHrV76c1BU6oGOKrGEvVrlqzQW+IK1Li2xPhTellmKRTTskhALsvpgMJx3szGZ77GF91c7zuS/rvr51koiQvMdpHi0i+Z+JQMmQ== samarendra@samarendra-workstation
@jonico
jonico / Jenkinsfile
Last active January 31, 2024 09:43
Example for a full blown Jenkins pipeline script with CodeQL analysis steps, multiple stages, Kubernetes templates, shared volumes, input steps, injected credentials, heroku deploy, sonarqube and artifactory integration, Docker containers, multiple Git commit statuses, PR merge vs branch build detection, REST API calls to GitHub deployment API, …
#!groovy
import groovy.json.JsonOutput
import groovy.json.JsonSlurper
def label = "mypod-${UUID.randomUUID().toString()}"
podTemplate(label: label, yaml: """
spec:
containers:
- name: mvn
image: maven:3.3.9-jdk-8
@lobotony
lobotony / scrubm4a
Created February 14, 2015 18:25
Scrub metadata from m4a files by copying the AAC stream to a new file without reencoding, using ffmpeg. This script replaces the file you're scrubbing, so duplicate your data beforehand. I'm no shell expert and wanted something quick, so it's not very polished, e.g. it won't work with wildcards.
#!/bin/sh
INFILE="$@"
TEMPFILE=/tmp/$RANDOM
echo "processing file: " $INFILE
echo "extracting aac"
ffmpeg -i "$INFILE" -codec: copy $TEMPFILE.aac
echo "stuffing aac into m4a container"
ffmpeg -i $TEMPFILE.aac -bsf:a aac_adtstoasc -codec: copy $TEMPFILE.m4a
echo "replacing old with new"