Skip to content

Instantly share code, notes, and snippets.

View zduymz's full-sized avatar
👻
just a shadow

Duy Mai zduymz

👻
just a shadow
View GitHub Profile
@zduymz
zduymz / README.md
Created September 15, 2017 09:18 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

For more about AWS and AWS Certifications and updates to this Gist you should follow me @leonardofed


$uriVaultPost = "http://$strVaultIP/PasswordVault/WebServices/PIMServices.svc/Account"
$payloadVault = @{
account = @{
safe = "MS SQL Safe"; (this value can be hardcoded)
platformID = "Test-MYSQL"; (this value can be hardcoded)
address = "4.4.4.2"; (this is the HOST information read from tnsnames.ora)
DSN = "dsn_test"; (can be hardcoded)
Database = "dsn_test"; (this is the description value in tnsnames.ora)
username = "SYS"; (this is the SID/Service_name read from tnsnames.ora)
password = "xxxx"; (this should be combination of Servicename/sid_Database_Address from tnsnames.ora)
# ---------------------------------------------
$ORAFullPath = 'C:\Users\ab\Downloads\tnsnames.ora'
$CSVFullPath = 'C:\Users\ab\Documents\tnsnames.csv'
#Defaults/hard coded/static values - these will appear in every row of the CSV.
#------------------------------------------------------------------------------
#For those columns marked #Dynamic (which come from the ora file) the value will revert to the default below if its not provided in the ora file.
@zduymz
zduymz / mysql_backup.sh
Created August 7, 2017 03:04
just a script
#!/bin/bash
MYSQL_USER="root"
MYSQL_PASSWORD="password"
MYSQL_HOST="127.0.0.1"
mysql -u$MYSQL_USER -h$MYSQL_HOST -p$MYSQL_PASSWORD -e "show databases" |
grep -iv -E "(information_schema|Database)" > /tmp/db.txt
if [[ ! -f /tmp/db.ptr ]]; then

I just had to set up Jenkins to use GitHub. My notes (to myself, mostly):

Detailed Instructions

For setting up Jenkins to build GitHub projects. This assumes some ability to manage Jenkins, use the command line, set up a utility LDAP account, etc. Please share or improve this Gist as needed.

Install Jenkins Plugins

#!/bin/bash
#
# A script to start/stop the CoreNLP server on port 80, made
# in particular for the configuration running at corenlp.run.
# This script should be placed into:
#
# /etc/init.d/corenlp
#
# To run it at startup, link to the script using:
#
#!/bin/sh
### BEGIN INIT INFO
# Provides: none
# Required-Start: $local_fs $network $named $time $syslog
# Required-Stop: $local_fs $network $named $time $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: none
### END INIT INFO
#!/bin/sh
### BEGIN INIT INFO
# Provides: none
# Required-Start: $local_fs $network $named $time $syslog
# Required-Stop: $local_fs $network $named $time $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: none
### END INIT INFO
#!/bin/sh
### BEGIN INIT INFO
# Provides: none
# Required-Start: $local_fs $network $named $time $syslog
# Required-Stop: $local_fs $network $named $time $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: none
### END INIT INFO
#!/bin/sh
### BEGIN INIT INFO
# Provides: none
# Required-Start: $local_fs $network $named $time $syslog
# Required-Stop: $local_fs $network $named $time $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: none
### END INIT INFO