and c.email_address NOT REGEXP ‘[-a-z0-9~!$%^&=+}{\\’?]+(\.[-a-z0-9~!$%^&=+}{\\’?]+)@([a-z0-9_][-a-z0-9_](\.[-a-z0-9_]+)*\.(aero|arpa|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|mobi|[a-z][a-z])|([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}))(:[0-9]{1,5})?’
Send a message to all clients in windows
2.2 The Net Send command syntax
In windows server 2012 : msg * In 5 minutes the server will be restarted
The Net Send command has the following syntax:
net send {username | * | /domain[:domainname] | /users} message
where
username – user name, computer name, or messaging name to which you want to send the message;
* – sends the message to all names in your domain or workgroup;
/domain[:domainname] – sends the message to all names in the computer’s domain or in the specified domain;
/users – sends the message to all users connected to the server;
message – specifies text of the message.

Hide windows folder
to hide command: Attrib +h +r +s <folder>
to unhide command: Attrib -h -r -s <folder>
How to set Postres Read Only Role for a Read only user script
Reference taken from this blog:
Script to Create Read-Only user:
CREATE ROLE Read_Only_User WITH LOGIN PASSWORD 'Test1234'
NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION VALID UNTIL 'infinity';
Assign permission to this read only user:
GRANT CONNECT ON DATABASE YourDatabaseName TO Read_Only_User;
GRANT USAGE ON SCHEMA public TO Read_Only_User;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO Read_Only_User;
GRANT SELECT ON ALL SEQUENCES IN SCHEMA public TO Read_Only_User;
Tomcat Manager Configuration
- Find the
CATALINA_HOME/webapps/manager/META-INF/context.xmlfile and add the comment markers around the Valve.
<Context antiResourceLocking="false" privileged="true" >
<!--
<Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" />
-->
</Context> - in the file apache-tomcat-9.0.11/conf/tomcat-users.xml
set up these rows :<role rolename=”manager-gui”/>
<role rolename=”manager-script”/>
<user username=”admin” password=”password” roles=”manager-gui,manager-script” /></tomcat-users> - Connect to localhost:8080/manager/status to verify the account
