Tuesday, March 28, 2023

Proxy settings ↯ 🚶 🏃

netsh winhttp set proxy 10.0.0.6:8080


netsh winhttp reset proxy 

Tunnel all your internet traffic through a socks proxy:

netsh winhttp set proxy proxy-server="socks=localhost:9090" bypass-list="localhost"

View the current proxy settings:

netsh winhttp show proxy

Clear all proxy settings:

netsh winhttp reset proxy






Davinci Resolve AAC Nvidia = 

https://www.regataos.com/


https://nobaraproject.org/


https://www.howtogeek.com/881317/how-to-run-a-chatgpt-like-ai-on-your-own-pc/


chrome://net-internals/#dns
 ipconfig /flushdns
https://www.makeuseof.com/tag/what-is-dns-cache-poisoning/

**********



























The latest and greatest:


Just check this out: https://youtu.be/CJ41KZ0fBMc

Installing Linux The "Right" Way by Chris Titus Tech.

Highly recommend this as starting base:

https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/11.6.0+nonfree/amd64/iso-cd/











Install LXDE on Antix:

sudo apt update

sudo apt install lxde task-lxde-desktop -y

sudo dpkg-reconfigure gdm3

sudo apt-get install lxterminal

sudo dpkg-reconfigure lxsession

sudo dpkg-reconfigure xfce4-terminal

or

sudo update-alternatives --config x-terminal-emulator



Smart Card on Linux:

https://docs.citrix.com/en-us/linux-virtual-delivery-agent/current-release/configure/authentication/support-for-smart-cards.html

apt-get install -y libpcsclite1 libccid

apt-get install -y opensc

apt-get install libpam-krb5 krb5-pkinit

apt-get install -y libpam-krb5 krb5-pkinit

authconfig --enablekrb5 --update


In the /etc/krb5.conf configuration file, add PKINIT information according to the actual realm.

EXAMPLE.COM = {

    kdc = KDC.EXAMPLE.COM

    auth_to_local = RULE:[1:$1@$0]

    pkinit_anchors = FILE:<path where you install the root certificate>/certnew.pem

    pkinit_kdc_hostname = KDC.EXAMPLE.COM

    pkinit_cert_match = ||<EKU>msScLogin,<KU>digitalSignature

    pkinit_eku_checking = kpServerAuth

 }


To Be TINY:




#srbija #serbia #Linux #Alpine #Multimedia 

Alpine Linux + XFCE + FreeTube + HTOP = less than 449MB RAM USAGE:

















Monday, March 27, 2023

MultiOS-USB

 https://github.com/Mexit/MultiOS-USB


https://www.pendrivelinux.com/yumi-multiboot-usb-creator/


https://intellipaat.com/blog/tutorial/sql-tutorial/sql-commands-cheat-sheet


https://sourceforge.net/projects/delphiemail/


https://www.indyproject.org/2005/08/17/html-messages/


https://www.deepl.com/translator#hu/en/Gyere%20ide

https://translator.microsoft.com/

https://www.linguee.com/hungarian-english

https://languagetool.org/



https://www.netrunner.com/


keyboard-keystroke-sounds


https://stackoverflow.com/questions/24592270/how-can-a-message-client-read-an-attachment-downloaded-by-indy

Memo1.Lines.Text := TIdText(IdMessage1.MessageParts.Items[0]).Body.Text;

http://www.delphigroups.info/2/11/214438.html


http://www.delphigroups.info/2/13/194535.html

http://www.delphigroups.info/2/11/795694.html

https://www.delphipraxis.net/178180-%5Bindy%5D-tidsmtp-und-anhaenge.html

Basic Commands in SQL:

