Skip to content

Instantly share code, notes, and snippets.

Avatar
😃

FLEISCHMANN György, _flex, Gyurci, FleXoft FleXoft

😃
View GitHub Profile
@FleXoft
FleXoft / Recursively counting files in a Linux directory
Created May 15, 2020
Recursively counting files in a Linux directory
View Recursively counting files in a Linux directory
find . -maxdepth 1 -type d -print0 | xargs -0 -I {} sh -c 'echo $(find "{}" | wc -l) "{}"'
@FleXoft
FleXoft / Recursively counting files in a Linux directory
Created May 15, 2020
Recursively counting files in a Linux directory
View Recursively counting files in a Linux directory
find . -maxdepth 1 -type d -print0 | xargs -0 -I {} sh -c 'echo $(find "{}" | wc -l) "{}"'
@FleXoft
FleXoft / kef search
Last active Apr 10, 2020
KEF search
View kef search
@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
You can’t perform that action at this time.