Skip to content

Instantly share code, notes, and snippets.

FLEISCHMANN György, _flex, Gyurci, FleXoft FleXoft

View GitHub Profile
@FleXoft
FleXoft / codesign
Created Mar 28, 2019
OS X codesign
View codesign
codesign -f -s - --deep
@FleXoft
FleXoft / hr
Created Dec 28, 2018
Term size line
View hr
hr(){ yes -- ${@:-=} | tr -d $'\n' | head -c $COLUMNS ; }
@FleXoft
FleXoft / HPE SM Oracle user settings
Created Nov 30, 2018
HPE SM Oracle user settings
View HPE SM Oracle user settings
sqlplus / as sysdba
create user smadmin identified by smadmin default tablespace users quota unlimited on users;
alter user smadmin default tablespace users;
alter user smadmin temporary tablespace temp;
alter user sys identified by password;
grant create materialized view TO smadmin;
grant create session ,alter session ,create synonym ,create view ,create table ,create sequence TO smadmin;
@FleXoft
FleXoft / HPE SM delete all tables before system-load (MS SQL)
Last active Nov 30, 2018
HPE SM delete all tables before load (MS SQL)
View HPE SM delete all tables before system-load (MS SQL)
SELECT 'drop table', name, ';' FROM sysobjects WHERE xtype='U' order by name
View Oracle loop
DECLARE CURSOR c_drop IS
SELECT table_name
FROM dba_tables
WHERE owner = '<sm séma neve>';
v_sql VARCHAR2(800);
BEGIN
FOR r IN c_drop
LOOP
v_sql := 'DROP TABLE '|| r.owner||'.'|| r.table_name||' cascade constraints' to prx_test';
@FleXoft
FleXoft / HPE SM reset password to empty
Created Nov 28, 2018
HPE SM reset password to empty
View HPE SM reset password to empty
select password from dbo.OPERATORM1 where name='flex'
update dbo.OPERATORM1 set password='=SH524DB92E55E5BD4437C0DCD6F73BF4FF534A1F2306B0CAF098FF13B140D8E202EB10C5A07F84230CB212564109BD6AD99566E0C3326638EE170C7B637FB3F31E1512=' where name='flex';
@FleXoft
FleXoft / HPE SM tricky Windows starter
Created Nov 28, 2018
HPE SM tricky Windows starter
View HPE SM tricky Windows starter
net start | findstr HP
netsh interface show interface
net stop "HP Service Manager 9.40 Server"
netsh interface set interface "Ethernet1 2" admin=disable
net start "HP Service Manager 9.40 Server"
netsh interface set interface "Ethernet1 2" admin=enable
View TSM NAS share backup
@echo off
set machinename=nas1bud1hu
set nasbackuplog=nasbackuplog.txt
set exitcode=0
cd "C:\Program Files\Tivoli\TSM\baclient"
net use \\nas1bud1hu\common /user:admin ********** > %nasbackuplog%
@FleXoft
FleXoft / HPE Service Manager loop
Last active Nov 28, 2018
HPE Service Manager
View HPE Service Manager loop
function countTABLE( table, query ) {
var fTABLE = new SCFile( table, SCFILE_READONLY );
var rc = fTABLE.doSelect( query );
if ( rc == RC_SUCCESS ) {
do {
print(fTABLE.id+ "_"+fTABLE.name);
} while ( fTABLE.getNext() == RC_SUCCESS )
}
@FleXoft
FleXoft / node.js
Created Nov 20, 2018
javascript parameters
View node.js
var header = [ "h1", "h2", "h3", "h4" ];
var col1 = [ 11, 12, , 14 ];
var col2 = [ 21, 22, 23, 24 ];
var col3 = [ 31, , 33, 34 ];
var col4 = [ 41, 42, 43, 44 ];
var col5 = [ 51, 52, 53, ];
function sortWords() {
columns = ( arguments[0].length );
You can’t perform that action at this time.