Skip to content

Instantly share code, notes, and snippets.

View nguyenvanduocit's full-sized avatar
🌴
On vacation

Duoc Nguyen nguyenvanduocit

🌴
On vacation
View GitHub Profile
Danh sách thuật ngữ không dịch: Lean Software Development, DevOps, Agile, developer, development, tester, testing, team, Scrum, Kanban, Continuous Integration, Continuous Delivery, Continuous Deployment, Pipeline, Workflow, Feedback loop, Value Stream, Lead time, Cycle time, Sprint, Standup, Retrospective, Git, Version Control, Repository, Build, Deploy, Testing, Monitoring, Infrastructure as Code, Configuration Management, Throughput, Velocity, Burndown, Performance, Technical debt, Mean Time To Recovery (MTTR), Mean Time Between Failures (MTBF), Service Level Agreement (SLA), Service Level Objective (SLO), Service Level Indicator (SLI)
@nguyenvanduocit
nguyenvanduocit / lambda.go
Last active August 11, 2022 16:01
generic error
{
"errorMessage": "runtime error: invalid memory address or nil pointer dereference",
"errorType": "errorString",
"stackTrace": [
{
"path": "github.com/aws/[email protected]/lambda/errors.go",
"line": 39,
"label": "lambdaPanicResponse"
},
{
gst-launch-1.0 multifilesrc location="$ARTWORK_LOCATION" start-index=1 loop=true caps='image/jpeg,framerate=\(fraction\)7/1' \
! jpegparse \
! nvjpegdec ! 'video/x-raw' \
! nvvidconv ! 'video/x-raw(memory:NVMM),format=NV12' \
! omxh264enc bitrate=4500\
! 'video/x-h264,stream-format=(string)byte-stream' \
! h264parse \
! flvmux streamable=true name=mux \
! rtmpsink location="$STREAM_LOCATION" multifilesrc location="$TRACKS_LOCATION" start-index=1 loop=true \
! mpegaudioparse \
apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio
#!/bin/bash
sudo apt-add-repository ppa:fish-shell/release-3
sudo apt-get update
sudo apt-get install fish -y
sudo chsh -s /usr/bin/fish
curl https://git.io/fisher --create-dirs -sLo ~/.config/fish/functions/fisher.fish
fish
@nguyenvanduocit
nguyenvanduocit / elementIO-table-to-csv.js
Created May 11, 2020 07:50
Export elementIO table to csv
export function exportElTable (elTableRef) {
const data = dataHandler(elTableRef)
console.log(data)
exportCSVFile(data, 'product-analysis')
}
function dataHandler (elTableRef) {
let columns = elTableRef.columns
let data = elTableRef.data
let outputData = []
TpOCM[GWh{SMTd/9whF@
<?xml version="1.0" encoding="UTF-8"?>
<gpx xmlns="http://www.topografix.com/GPX/1/1" version="1.1" creator="iSpoofer"> <trk> <name>0</name> <trkseg> <trkpt lat="41.662319" lon="-0.894207"> </trkpt> <trkpt lat="41.662058" lon="-0.893725"> </trkpt> <trkpt lat="41.661948" lon="-0.893584"> </trkpt> <trkpt lat="41.661658" lon="-0.893115"> </trkpt> <trkpt lat="41.661471" lon="-0.892848"> </trkpt> <trkpt lat="41.661310" lon="-0.893136"> </trkpt> <trkpt lat="41.661108" lon="-0.893195"> </trkpt> <trkpt lat="41.660992" lon="-0.893318"> </trkpt> <trkpt lat="41.660923" lon="-0.893419"> </trkpt> <trkpt lat="41.660963" lon="-0.893553"> </trkpt> <trkpt lat="41.660995" lon="-0.893690"> </trkpt> <trkpt lat="41.661071" lon="-0.893763"> </trkpt> <trkpt lat="41.661207" lon="-0.894047"> </trkpt> <trkpt lat="41.661271" lon="-0.894277"> </trkpt> <trkpt lat="41.661425" lon="-0.894420"> </trkpt> <trkpt lat="41.661492" lon="-0.894443"> </trkpt> <trkpt lat="41.661590" lon="-0.894588"> </trkpt> <trkpt lat="41.661609" lon="-0.894640"> <
!define primaryColor #4267b2
!define secondaryColor #56bd77
skinparam handwritten true
skinparam shadowing false
skinparam Default {
FontName inconsolata
}
skinparam Participant {
FontColor black
<?xml version="1.0" encoding="UTF-8"?><gpx version="1.1" creator="GPS JoyStick - [email protected] - https://www.facebook.com/gpsjoystick"><rte><name>Playa De Las Canteras (Canary Island)</name><number>0</number><rtept lat="28.13570901174562" lon="-15.440106354653835"/><rtept lat="28.135690385315204" lon="-15.440107695758345"/><rtept lat="28.13598892000426" lon="-15.439819247320326"/><rtept lat="28.135987662664725" lon="-15.439372796907872"/><rtept lat="28.136185437648994" lon="-15.439031413278475"/><rtept lat="28.13663587044278" lon="-15.438251642747794"/><rtept lat="28.13664322821163" lon="-15.43797370469807"/><rtept lat="28.136979873067624" lon="-15.437673505301115"/><rtept lat="28.137702327455372" lon="-15.437021594958804"/><rtept lat="28.13843022091828" lon="-15.436878747046249"/><rtept lat="28.1387265239124" lon="-15.436605031416962"/><rtept lat="28.13931937715195" lon="-15.43643950889859"/><rtept lat="28.13990522840591" lon="-15.436103992809407"/><rtept lat="28.140637125783943" lon="-15.43570642238