Tips and Tricks: Difference between revisions
Jump to navigation
Jump to search
imported>Gfis →Debian dist-upgrades: Apache2 |
imported>Gfis Wiki converter |
||
Line 1: | Line 1: | ||
===Positive returncode in makefile=== | ===Positive returncode in makefile=== | ||
diff -w -y --suppress-common-lines --width=32 bf.tmp pn.tmp '''|| :''' | diff -w -y --suppress-common-lines --width=32 bf.tmp pn.tmp '''|| :''' | ||
^^^^ | |||
===Convert MediaWiki to GitHub's MarkDown=== | |||
* Script from [https://github.com/philipashlock/mediawiki-to-markdown Philip Ashlock], needs [https://pandoc.org/ PanDoc] and a dump (from <cpde>dumpBackup.php</code> | |||
===Running Delphi programs under Linux=== | ===Running Delphi programs under Linux=== | ||
* Install <code>wine</code> and <code>xvfb</code> for headless terminals. | * Install <code>wine</code> and <code>xvfb</code> for headless terminals. |
Revision as of 12:16, 22 August 2019
Positive returncode in makefile
diff -w -y --suppress-common-lines --width=32 bf.tmp pn.tmp || : ^^^^
Convert MediaWiki to GitHub's MarkDown
- Script from Philip Ashlock, needs PanDoc and a dump (from <cpde>dumpBackup.php
Running Delphi programs under Linux
- Install
wine
andxvfb
for headless terminals. - For Intraweb applications, determine a free port, for example 8080.
- Create and fill a MySQL database on the Linux server, and configure that database in the Delphi application.
- Move the
delphi.exe
together withlibmysql.dll
(version 5.59 extracted from a MySQL-Windows-Distribution) to some directory under Linux. xvfb-run wine delphi.exe
, then Ctrl-Z andbg
- Open the application in a browser with the URL
http://www.punctum.com:8080/$/
.
Perl CPAN
perl -MCPAN -e shell
, autoconfig follows- amend environment:
PATH="/home/User/perl5/bin${PATH:+:${PATH}}"; export PATH; (add "/home/User/perl5/bin" to PATH) PERL5LIB="/home/User/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB; PERL_LOCAL_LIB_ROOT="/home/User/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT; PERL_MB_OPT="--install_base \"/home/User/perl5\""; export PERL_MB_OPT; PERL_MM_OPT="INSTALL_BASE=/home/User/perl5"; export PERL_MM_OPT;
install bigint
Rosetta Coding
- from Michael Somos
Debian dist-upgrades
Wheezy to Jessie
- Ignore:
Setting up makedev (2.3.1-93) ... /run/udev or .udevdb or .udev presence implies active udev. Aborting MAKEDEV invocation. /run/udev or .udevdb or .udev presence implies active udev. Aborting MAKEDEV invocation. /run/udev or .udevdb or .udev presence implies active udev. Aborting MAKEDEV invocation.
- Ignore:
update-initramfs: Generating /boot/initrd.img-3.2.0-6-amd64 W: mdadm: unchecked configuration file: /etc/mdadm/mdadm.conf W: mdadm: please read /usr/share/doc/mdadm/README.upgrading-2.5.3.gz . W: mdadm: no arrays defined in configuration file.
- Apache2: rename all in
/etc/apache2/sites-available
to*.conf
, remove the symlinks insites-enabled/
and recreate them witha2ensite
; clear the browser cache thereafter.