-
Cron task for handling email in redmine
Go to redmine folder and copy use_redmine file: cp use_redmine proceed_mail Edit new document: nano ./proceed_mail Replace text with following (put your variables): #!/bin/bash . /opt/redmine-3.3.2-2/scripts/setenv.sh rake -f /opt/redmine-3.3.2-2/apps/redmine/htdocs/Rakefile redmine:email:receive_imap RAILS_ENV="production" host=mail_server [email protected] password=your_password move_on_success=read move_on_failure=failed To run Cron config, exec command: crontab -e Add following line to the end of the file (put your… -
Add event log source in Windows
Run powershell as Administrator and run following command: New-EventLog -Source "TestApi" -LogName "Application" -
Useful telegram bot commands
https://api.telegram.org/bot{your bot token}/setWebhook?url={message handler url} https://api.telegram.org/bot{your bot token}/getWebhookInfo https://api.telegram.org/bot{your bot token}/getMe -
Add proxy settings to IIS Applications with web.config
To set proxy settings for your IIS Application, just add following block to your web.config file: <system.net> <defaultProxy> <proxy proxyaddress="http://192.168.0.1:8080" bypassonlocal="true" /> </defaultProxy> </system.net> Put your proxy server settings in field "proxyaddress" . -
Useful redmine plugins and how to install them in bitnami redmine
List of plugins: http://www.redmine.org/plugins/boolean_query To install plugins, exec following commands in redmine htdocs folder(for me it's "/opt/bitnami/apps/redmine/htdocs"): bundle install bundle exec rake redmine:plugins:migrate RAILS_ENV=production And restart apache. I use following command to do it: /opt/redmine-3.3.2-2/ctlscript.sh restart apache -
Installing and configuring Bitnami Redmine
Lets get rid of app prefixes, open file: nano /opt/bitnami/apache2/conf/bitnami/bitnami-apps-prefix.conf Comment second line, like this: #Include "/opt/bitnami/apps/redmine/conf/httpd-prefix.conf" Save file by pressing Ctrl + X. Open file: nano /opt/bitnami/apache2/conf/bitnami/bitnami-apps-vhosts.conf Add following line: Include "/opt/bitnami/apps/redmine/conf/httpd-vhosts.conf" Save file by pressing Ctrl + X. Open file: nano /opt/bitnami/apps/redmine/conf/httpd-vhosts.conf Add following text with your parameters, change ServerName and ServerAlias: <VirtualHost… -
Setup WebClient timeout in PowerShell
If you want to setup timeout value for downloadString method of WebClient Class in PowerShell, you need to extend WebClient Class, because property Timeout isn't public. So, in the next example I inherited new ExtendedWebClient Class from WebClient Class. And I add public field Timeout to the new class. Then I overrode GetWebRequest Method to use… -
Windows App Certification Kit doesn’t work in Windows Server 2016
I develop Universal Windows Programs and found an interesting problem. You can't use UI version of Windows App Certification Kit when your OS is Windows Server 2016. When I tried to test my program before send it to Windows Store, I got an error from Windows App Certification Kit: But we can still use console app – appcert.exe… -
Start of month from date in MS SQL (opposite to EOMONTH function)
Sometimes we need to select values grouped by month from MS SQL Table. Probably the easiest way to do it is to call function DateAdd with DateDiff: SELECT Sum(YourColumn), DATEADD(month, DATEDIFF(month, 0, [YourDateColumn]), 0) as 'Date' FROM YourTable GROUP BY DATEADD(month, DATEDIFF(month, 0, [YourDateColumn]), 0); Or we can use EOMONTH function that give us date that is… -
Sendmail config when MX record points to another server
If your domain mail is hosted on mail server in a different domain, you should tell your sendmail about it. Otherwise if you try to send a mail to a user in your local domain, you will get an error from sendmail at /vat/log/mail.log: User unknown. It means that sendmail is trying to find user, that…
Loading posts...