What do you want to save?
Add Code snippet
New code examples
-
Other 2022-03-16 20:00:04
nginx reload on windows
nginx -s stop #fast shutdown nginx -s quit #graceful shutdown nginx -s reload #changing configuration, starting new worker processes with a new configuration, graceful shutdown of old worker processes nginx -s reopen #re-opening log files Add solution -
Shell/Bash 2022-02-27 08:05:02
find php files not used for x days
# /opt/script/delete-old-folders.sh #!/bin/bash prev_count=0 fpath=/var/log/app/app_log.* find $fpath -type d -mtime +10 -exec ls -ltrh {} \; > /tmp/folder.out find $fpath -type d -mtime +10 -exec rm -rf {} \; count=$(cat /tmp/folder.out | wc -l) if... Add solution -
SQL 2022-02-27 06:20:05
how to check sql server agent job history
-In Object Explorer, connect to an instance of the SQL Server Database Engine, and then expand that instance. -Expand SQL Server Agent, and then expand Jobs. -Right-click a job, and then click View History. -In the Log File Viewer, view the job history. -... Add solution -
PHP 2022-02-23 08:05:07
Example wp-config.php for Debugging
// Enable WP_DEBUG mode define( 'WP_DEBUG', true ); // Enable Debug logging to the /wp-content/debug.log file define( 'WP_DEBUG_LOG', true ); // Disable display of errors and warnings define( 'WP_DEBUG_DISPLAY', false ); @ini_set( 'display_errors', 0 );... Add solution -
Shell/Bash 2022-02-13 20:30:36
systemd write log to file
Redirect StandardOutput=file:/var/log/flume-ng/log1.log StandardError=file:/var/log/flume-ng/log2.log as documented here: https://www.freedesktop.org/software/systemd/man/systemd.exec.html#StandardOutput= Note that this way the whole log files contents w... Add solution -
Other 2022-01-31 12:41:03
wordpress debug mode
// Enable WP_DEBUG mode define( 'WP_DEBUG', true ); // Enable Debug logging to the /wp-content/debug.log file define( 'WP_DEBUG_LOG', true ); // Disable display of errors and warnings define( 'WP_DEBUG_DISPLAY', false ); @ini_set( 'display_errors', 0 );... Add solution -
PHP 2022-01-31 00:26:02
wp debug
// Enable WP_DEBUG mode define( 'WP_DEBUG', true ); // Enable Debug logging to the /wp-content/debug.log file define( 'WP_DEBUG_LOG', true ); // Disable display of errors and warnings define( 'WP_DEBUG_DISPLAY', false ); @ini_set( 'display_errors', 0 );... Add solution -
C# 2021-11-21 08:25:13
constructor and destructor in c#.net
What is a constructor in C#? A special method of the class that is automatically invoked when an instance of the class is created is called a constructor. The main use of constructors is to initialize the private fields of the class while creating an i... Add solution -
Shell/Bash 2021-11-21 03:18:12
create a virtual host in apache
# File: /etc/apache2/sites-available/domain1.com.conf <VirtualHost *:80> # Server Name (domain name) and any aliases ServerName domain1.com ServerAlias www.domain1.com #OPTIONAL Admin name ServerAdmin [email protected] # I... Add solution -
Shell/Bash 2021-11-20 10:43:19
extract ip address from string powershell pattern
$Results = @() $Hosts = @() $Server = "Server01" $LogPath = "C:\logs\$Server\logs\server.log" #Checking log file $Lines = Get-Content $LogPath | Where-Object {$_ -match "AUDIT &quo... Add solution
Best helpers
Shachna
+5
Cali
+5
Veirtimid
+5
Anon8889
+5
Sardathrion
+5
Nuria
+5
Tony Ong
+5
Mike Adams
+5
PoundingRain
+5
Alexingohr
+5
Zhengyue
+5
Shahar Tene
+5
Kang
+5
Altexpape
+5