CommandSyntaxDescription
ALTER tableALTER TABLE table_name ADD column_name datatype;It is used to add columns to a table in a database
ANDSELECT column_name(s)FROM table_nameWHERE column_1 = value_1  AND column_2 = value_2;It is an operator that is used to combine two conditions
ASSELECT column_name AS ‘Alias’FROM table_name;It is a keyword in SQL that is used to rename a column or table using an alias name
AVGSELECT AVG(column_name)FROM table_name;It is used to aggregate a numeric column and return its average
BETWEENSELECT column_name(s)FROM table_nameWHERE column_name BETWEEN value_1 AND value_2;It is an operation used to filter the result within a certain range
CASESELECT column_name,CASEWHEN condition THEN ‘Result_1’WHEN condition THEN ‘Result_2’ELSE ‘Result_3’ENDFROM table_name;It is a statement used to create different outputs inside a SELECT statement
COUNTSELECT COUNT(column_name)FROM table_name;It is a function that takes the name of a column as an argument and counts the number of rows when the column is not NULL
Create TABLECREATE TABLE table_name (  column_1 datatype,   column_2 datatype,   column_3 datatype);It is used to create a new table in a database and specify the name of the table and columns inside it
DELETEDELETE FROM table_nameWHERE some_column = some_value;It is used to remove the rows from a table
GROUP BYSELECT column_name, COUNT(*)FROM table_nameGROUP BY column_name;It is a clause in SQL used for aggregate functions in collaboration with the SELECT statement
HAVINGSELECT column_name, COUNT(*)FROM table_nameGROUP BY column_nameHAVING COUNT(*) > value;It is used in SQL because the WHERE keyword cannot be used in aggregating functions
INNER JOINSELECT column_name(s)FROM table_1JOIN table_2  ON table_1.column_name = table_2.column_name;It is used to combine rows from different tables if the Join condition goes TRUE
INSERTINSERT INTO table_name (column_1, column_2, column_3) VALUES (value_1, ‘value_2’, value_3);It is used to add new rows to a table
IS NULL/ IS NOT NULLSELECT column_name(s)FROM table_nameWHERE column_name IS NULL;It is an operator used with the WHERE clause to check for the empty values
LIKESELECT column_name(s)FROM table_nameWHERE column_name LIKE pattern;It is a special operator used with the WHERE clause to search for a specific pattern in a column
LIMITSELECT column_name(s)FROM table_nameLIMIT number;It is a clause to specify the maximum number of rows the result set must have
MAXSELECT MAX(column_name)FROM table_name;It is a function that takes a number of columns as an argument and returns the largest value among them
MINSELECT MIN(column_name)FROM table_name;It is a function that takes a number of columns as an argument and returns the smallest value among them
ORSELECT column_nameFROM table_nameWHERE column_name = value_1   OR column_name = value_2;It is an operator that is used to filter the result set to contain only the rows where either condition is TRUE
ORDER BYSELECT column_nameFROM table_nameORDER BY column_name ASC | DESC;It is a clause used to sort the result set by a particular column either numerically or alphabetically
OUTER JOINSELECT column_name(s)FROM table_1LEFT JOIN table_2  ON table_1.column_name = table_2.column_name;It issued to combine rows from different tables even if the condition is NOT TRUE
ROUNDSELECT ROUND(column_name, integer)FROM table_name;It is a function that takes the column name and an integer as an argument and rounds the values in a column to the number of decimal places specified by an integer
SELECTSELECT column_name FROM table_name;It is a statement that is used to fetch data from a database
SELECT DISTINCTSELECT DISTINCT column_nameFROM table_name;It is used to specify that the statement is a query that returns unique values in specified columns
SUMSELECT SUM(column_name)FROM table_name;It is a function used to return the sum of values from a particular column
UPDATEUPDATE table_nameSET some_column = some_valueWHERE some_column = some_value;It is used to edit rows in a table
WHERESELECT column_name(s)FROM table_nameWHERE column_name operator value;It is a clause used to filter the result set to include the rows where the condition is TRUE
WITHWITH temporary_name AS (SELECT *FROM table_name)SELECT *FROM temporary_nameWHERE column_name operator value;It is used to store the result of a particular query in a temporary table using an alias

************

Commands for querying data:

Single TableMultiple Table
SELECT c1 FROM t
To select the data in Column c1 from table t
SELECT c1, c2
FROM t1
INNER JOIN t2 on conditionSelect column c1 and c2 from table t1 and perform an inner join between t1 and t2
SELECT * FROM t
To select all rows and columns from table t
SELECT c1, c2
FROM t1
LEFT JOIN t2 on condition
Select column c1 and c2 from table t1 and perform a left join between t1 and t2
SELECT c1 FROM t
WHERE c1 = ‘test’
To select data in column c1 from table t, where c1=test
SELECT c1, c2
FROM t1
RIGHT JOIN t2 on condition
Select column c1 and c2 from table t1 and perform a right join between t1 and t2
SELECT c1 FROM t
ORDER BY c1 ASC (DESC)
To select data in column c1 from table t either in ascending or descending order
SELECT c1, c2
FROM t1
FULL OUTER JOIN t2 on condition
Select column c1 and c2 from table t1 and perform a full outer join between t1 and t2
SELECT c1 FROM t
ORDER BY c1LIMIT n OFFSET offset
To skip the offset of rows and return the next n rows
SELECT c1, c2
FROM t1
CROSS JOIN t2
Select column c1 and c2 from table t1 and produce a Cartesian product of rows in a table
SELECT c1, aggregate(c2)
FROM t
GROUP BY c1
To group rows using an aggregate function
SELECT c1, c2
FROM t1, t2Select column c1 and c2 from table t1 and produce a Cartesian product of rows in a table
SELECT c1, aggregate(c2)
FROM t
GROUP BY c1HAVING condition
Group rows using an aggregate function and filter these groups using ‘HAVING’ clause
SELECT c1, c2
FROM t1 A
INNER JOIN t2 B on condition
Select column c1 and c2 from table t1 and join it to itself using INNER JOIN clause

