- To create ssh secret:
oc create secret generic sshsecret \
--from-file=ssh-privatekey=$HOME/.ssh/id_rsa
#!/usr/bin/perl | |
@a = (1, 2, 3); # original array | |
$aRef = \@a; # reference to the array | |
print "a: @a\n"; # prints "a: 1 2 3" | |
print "a: @$aRef\n"; # exactly the same |
#!/usr/bin/perl | |
open (FILEHANDLE, "file.txt"); | |
while(<FILEHANDLE>) | |
{ | |
print "$_\n"; | |
} |
#!/usr/bin/perl | |
open (FILEHANDLE, "< new.pl") or die "oops: $!"; | |
@each = FILEHANDLE; | |
my $char = getc $each[0]; | |
print $char; | |
close(FILEHANDLE); |
Class.forName("com.teradata.jdbc.TeraDriver"); | |
String connectionString = "jdbc:teradata://MyDatabaseServer/database=MyDatabaseName,tmode=ANSI,charset=UTF8"; | |
String user = "username"; | |
String passwd = "password"; | |
Connection conn = DriverManager.getConnection(connectionString, user, password); |
#!/bin/ksh | |
####### | |
################################################################################ | |
####### | |
####### FILE: DSjobMasterControl.ksh | |
####### | |
####### DESCRIPTION: Starts a DataStage MasterControl type job passing | |
####### all runtime parameter values | |
####### | |
####### |
clear breaks | |
clear computes | |
clear columns | |
set pagesize 50 | |
set linesize 120 | |
set heading on | |
column tablespace_name heading 'Tablespace' justify left format a20 truncated | |
column tbsize heading 'Size|(Mb) ' justify left format 9,999,999.99 | |
column tbused heading 'Used|(Mb) ' justify right format 9,999,999.99 | |
column tbfree heading 'Free|(Mb) ' justify right format 9,999,999.99 |
#!/bin/ksh | |
echo "enter the file name" | |
read V_file_name | |
echo "enter the string to be searched" | |
read V_string | |
line_num=`grep -n "$V_string" $V_file_name|awk -F":" '{print $1}'` |
#!/bin/sh | |
# This file was generated by the xmeta commons-launcher maven plugin. | |
# Do not edit this file directly. | |
myPath=`dirname $0` | |
case `uname` in | |
CYGWIN*) # cygwin-specific stuff here | |
myPath=`cygpath -w "$myPath"` | |
;; | |
esac |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |