A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4698

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 693
Function: getPaste

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

Bash - Stikked
From Fiery Pudu, 13 Years ago, written in Bash.
This paste is a reply to Codemirror test from Gracious Treeshrew - view diff
Embed
  1. #!/bin/bash
  2.  
  3. # clone the repository
  4. git clone http://github.com/garden/tree
  5.  
  6. # generate HTTPS credentials
  7. cd tree
  8. openssl genrsa -aes256 -out https.key 1024
  9. openssl req -new -nodes -key https.key -out https.csr
  10. openssl x509 -req -days 365 -in https.csr -signkey https.key -out https.crt
  11. cp https.key{,.orig}
  12. openssl rsa -in https.key.orig -out https.key
  13.  
  14. # start the server in HTTPS mode
  15. cd web
  16. sudo node ../server.js 443 'yes' >> ../node.log &
  17.  
  18. # here is how to stop the server
  19. for pid in `ps aux | grep 'node ../server.js' | awk '{print $2}'` ; do
  20.   sudo kill -9 $pid 2> /dev/null
  21. done
  22.  
  23. exit 0