Thursday, March 23, 2023

UDP CHAT

 unit Unit1;


{$mode objfpc}{$H+}

interface

uses
  Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, IdUDPServer,
  IdUDPClient, IdSocketHandle, IdGlobal;

type

  { TForm1 }

  TForm1 = class(TForm)
    Button1: TButton;
    Edit1: TEdit;
    IdUDPClient1: TIdUDPClient;
    IdUDPServer1: TIdUDPServer;
    Memo1: TMemo;
    procedure Button1Click(Sender: TObject);
    procedure IdUDPServer1UDPRead(AThread: TIdUDPListenerThread;
      const AData: TIdBytes; ABinding: TIdSocketHandle);
  private

  public

  end;

var
  Form1: TForm1;
  Msg: string;

implementation

{$R *.lfm}

{ TForm1 }



procedure TForm1.Button1Click(Sender: TObject);
begin
  IdUDPClient1.Send(Edit1.Text);
  Memo1.Lines.Add('You: ' + Edit1.Text);
  Edit1.Clear;
end;

procedure TForm1.IdUDPServer1UDPRead(AThread: TIdUDPListenerThread;
  const AData: TIdBytes; ABinding: TIdSocketHandle);
begin
  if BytesToString(AData) <> 'Hello' then begin
    ABinding.SendTo(ABinding.PeerIP, ABinding.PeerPort, ToBytes(Byte(0)));
  end;
  Memo1.Lines.Add(ToHex(AData));
  Memo1.Lines.Add('ser>>'+BytesToString(AData));

  //Memo1.GoToTextEnd;
end;

end.


https://intellipaat.com/blog/database-partitioning-techniques









HOW TO FIND THE IP AND MAC ADDRESSES ON A LINUX COMPUTER

  1. In a terminal window, type "ifconfig -a" and press return.
  2. In the list of interfaces, find eth0.
  3. Locate the number next to HWAddr.

look at ether line.

On Windows in CMD type getmac command.

Wednesday, March 22, 2023

Install Centos 7 xfce




 Example we create new user with username is tuto:

Step 1:

1
useradd tuto

Step 2:
Set password with command: passwd

1
2
3
4
5
[root@tuto ~]# passwd tutorials
Changing password for user tuto.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.

Step 3:
Edit file /etc/sudoers:
visudo or sudo vi /etc/sudoers

Add this line:

1
tuto    ALL=(ALL)       ALL

Done!

Note: if you use command you might get warning:

1
-- INSERT -- W10: Warning: Changing a readonly file



Step 2: Switch user:

1
su - tuto

II. Install xfce

Step 3: Install xfce

1
2
yum install epel-release
yum groupinstall xfce

Step One

Install Epel Release

First, enable the epel release on CentOS 7.

yum -y install epel-release

Step Two

install htop With Yum Command

Now we can install CentOS htop using yum install command.

yum -y install htop

 

Now to start htop program, Open Linux Terminal and type htop

(Snap & Flatpak) @ CentOS7 =


https://www.cyberithub.com/how-to-install-and-use-snapd-on-rhel-centos-7-8-using-10-easy-steps/

https://flatpak.org/setup/CentOS#:~:text=Flatpak%20is%20installed%20by%20default,do%20is%20install%20some%20apps!

https://www.makeuseof.com/best-sites-for-cheat-sheets-shortcuts-quick-reference


https://www.makeuseof.com/ways-chatgpt-enhance-workday-productivity



Windows 10 goodies:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AU]

"NoAutoUpdate"=dword:00000001



REACT PROGRAMMING:

https://legacy.reactjs.org/docs/cdn-links.html

https://babeljs.io/docs/babel-standalone