Um von Windows ins Bios bzw. Boot Menü zu kommen, Shift Taste halten und dann neu starten auswählen
meine Sys/Db admin & Developper Notitzen - wer Rechtschreibfehler findet darf sie behalten ... my Sys/Db Admin and developper notes - I don't care about typos
Sunday, May 12, 2024
Thursday, May 02, 2024
github von der console
ssh clonen:
1) ssh public key des client zu github hinzufügen:
in ~/.ssh ist der public key id_rsa.pub, kopieren: cat ~/.ssh/id_rsa.pub
in github rechts oben auf das user logo clicken, unten settings
rechts 2.Abschnitt Access, SSH and GPG keys
new SSH key, dort einfügen
2) git clone ....
dann clonen, - repro in github auswählen, dann CODE menü, SSH kopieren und nach git clone einfügen z.b:
git clone git@github.com:mike...../raspi.git
Friday, April 26, 2024
Windows System DLLs
https://en.wikipedia.org/wiki/Microsoft_Windows_library_files
Kernel32.dll
User32.dll
NetApi32.dll
DavDeleteConnection
DavFlushFile
DavGetExtendedError
DavGetHTTPFromUNCPath
DavGetUNCFromHTTPPath
DsAddressToSiteNamesA
DsAddressToSiteNamesExA
DsAddressToSiteNamesExW
DsAddressToSiteNamesW
DsDeregisterDnsHostRecordsA
DsDeregisterDnsHostRecordsW
DsEnumerateDomainTrustsA
DsEnumerateDomainTrustsW
DsGetDcCloseW
DsGetDcNameA
DsGetDcNameW
DsGetDcNameWithAccountA
DsGetDcNameWithAccountW
DsGetDcNextA
DsGetDcNextW
DsGetDcOpenA
DsGetDcOpenW
DsGetDcSiteCoverageA
DsGetDcSiteCoverageW
DsGetForestTrustInformationW
DsGetSiteNameA
DsGetSiteNameW
DsMergeForestTrustInformationW
DsRoleFreeMemory
DsRoleGetPrimaryDomainInformation
DsValidateSubnetNameA
DsValidateSubnetNameW
I_BrowserSetNetlogonState
I_DsUpdateReadOnlyServerDnsRecords
I_NetAccountDeltas
I_NetAccountSync
I_NetChainSetClientAttributes2
I_NetChainSetClientAttributes
I_NetDatabaseDeltas
I_NetDatabaseRedo
I_NetDatabaseSync2
I_NetDatabaseSync
I_NetDfsGetVersion
I_NetDfsIsThisADomainName
I_NetGetDCList
I_NetGetForestTrustInformation
I_NetLogonControl2
I_NetLogonControl
I_NetLogonGetDomainInfo
I_NetLogonSamLogoff
I_NetLogonSamLogon
I_NetLogonSamLogonEx
I_NetLogonSamLogonWithFlags
I_NetLogonSendToSam
I_NetLogonUasLogoff
I_NetLogonUasLogon
I_NetServerAuthenticate2
I_NetServerAuthenticate3
I_NetServerAuthenticate
I_NetServerGetTrustInfo
I_NetServerPasswordGet
I_NetServerPasswordSet2
I_NetServerPasswordSet
I_NetServerReqChallenge
I_NetServerSetServiceBits
I_NetServerSetServiceBitsEx
I_NetServerTrustPasswordsGet
I_NetlogonComputeClientDigest
I_NetlogonComputeServerDigest
NetAccessAdd
NetAccessDel
NetAccessEnum
NetAccessGetInfo
NetAccessGetUserPerms
NetAccessSetInfo
NetAddAlternateComputerName
NetAddServiceAccount
NetAlertRaise
NetAlertRaiseEx
NetApiBufferAllocate
NetApiBufferFree
NetApiBufferReallocate
NetApiBufferSize
NetAuditClear
NetAuditRead
NetAuditWrite
NetConfigGet
NetConfigGetAll
NetConfigSet
NetConnectionEnum
NetCreateProvisioningPackage
NetDfsAdd
NetDfsAddFtRoot
NetDfsAddRootTarget
NetDfsAddStdRoot
NetDfsAddStdRootForced
NetDfsEnum
NetDfsGetClientInfo
NetDfsGetDcAddress
NetDfsGetFtContainerSecurity
NetDfsGetInfo
NetDfsGetSecurity
NetDfsGetStdContainerSecurity
NetDfsGetSupportedNamespaceVersion
NetDfsManagerGetConfigInfo
NetDfsManagerInitialize
NetDfsManagerSendSiteInfo
NetDfsMove
NetDfsRemove
NetDfsRemoveFtRoot
NetDfsRemoveFtRootForced
NetDfsRemoveRootTarget
NetDfsRemoveStdRoot
NetDfsRename
NetDfsSetClientInfo
NetDfsSetFtContainerSecurity
NetDfsSetInfo
NetDfsSetSecurity
NetDfsSetStdContainerSecurity
NetEnumerateComputerNames
NetEnumerateServiceAccounts
NetEnumerateTrustedDomains
NetErrorLogClear
NetErrorLogRead
NetErrorLogWrite
NetFileClose
NetFileEnum
NetFileGetInfo
NetFreeAadJoinInformation
NetGetAadJoinInformation
NetGetAnyDCName
NetGetDCName
NetGetDisplayInformationIndex
NetGetJoinInformation
NetGetJoinableOUs
NetGroupAdd
NetGroupAddUser
NetGroupDel
NetGroupDelUser
NetGroupEnum
NetGroupGetInfo
NetGroupGetUsers
NetGroupSetInfo
NetGroupSetUsers
NetIsServiceAccount
NetJoinDomain
NetLocalGroupAdd
NetLocalGroupAddMember
NetLocalGroupAddMembers
NetLocalGroupDel
NetLocalGroupDelMember
NetLocalGroupDelMembers
NetLocalGroupEnum
NetLocalGroupGetInfo
NetLocalGroupGetMembers
NetLocalGroupSetInfo
NetLocalGroupSetMembers
NetLogonGetTimeServiceParentDomain
NetLogonSetServiceBits
NetMessageBufferSend
NetMessageNameAdd
NetMessageNameDel
NetMessageNameEnum
NetMessageNameGetInfo
NetProvisionComputerAccount
NetQueryDisplayInformation
NetQueryServiceAccount
NetRegisterDomainNameChangeNotification
NetRemoteComputerSupports
NetRemoteTOD
NetRemoveAlternateComputerName
NetRemoveServiceAccount
NetRenameMachineInDomain
NetReplExportDirAdd
NetReplExportDirDel
NetReplExportDirEnum
NetReplExportDirGetInfo
NetReplExportDirLock
NetReplExportDirSetInfo
NetReplExportDirUnlock
NetReplGetInfo
NetReplImportDirAdd
NetReplImportDirDel
NetReplImportDirEnum
NetReplImportDirGetInfo
NetReplImportDirLock
NetReplImportDirUnlock
NetReplSetInfo
NetRequestOfflineDomainJoin
NetRequestProvisioningPackageInstall
NetScheduleJobAdd
NetScheduleJobDel
NetScheduleJobEnum
NetScheduleJobGetInfo
NetServerAliasAdd
NetServerAliasDel
NetServerAliasEnum
NetServerComputerNameAdd
NetServerComputerNameDel
NetServerDiskEnum
NetServerEnum
NetServerEnumEx
NetServerGetInfo
NetServerSetInfo
NetServerTransportAdd
NetServerTransportAddEx
NetServerTransportDel
NetServerTransportEnum
NetServiceControl
NetServiceEnum
NetServiceGetInfo
NetServiceInstall
NetSessionDel
NetSessionEnum
NetSessionGetInfo
NetSetPrimaryComputerName
NetShareAdd
NetShareCheck
NetShareDel
NetShareDelEx
NetShareDelSticky
NetShareEnum
NetShareEnumSticky
NetShareGetInfo
NetShareSetInfo
NetStatisticsGet
NetUnjoinDomain
NetUnregisterDomainNameChangeNotification
NetUseAdd
NetUseDel
NetUseEnum
NetUseGetInfo
NetUserAdd
NetUserChangePassword
NetUserDel
NetUserEnum
NetUserGetGroups
NetUserGetInfo
NetUserGetLocalGroups
NetUserModalsGet
NetUserModalsSet
NetUserSetGroups
NetUserSetInfo
NetValidateName
NetValidatePasswordPolicy
NetValidatePasswordPolicyFree
NetWkstaGetInfo
NetWkstaSetInfo
NetWkstaTransportAdd
NetWkstaTransportDel
NetWkstaTransportEnum
NetWkstaUserEnum
NetWkstaUserGetInfo
NetWkstaUserSetInfo
NetapipBufferAllocate
Netbios
NetpAddTlnFtinfoEntry
NetpAllocFtinfoEntry
NetpAssertFailed
NetpCleanFtinfoContext
NetpCloseConfigData
NetpCopyFtinfoContext
NetpDbgPrint
NetpGetConfigBool
NetpGetConfigDword
NetpGetConfigTStrArray
NetpGetConfigValue
NetpGetFileSecurity
NetpHexDump
NetpInitFtinfoContext
NetpIsRemote
NetpIsUncComputerNameValid
NetpMergeFtinfo
NetpNetBiosReset
NetpNetBiosStatusToApiStatus
NetpOpenConfigData
NetpSetFileSecurity
NetpwNameCanonicalize
NetpwNameCompare
NetpwNameValidate
NetpwPathCanonicalize
NetpwPathCompare
NetpwPathType
NlBindingAddServerToCache
NlBindingRemoveServerFromCache
NlBindingSetAuthInfo
RxNetAccessAdd
RxNetAccessDel
RxNetAccessEnum
RxNetAccessGetInfo
RxNetAccessGetUserPerms
RxNetAccessSetInfo
RxNetServerEnum
RxNetUserPasswordSet
RxRemoteApi
Thursday, April 25, 2024
von linux auf windows netzwerk datei freigabe zugreifen und umgekehrt
Monday, March 04, 2024
Autostart Folder usw
Sunday, January 21, 2024
windows wsl (linux auf windows)
power shell starten
wsl installieren:
wsl --install
wsl version abrufen
wsl --version
verfügbare linux distributionen auflisten
wsl --list
starten der default installation
wsl --d
starten iener bestimmten distribution
wsl --d Ubuntu
Monday, January 08, 2024
.net auf rasperry pi
.net framework auf rasperry installieren
https://learn.microsoft.com/de-de/dotnet/iot/deployment
neues console projekt: dotnet new consolestarten: dotnet run
Visual Studio Code installieren:sudo apt install code
maria db
rasperry:
sudo apt install mariadb-server
sudo mysql_secure_installation
sudo nano /etc/mysql/mariadb.conf.d/50-server.cnf
Port unkommentieren, d.h. # entfernen
CREATE USER test'@'localhost' IDENTIFIED BY 'Test123!';
GRANT ALL PRIVILEGES ON neueDatenbank . * TO 'neuerUser'@'localhost';
GRANT ALL PRIVILEGES ON *. * TO 'neuerUser'@'localhost';
Sunday, December 10, 2023
ssrs report builder
funktioniert nur mit eigener Datenquelle, nach veröffentlich umstellen auf shared datasource
ssrs Reporting Services Cannot read next row
Erhalte diesen Fehler durch die Where Klausel: where C>GetDate()-@Tage
umgestellt auf where C>@Von funktioniert
FEHLER SQL GESAMT:
declare @tage as int=100; declare @Anz as int =0
select errlevel,namespace as nspace,title,msg,count(*) as anz from tLog
where C>GetDate()-@Tage
group by errlevel, namespace, title,msg
having count(*)>@Anz
order by errlevel,count(*) desc
Monday, May 22, 2023
Sql Update Delete JOIN
UPDATE P
SET P.UnitPrice = P.UnitPrice * 1.1
FROM Product P
JOIN OrderItem I ON P.Id = I.ProductId
delete a From tAdressen a join cte as c on
Wednesday, March 01, 2023
sql server no delete - kein löschen
das Löschen von Datensätzen in einer tabelle kann mittels dieses triggers verhindert werden:
to prevent sql server to delete records of a table use this trigger:
create TRIGGER dbo.Test1Delete
ON dbo.Test1
INSTEAD OF DELETE
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
print 'no delete !'
END
Monday, January 16, 2023
oracle add user
create user ztest identified by 123;
GRANT CREATE SESSION TO ztest2; -- so can log in
GRANT CREATE Table, create VIEW, CREATE PROCEDURE, CREATE SEQUENCE, CREATE TRIGGER to ztest2;
ALTER USER ztest2 QUOTA 100M ON DMCS;
Wednesday, November 09, 2022
sql server geolocation (geography typ)
CREATE TABLE [dbo].[tGeoTest](
[Id] [int] IDENTITY(1,1) NOT NULL,
[name] [nchar](200) NULL,
[geo] [geography] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
insert into tGeoTest (name,geo) values ('Eiffelturm',geography::Point(48.858260200000004, 2.2944990543196795 , 4326))
insert into tGeoTest (name,geo) values ('Stefansturm',geography::Point(48.209133, 16.3724786 , 4326))
DECLARE @geo1 geography=(select geo from tGeoTest where id=1)
DECLARE @geo2 geography=(select geo from tGeoTest where id=2)
select @geo1.STDistance(@geo2)/1000 as Distanz
Thursday, November 03, 2022
sql server database diagramm creation error
Error:
Cannot execute as the database principal because the principal “dbo” does not exist, this type of principal cannot be impersonated, or you do not have permission.
Solution: Unter Db Eigenschaften, Files einen Owner eintragen siehe:
Thursday, August 25, 2022
tailscale vpn
rasperry pi: https://tailscale.com/download/linux/rpi curl -fsSL https://tailscale.com/install.sh | sh
Thursday, April 14, 2022
esp 8266 erste Schritte
Unterschied esp32 und esp8266: esp32 ist leistungsstärker
GitHub - esp8266/Arduino: ESP8266 core for Arduino
wichtig:
1) Arduino IDE für Kommunikation mit ESP vorbereiten:
Datei/Voreinstellungen/Zusätzliche Bordevrwalter Urls: https://arduino.esp8266.com/stable/package_esp8266com_index.json
https://wolles-elektronikkiste.de/esp32-mit-arduino-code-programmieren
WeMOS Mega
https://www.fambach.net/mega-wifi/
Dipschalter Belegung
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | |
| ATMega <->ESP | An | An | Aus | Aus | Aus | Aus | Aus |
| USB <-> ATMega | Aus | Aus | An | An | Aus | Aus | Aus |
| USB <-> ESP Firmware | Aus | Aus | Aus | Aus | An | An | An |
| USB <-> ESP Kom. | Aus | Aus | Aus | Aus | An | An | Aus |
| Keine Verbindungen | Aus | Aus | Aus | Aus | Aus | Aus | Aus |
Monday, April 04, 2022
lock workstation by cmd / windows sperren aus der shell
https://www.howtogeek.com/686575/how-to-lock-your-windows-10-pc-using-command-prompt/
Rundll32.exe user32.dll,LockWorkStation