This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to make Bash Prompt more live and fun. | |
To be more specific - every time when Enter is pressed random ASCII and UTF symbol is printed in bash prompt. | |
Just add to ~/.bashrc | |
if [ "$LOGNAME" = root ] || [ "`id -u`" -eq 0 ] ; then | |
export PS1="\[\e[01;23;38;5;11;48;5;214m\] \[\e[01;31m\]$(/bin/hostname | tr "[:lower:]" "[:upper:]") \[\e[38;5;11;48;5;1m\]#\[\e[22;38;5;196;48;5;16m\] " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
железо: | |
disk = disk= WDC PC SN520 SDAPMUW-512G-1101 | |
cpu = Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz stepping 12 | |
-------------------- | |
конфиг: | |
$ cat rr.fio | |
[global] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:81> | |
ServerName gitserver | |
DocumentRoot /var/www/gitweb | |
<Directory /var/www/gitweb> | |
Options +ExecCGI +FollowSymLinks +SymLinksIfOwnerMatch | |
AllowOverride All | |
order allow,deny | |
Allow from all | |
AddHandler cgi-script cgi | |
DirectoryIndex gitweb.cgi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Listen 81 | |
Listen 82 | |
<IfModule ssl_module> | |
Listen 444 | |
</IfModule> | |
<IfModule mod_gnutls.c> | |
Listen 444 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:81> | |
Servername git | |
ServerAdmin webmaster@localhost | |
DocumentRoot /home/ubuntu | |
<Directory /home/ubuntu> | |
Allow from All | |
Options +ExecCGI | |
AllowOverride All | |
Require all granted | |
</Directory> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thu Oct 5 15:43:46 2017 +0000 Merged in germanLanguageImprovements (pull request #2) | |
Fri Sep 29 20:28:04 2017 +0200 Fixed issues in menu and help section according to requirements from BASF | |
Mon Aug 28 19:33:04 2017 +0100 Lang changes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@da1-stor192:~# cat ./01.sh | |
#!/bin/bash | |
disk=$1 | |
sd=`echo "*sd_state::softstate 0t$disk" | mdb -kw` | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sr; | |
sr=[]; | |
var zs; | |
zs=0; | |
var ar; | |
ar=[]; | |
ar=[100, -9, 2, -3, 5]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ar; | |
ar=[]; | |
ar[0]=0; | |
for (var i=1; i<=100; i++) { | |
ar[i]=i; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function power2 (a,n){ | |
var pow; | |
pow=1; | |
for (var i=1; i <=n; i++){ | |
pow = pow * a; | |
}; |
NewerOlder