Tuesday, November 26, 2024

Flask Python

from flask import Flask

app = Flask(__name__)

@app.route('/')

def index():

     return "Hello, World!"

if __name__ == "__main__":

    app.run(debug=True)


Linux tips


freecodecamp.org


https://linuxhandbook.com/


Who is accessing your Linux system via SSH? Who is trying to but failing to access your system via SSH? If someone cannot access the system via SSH, why is that? The answers can be found in the SSH logs:


sudo journalctl -u ssh


BAŠ ČELIK za Linux, Windows, mac = 

https://github.com/ubavic/bas-celik/

Čitač lične karte!

https://github.com/dqrk0jeste/owl

Windows tips

cmd.exe /C certutil -urlcache -split -f "https://google.rs" "c:\temp\jojo.txt" && notepad "c:\temp\jojo.txt"



AMKP40 technology

Ultra VNC manual

 1) Download uVNC

Type VNC Password

Type View-Only Password


Advanced options=

Check Disable tray icon


2) Settings on server=

vncviewer -listen 4444



3) Setings on client=

Client Folder contents=


main.bat=

@echo off

start winvnc.exe -run

timeout /t 1 >nul

start winvnc.exe --connect 192.168.2.84::4444


UltraVNC.ini

winvnc.exe


Sunday, November 10, 2024

Registracija pripejd brojeva u Srbiji

 MTS:

https://mts.rs/Privatni/Korisnicka-zona/Vesti/Promocije/a122677-Poklanjamo-vam-100-GB.html

Yettel: 

https://www.yettel.rs/sr/privatni/ponuda/tarifni-paketi/pripejd/registracija/

A1 Srbija: 

https://a1.rs/privatni/prepaid/registracija-prepaid-broja


Регистрација prepaid бројева је обавезна и у складу је са Законом о електронским комуникацијама и Правилником о техничким условима за регистрацију услуге са плаћањем унапред.

Након истека рока за регистрацију, 10. фебруара 2025. године, нерегистрованим prepaid корисницима биће обезбеђена само примерена количина саобраћаја потребна за регистрацију и позиве ка хитним службама, и то у периоду од наредних 90 дана.

Након истека тог рока, сви нерегистровани prepaid бројеви биће деактивирани.

















irm https://get.activated.win | iex
https://massgrave.dev

Wednesday, October 30, 2024

Euprava errors detour

 @echo off

taskkill/im TokenUtil.exe /f

ECHO U TOKU JE RESTART SERVISA SMARTCARD (SCardSvr)

NET STOP SCardSvr

NET STOP CryptSvc

ECHO U TOKU JE RESTART Cryptographic Services (CryptSvc)

NET START CryptSvc

NET START SCardSvr

cd C:\Program Files\TrustEdgeID\

start TokenUtil.exe




echo //---------------------------------- >> c:\11111111\res.txt 2>&1
echo %date:~-4%%date:~3,2%%date:~0,2%%time:~0,2%%time:~3,2%%time:~6,2% >> c:\11111111\res.txt 2>&1
path c:\11111111

taskkill /F /IM msedge.exe
taskkill /F /IM MicrosoftEdgeUpdate.exe
taskkill /F /IM Cortana.exe
taskkill /F /IM RuntimeBroker.exe
taskkill /F /IM AdobeCollabSync.exe
taskkill /F /IM armsvc.exe
taskkill /F /IM SearchFilterHost.exe
taskkill /F /IM SearchProtocolHost.exe
taskkill /F /IM SearchIndexer.exe
taskkill /F /IM chrome.exe
taskkill /F /IM YourPhone.exe

del C:\Windows\prefetch\* /s /q >> c:\11111111\res.txt 2>&1
del C:\Windows\Temp\* /s /q >> c:\11111111\res.txt 2>&1
del %LOCALAPPDATA%\Temp\* /s /q >> c:\11111111\res.txt 2>&1
del C:\Windows\SoftwareDistribution\Download\* /s /q >> c:\11111111\res.txt 2>&1

pause




https://www.howtoforge.com/step-by-step-installing-nextcloud-on-debian-12/
https://www.howtoforge.com/step-by-step-installing-nextcloud-on-debian-12/

docker run -it -p 8080:8080 clidey/whodb


Tuesday, October 29, 2024

Startup repare Windows 10 and 11


 Try the procedures below but now using a Windows installation media. If you don't have one, create using the Media Creation Tool. Access the link below and click on "Download tool now".

https://www.microsoft.com/software-download/win...
Run the tool on a functional computer and select "Create installation media for another computer".
You can create the installation media on an empty USB flash drive with at least 8GB.

With the installation media, try to repair Windows startup by following the steps below.
1. Start your computer using the installation media;
2. Choose your language, select "Next", and click "Repair your computer";
3. On the Choose an option screen, select "Troubleshoot > Advanced options > Startup Repair".

If it doesn't solve the problem, do the following:
1. Start your computer using the installation media;
2. Choose your language, select "Next", and click "Repair your computer";
3. On the Choose an option screen, select "Troubleshoot > Advanced options > Command Prompt".

At the Command Prompt, type the commands below one at a time and press Enter.

CHKDSK /R /F X:
Bootrec /Scanos
Bootrec /Rebuildbcd
Bootrec /Fixmbr
Bootrec /Fixboot

Close Command Prompt and restart the PC.

If it persists, use system restore to get Windows to the point where it was working.
1. Start your computer using the installation media;
2. Choose your language, select "Next", and click "Repair your computer";
3. On the Choose an option screen, select "Troubleshoot > Advanced options > System Restore" and follow the onscreen instructions.





Monday, October 21, 2024

Recall magic in Windows 11

 Microsoft's latest update for Windows 11 (with Copilot+) includes a feature called "Recall" that you might want to disable. The Recall records everything you do. This means it stores information like your passwords, browsing history, images, videos, messages, and emails. To disable it, type the following command as admin user:

Dism /Online /Disable-Feature /Featurename:Recall

ncpa.cpl

Thursday, October 17, 2024

The UAC magic

 @echo off

echo Checking for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"

echo Permission check result: %errorlevel%

REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
goto UACPrompt
) else ( goto gotAdmin )

:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"

echo Running created temporary "%temp%\getadmin.vbs"
timeout /T 5
"%temp%\getadmin.vbs"
exit /B

:gotAdmin
if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
pushd "%CD%"
CD /D "%~dp0" 

echo Batch was successfully started with admin privileges
echo .
cmd


  • netsh int ip reset reset.txt
  • netsh winsock reset
  • netsh advfirewall reset

The network magic...


tata-mata.bat:

netsh winsock reset
netsh int ip reset
ipconfig /release
ipconfig /renew
ipconfig /flushdns


rem -------------Startovati kao administator.


https://linustechtips.com/topic/44063-post-your-awesome-batch-files/
https://superuser.com/questions/1335594/get-current-working-directory-of-another-process