Skip to content

Instantly share code, notes, and snippets.

View tnguyen14's full-sized avatar

Tri Nguyen tnguyen14

View GitHub Profile
@tnguyen14
tnguyen14 / fedora-cisco-openh264.repo
Last active April 6, 2023 03:44
Default fedora repo config in /etc/yum.repos.d
[fedora-cisco-openh264]
name=Fedora $releasever openh264 (From Cisco) - $basearch
metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-$releasever&arch=$basearch
type=rpm
enabled=1
metadata_expire=14d
repo_gpgcheck=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=True
debug: "Executing (644b5306-2046-4631-ba71-4dfea8fc6a45): INSERT INTO `facilities` (`id`,`code`,`name`,`email`,`contact_number`,`street_address`,`city_town`,`division`,`type`,`created_at`,`updated_at`) VALUES ('facility-AdolescentHealthDevelopment','AdolescentHealthDevelopment','Adolescent Health Development',NULL,NULL,NULL,NULL,NULL,NULL,'2022-02-03 04:09:06.780 +00:00','2022-02-03 04:09:06.780 +00:00'),('facility-BagasauNursingStation','BagasauNursingStation','Bagasau Nursing Station',NULL,NULL,NULL,NULL,NULL,NULL,'2022-02-03 04:09:06.780 +00:00','2022-02-03 04:09:06.780 +00:00'),('facility-BaHealthCentre','BaHealthCentre','Ba Health Centre',NULL,NULL,NULL,NULL,NULL,NULL,'2022-02-03 04:09:06.780 +00:00','2022-02-03 04:09:06.780 +00:00'),('facility-BalevutoHealthCentre','BalevutoHealthCentre','Balevuto Health Centre',NULL,NULL,NULL,NULL,NULL,NULL,'2022-02-03 04:09:06.780 +00:00','2022-02-03 04:09:06.780 +00:00'),('facility-BaMissionSub-divisionalHospital','BaMissionSub-divisionalHospital','Ba Missi
@tnguyen14
tnguyen14 / wsl.conf
Created January 26, 2021 04:39
Old /etc/wsl.conf
[automount]
root=/
enabled = true
options = "metadata,uid=1000,gid=1000,umask=22,fmask=11,case=off"
mountFsTab = true
[network]
generateHosts = true
generateResolvConf = true
@tnguyen14
tnguyen14 / pom.xml
Created June 21, 2019 18:17
pom.xml for Jenkins Spock
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com</groupId>
<artifactId>jenkins-pipeline-libraries</artifactId>
<version>0.0.0</version> <!-- unused -->
@startuml
Bob -> Alice : hello
@enduml
@tnguyen14
tnguyen14 / floating-ip-apply.log
Last active September 7, 2017 16:06
terraform openstack provider debug
2017/09/07 12:05:42 [INFO] Terraform version: 0.10.4 10df48ef40aa7fdddb8a13af79a8df9028788f01
2017/09/07 12:05:42 [INFO] Go runtime version: go1.9
2017/09/07 12:05:42 [INFO] CLI args: []string{"/home/tnguyen541/bin/terraform", "apply"}
2017/09/07 12:05:42 [DEBUG] Attempting to open CLI config file: /home/tnguyen541/.terraformrc
2017/09/07 12:05:42 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/09/07 12:05:42 [INFO] CLI command args: []string{"apply"}
2017/09/07 12:05:42 [INFO] command: empty terraform config, returning nil
2017/09/07 12:05:42 [DEBUG] command: no data state file found for backend config
2017/09/07 12:05:42 [DEBUG] New state was assigned lineage "6c482357-c8ba-4e81-8c29-cb94ec7004d0"
2017/09/07 12:05:42 [INFO] command: backend initialized: <nil>
execve("/bin/systemctl", ["systemctl", "status", "nginx"], [/* 88 vars */]) = 0
brk(NULL) = 0x7fffcec7e000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f46d8620000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=90051, ...}) = 0
mmap(NULL, 90051, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f46d860a000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
@tnguyen14
tnguyen14 / selenium-docker-test.sh
Created March 1, 2017 16:05
Run functional tests inside a Selenium docker container
#!/usr/bin/env bash
CONTAINER_NAME="docker-selenium-chrome"
# remove any pre-existing container
if [ $(docker ps -a | grep $CONTAINER_NAME | awk '{print $NF}' | wc -l) -gt 0 ]; then
docker rm -f $CONTAINER_NAME 1>/dev/null
fi
case "$*" in
*--debug*)
@tnguyen14
tnguyen14 / cannotfocuselement.log
Created April 12, 2016 17:23
selenium log for cannot focus element error
12:32:01.593 INFO - Executing: [find elements: By.cssSelector: input[name=Quantity]])
12:32:01.605 INFO - Done: [find elements: By.cssSelector: input[name=Quantity]]
12:32:01.608 INFO - Executing: [clear: 65 [[ChromeDriver: chrome on MAC (1441b6e4cebce511b25c96f261d2cebf)] -> css selector: input[name=Quantity]]])
12:32:01.608 INFO - Executing: [clear: 64 [[ChromeDriver: chrome on MAC (1441b6e4cebce511b25c96f261d2cebf)] -> css selector: input[name=Quantity]]])
12:32:01.628 INFO - Done: [clear: 65 [[ChromeDriver: chrome on MAC (1441b6e4cebce511b25c96f261d2cebf)] -> css selector: input[name=Quantity]]]
12:32:01.631 INFO - Executing: [send keys: 65 [[ChromeDriver: chrome on MAC (1441b6e4cebce511b25c96f261d2cebf)] -> css selector: input[name=Quantity]], [2]])
12:32:01.654 INFO - Done: [clear: 64 [[ChromeDriver: chrome on MAC (1441b6e4cebce511b25c96f261d2cebf)] -> css selector: input[name=Quantity]]]
12:32:01.656 INFO - Executing: [send keys: 64 [[ChromeDriver: chrome on MAC (1441b6e4cebce511b25c96f261d2cebf)] -> c
Feb 01, 2016 2:34:45 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildListener onStarted
BuildListener onStarted called.
Feb 01, 2016 2:38:00 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildTrigger run
Build Skip.
Feb 01, 2016 2:43:00 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildTrigger run
Build Skip.
Feb 01, 2016 2:48:00 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildTrigger run
Build Skip.
Feb 01, 2016 2:48:59 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildListener onStarted
BuildListener onStarted called.