GitHub - soldair/node-qrcode: qr code generator

what is this i just downloaded (youtube code?)

so this is kinda a wierd story. I was planning to restart my computer. (cant remember why) I spend most of my time watching youtube videos so i had alot of tabs open. So i was watching the videos then deleting the tab but not opening new tabs. So i was down 2 i think 1 it was a pretty long video so i tried to open a youtube home page tab just to look while i listened to the video. And this is a short exerp of what i got.





YouTube











submitted by inhuman7773 to techsupport [link] [comments]

Updating kernel from 5.6.19 to 5.8.0 with X1 Extreme Gen 2 (X1E2)

Summary

I was using linux-*-5.6.19-xanmod1, noticed kernel 5.6 finished the support and I noticed this post.
So I decided to update.

Steps

Install the kernel packages and then reboot:
aptitude install linux-headers-5.8.0-xanmod2 aptitude install linux-image-5.8.0-xanmod2 reboot
I thought I have to do this, and I did not have to. I am leaving this as note for further reference:
```

This is to be skipped

dpkg-reconfigure nvidia-dkms-450

```
Remove old kernel packages:
aptitude purge linux-headers-5.6.19-xanmod1 aptitude purge linux-image-5.6.19-xanmod1
Above command leaves the directory /lib/modules/5.6.19-xanmod1 because I was hacking some code to use both fans on my X1E2 and apply battery charge thresholds and recalibration with TLP.
rm -fr /lib/modules/5.6.19-xanmod1

Post Update

Undervolt

I revised Undervolt Setting with the Reddit Post mentioned at the summary section (The details about the following file can be found at this page).
```

/etc/systemd/system/undervolt.service

[Unit] Description=undervolt
[Service] Type=oneshot ExecStart=/uslocal/src/undervolt/undervolt.py --core -150 --gpu -100 --cache -150 --uncore -50 ```

acpi-call-dkms

I re-installed acpi-call-dkms for TLP (Again, the details can be found at this page).
I am not sure if I still have to do this with 5.8, but Arch's website says ThinkPad needs to have it.
```

If not installed

aptitude install acpi-call-dkms

Above package has not been maintained and fails at the post installation

if your current kernel version is newer than 5.6.

So you need to amend a bit as follows:

cd /uslocal/src cp -ra /ussrc/acpi-call-1.1.0 acpi-call-1.1.0-custom cd acpi-call-1.1.0-custom

Amend "acpi_call.c"

Find the lines having:

static struct file_operations proc_acpi_operations = {

Before

static struct file_operations proc_acpi_operations = { .owner = THIS_MODULE, .read = acpi_proc_read, .write = acpi_proc_write, };

After

static const struct proc_ops proc_acpi_operations = { .proc_read = acpi_proc_read, .proc_write = acpi_proc_write, };

and after saving the change, compile it and install it

make

This shows some output with the word "error" and you just ignore them

as they are saying it failed at verifying the binary file

- The code has been changed so be it

make install depmod update-initramfs -u ```

Use "acpi-cpufreq" driver instead of "intel-pstate" driver

I do not remember why I kept using intel-pstate, but I decided to follow what the Reddit Post says to use schedutil.
```

/etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_pstate=disable pcie_aspm=force nvidia-drm.modeset=1" ```
update-grub reboot

Use "schedutil" with TLP

``` CPU_SCALING_GOVERNOR_ON_AC=schedutil CPU_SCALING_GOVERNOR_ON_BAT=schedutil
CPU_SCALING_MIN_FREQ_ON_BAT=800000 CPU_SCALING_MAX_FREQ_ON_BAT=2300000

You would want to amend more/less

```

References

Related Pages

submitted by Interesting-Object to X1ExtremeGen2Related [link] [comments]

Problem running php on nginx ubuntu (files get downloaded)

Hi everyone,
I'm very new to php and ran into some issue that I have been trying to fix for a couple of hours.
I have setup Nginx on ubuntu 19.10, and installed php7.4-fpm. But whenever I try to open a file like index.php, located in my root folder /vawww/html (so localhost/index.php) it will download the file instead of running it.
Nginx is not communicating with php7.4-fpm, is my guess, but I can not find the mistake in my configuration files..

Could anyone take a look and spot what would be wrong.
Below I've put the files, in order
  1. /etc/nginx/fastcgi.conf:
  2. /etc/nginx/fastcgi_params:
  3. /etc/nginx/sites-enabled/server.conf
  4. /etc/nginx/mime.types
  5. /etc/php/7.4/fpm/php-fpm.conf
  6. /etc/php/7.4/fpm/pool.d/www.conf
  7. selection of /etc/php/7.4/fpm/php.ini since posting it all is too long
  8. output service nginx status & service php7.4-fpm status

If I'm looking at the wrong files or something and the error could be located elsewhere please guide me in the right direction.
And if you already read this far, I would like to thank you for your time!

1/etc/nginx/fastcgi.conf:


fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param QUERY_STRING $query_string; fastcgi_param REQUEST_METHOD $request_method; fastcgi_param CONTENT_TYPE $content_type; fastcgi_param CONTENT_LENGTH $content_length; fastcgi_param SCRIPT_NAME $fastcgi_script_name; fastcgi_param REQUEST_URI $request_uri; fastcgi_param DOCUMENT_URI $document_uri; fastcgi_param DOCUMENT_ROOT $document_root; fastcgi_param SERVER_PROTOCOL $server_protocol; fastcgi_param REQUEST_SCHEME $scheme; fastcgi_param HTTPS $https if_not_empty; fastcgi_param GATEWAY_INTERFACE CGI/1.1; fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; fastcgi_param REMOTE_ADDR $remote_addr; fastcgi_param REMOTE_PORT $remote_port; fastcgi_param SERVER_ADDR $server_addr; fastcgi_param SERVER_PORT $server_port; fastcgi_param SERVER_NAME $server_name; # PHP only, required if PHP was built with --enable-force-cgi-redirect fastcgi_param REDIRECT_STATUS 200; 

2. /etc/nginx/fastcgi_params:

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param QUERY_STRING $query_string; fastcgi_param REQUEST_METHOD $request_method; fastcgi_param CONTENT_TYPE $content_type; fastcgi_param CONTENT_LENGTH $content_length; fastcgi_param SCRIPT_NAME $fastcgi_script_name; fastcgi_param REQUEST_URI $request_uri; fastcgi_param DOCUMENT_URI $document_uri; fastcgi_param DOCUMENT_ROOT $document_root; fastcgi_param SERVER_PROTOCOL $server_protocol; fastcgi_param REQUEST_SCHEME $scheme; fastcgi_param HTTPS $https if_not_empty; fastcgi_param GATEWAY_INTERFACE CGI/1.1; fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; fastcgi_param REMOTE_ADDR $remote_addr; fastcgi_param REMOTE_PORT $remote_port; fastcgi_param SERVER_ADDR $server_addr; fastcgi_param SERVER_PORT $server_port; fastcgi_param SERVER_NAME $server_name; # PHP only, required if PHP was built with --enable-force-cgi-redirect fastcgi_param REDIRECT_STATUS 200; 

3. /etc/nginx/sites-enabled/server.conf

# Version=2.1 server { listen 80; listen [::]:80; listen 443 ssl http2; listen [::]:443 ssl http2; # # This file will be managed by ATK, and overwitten without warning. # # To enable external access please consider installing DuckDNS using ATK. # # For external access using a custom domain: # # 1) Make a copy of this file and rename it to match your domain # # ex: /etc/nginx/sites-available/mydomain.com.conf # # 2) Edit your file and replace the entire `server_name` line with `server_name mydomain.com;` # # (do not include IP addresses) # # 3) Run `sudo ln -s /etc/nginx/sites-available/mydomain.com.conf /etc/nginx/sites-enabled/mydomain.com.conf` # # 4) Run `sudo systemctl reload nginx` # # You can then use ATK to run Certbot on your custom domain for HTTPS # # You can also modify your new file to enabling some of the extra features below by uncommenting the lines # # If you modify your file you will need to rerun the command in step 4 above server_name 127.0.0.1 localhost 192.168.1.248 0.0.0.0; access_log /valog/nginx/server.atomic.access.log; error_log /valog/nginx/server.atomic.error.log; index index.html index.php; root /vawww/html/; client_body_buffer_size 128k; client_max_body_size 100M; send_timeout 5m; server_tokens off; location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/varun/php7.4-fpm.sock; fastcgi_index index.php; include fastcgi.conf;} location ~ /\.ht { deny all; } ## # Snippet Config ## include /etc/nginx/snippets/gzip.atomic.conf; # include /etc/nginx/snippets/headers-hsts.atomic.conf; # WARNING: Only enable Strict Transport after confirming HTTPS is working include /etc/nginx/snippets/headers.atomic.conf; # include /etc/nginx/snippets/https-redirect.atomic.conf; # WARNING: Only enable HTTPS Redirect after confirming HTTPS is working include /etc/nginx/snippets/letsencrypt.atomic.conf; include /etc/nginx/snippets/proxy.atomic.conf; # include /etc/nginx/snippets/ssl-dhparam.atomic.conf; # WARNING: Only enable dhparam after running `openssl dhparam -out /etc/nginx/dhparam.pem 4096` include /etc/nginx/snippets/ssl.atomic.conf; ## # App Location Config ## include /etc/nginx/locations-enabled/*.atomic.conf; ssl_certificate /etc/letsencrypt/live/****/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/****/privkey.pem; # managed by Certbot } 

4. /etc/nginx/mime.types

types { text/html html htm shtml; text/css css; text/xml xml; image/gif gif; image/jpeg jpeg jpg; application/javascript js; application/atom+xml atom; application/rss+xml rss; text/mathml mml; text/plain txt; text/vnd.sun.j2me.app-descriptor jad; text/vnd.wap.wml wml; text/x-component htc; image/png png; image/tiff tif tiff; image/vnd.wap.wbmp wbmp; image/x-icon ico; image/x-jng jng; image/x-ms-bmp bmp; image/svg+xml svg svgz; image/webp webp; application/font-woff woff; application/java-archive jar war ear; application/json json; application/mac-binhex40 hqx; application/msword doc; application/pdf pdf; application/postscript ps eps ai; application/rtf rtf; application/vnd.apple.mpegurl m3u8; application/vnd.ms-excel xls; application/vnd.ms-fontobject eot; application/vnd.ms-powerpoint ppt; application/vnd.wap.wmlc wmlc; application/vnd.google-earth.kml+xml kml; application/vnd.google-earth.kmz kmz; application/x-7z-compressed 7z; application/x-cocoa cco; application/x-java-archive-diff jardiff; application/x-java-jnlp-file jnlp; application/x-makeself run; application/x-perl pl pm; application/x-pilot prc pdb; application/x-rar-compressed rar; application/x-redhat-package-manager rpm; application/x-sea sea; application/x-shockwave-flash swf; application/x-stuffit sit; application/x-tcl tcl tk; application/x-x509-ca-cert der pem crt; application/x-xpinstall xpi; application/xhtml+xml xhtml; application/xspf+xml xspf; application/zip zip; application/octet-stream bin exe dll; application/octet-stream deb; application/octet-stream dmg; application/octet-stream iso img; application/octet-stream msi msp msm; application/vnd.openxmlformats-officedocument.wordprocessingml.document docx; application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx; application/vnd.openxmlformats-officedocument.presentationml.presentation pptx; audio/midi mid midi kar; audio/mpeg mp3; audio/ogg ogg; audio/x-m4a m4a; audio/x-realaudio ra; video/3gpp 3gpp 3gp; video/mp2t ts; video/mp4 mp4; video/mpeg mpeg mpg; video/quicktime mov; video/webm webm; video/x-flv flv; video/x-m4v m4v; video/x-mng mng; video/x-ms-asf asx asf; video/x-ms-wmv wmv; video/x-msvideo avi; } 

5. /etc/php/7.4/fpm/php-fpm.conf

;;;;;;;;;;;;;;;;;;;;; ; FPM Configuration ; ;;;;;;;;;;;;;;;;;;;;; ; All relative paths in this configuration file are relative to PHP's install ; prefix (/usr). This prefix can be dynamically changed by using the ; '-p' argument from the command line. ;;;;;;;;;;;;;;;;;; ; Global Options ; ;;;;;;;;;;;;;;;;;; [global] ; Pid file ; Note: the default prefix is /var ; Default Value: none ; Warning: if you change the value here, you need to modify systemd ; service PIDFile= setting to match the value here. pid = /run/php/php7.4-fpm.pid ; Error log file ; If it's set to "syslog", log is sent to syslogd instead of being written ; into a local file. ; Note: the default prefix is /var ; Default Value: log/php-fpm.log error_log = /valog/php7.4-fpm.log ;syslog.facility = daemon ;syslog.ident = php-fpm ;log_level = notice ;log_limit = 4096 ;log_buffering = no ;emergency_restart_threshold = 0 ;emergency_restart_interval = 0 ;process_control_timeout = 0 ; process.max = 128 ; process.priority = -19 ; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging. ; Default Value: yes ;daemonize = yes ;rlimit_files = 1024 ;rlimit_core = 0 ;events.mechanism = epoll ; When FPM is built with systemd integration, specify the interval, ; in seconds, between health report notification to systemd. ; Set to 0 to disable. ; Available Units: s(econds), m(inutes), h(ours) ; Default Unit: seconds ; Default value: 10 ;systemd_interval = 10 ;;;;;;;;;;;;;;;;;;;; ; Pool Definitions ; ;;;;;;;;;;;;;;;;;;;; ; Multiple pools of child processes may be started with different listening ; ports and different management options. The name of the pool will be ; used in logs and stats. There is no limitation on the number of pools which ; FPM can handle. Your system will tell you anyway :) ; Include one or more files. If glob(3) exists, it is used to include a bunch of ; files from a glob(3) pattern. This directive can be used everywhere in the ; file. ; Relative path can also be used. They will be prefixed by: ; - the global prefix if it's been set (-p argument) ; - /usr otherwise include=/etc/php/7.4/fpm/pool.d/*.conf 

6. /etc/php/7.4/fpm/pool.d/www.conf

; Start a new pool named 'www'. [www] ;prefix = /path/to/pools/$pool user = user group = user listen = /varun/php/php7.4-fpm.sock listen.owner = user listen.group = user ;listen.mode = 0660 pm = dynamic pm.max_children = 5 pm.start_servers = 2 pm.min_spare_servers = 1 pm.max_spare_servers = 3 ;chroot = ;chdir = /vawww ;catch_workers_output = yes ;decorate_workers_output = no ;clear_env = no 7. /etc/php/7.4/fpm/php.ini [PHP] engine = On short_open_tag = Off precision = 14 output_buffering = 4096 zlib.output_compression = Off implicit_flush = Off unserialize_callback_func = serialize_precision = -1 ;open_basedir = disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, disable_classes = zend.enable_gc = On zend.exception_ignore_args = On ;;;;;;;;;;;;;;;;; ; Miscellaneous ; ;;;;;;;;;;;;;;;;; expose_php = Off ;;;;;;;;;;;;;;;;;;; ; Resource Limits ; ;;;;;;;;;;;;;;;;;;; max_execution_time = 360 max_input_time = 360 ;max_input_nesting_level = 64 ; How many GET/POST/COOKIE input variables may be accepted ;max_input_vars = 1000 ; Maximum amount of memory a script may consume (128MB) ; http://php.net/memory-limit memory_limit = 512M ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Error handling and logging ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT display_errors = Off display_startup_errors = Off log_errors = On log_errors_max_len = 1024 ignore_repeated_errors = Off ignore_repeated_source = Off report_memleaks = On ;;;;;;;;;;;;;;;;; ; Data Handling ; ;;;;;;;;;;;;;;;;; variables_order = "GPCS" request_order = "GP" register_argc_argv = Off auto_globals_jit = On post_max_size = 8M auto_prepend_file = auto_append_file = default_mimetype = "text/html" default_charset = "UTF-8" ;;;;;;;;;;;;;;;;;;;;;;;;; ; Paths and Directories ; ;;;;;;;;;;;;;;;;;;;;;;;;; doc_root = user_dir = enable_dl = Off ;cgi.force_redirect = 1 ;cgi.nph = 1 ;cgi.redirect_status_env = ;cgi.fix_pathinfo=1 ;cgi.discard_path=1 ;fastcgi.impersonate = 1 ;fastcgi.logging = 0 ;cgi.rfc2616_headers = 0 ;cgi.check_shebang_line=1 ;;;;;;;;;;;;;;;; ; File Uploads ; ;;;;;;;;;;;;;;;; file_uploads = On upload_max_filesize = 250M max_file_uploads = 20 ;;;;;;;;;;;;;;;;;; ; Fopen wrappers ; ;;;;;;;;;;;;;;;;;; allow_url_fopen = On allow_url_include = Off ;user_agent="PHP" default_socket_timeout = 320 ;auto_detect_line_endings = Off ;;;;;;;;;;;;;;;;;;;;;; ; Dynamic Extensions ; ;;;;;;;;;;;;;;;;;;;;;; ;extension=bz2 ;extension=curl ;extension=ffi ;extension=ftp ;extension=fileinfo ;extension=gd2 ;extension=gettext ;extension=gmp ;extension=intl ;extension=imap ;extension=ldap ;extension=mbstring ;extension=exif ; Must be after mbstring as it depends on it ;extension=mysqli ;extension=oci8_12c ; Use with Oracle Database 12c Instant Client ;extension=odbc ;extension=openssl ;extension=pdo_firebird ;extension=pdo_mysql ;extension=pdo_oci ;extension=pdo_odbc ;extension=pdo_pgsql ;extension=pdo_sqlite ;extension=pgsql ;extension=shmop ;extension=snmp ;extension=soap ;extension=sockets ;extension=sodium ;extension=sqlite3 ;extension=tidy ;extension=xmlrpc ;extension=xsl ;;;;;;;;;;;;;;;;;;; ; Module Settings ; ;;;;;;;;;;;;;;;;;;; [CLI Server] cli_server.color = On [Date] ;date.timezone = [filter] ; http://php.net/filter.default ;filter.default = unsafe_raw ; http://php.net/filter.default-flags ;filter.default_flags = [iconv] ;iconv.input_encoding = ;iconv.internal_encoding = ;iconv.output_encoding = [imap] ;imap.enable_insecure_rsh=0 [intl] ;intl.error_level = E_WARNING ;intl.use_exceptions = 0 [sqlite3] ;sqlite3.extension_dir = ;sqlite3.defensive = 1 [Pcre] ;pcre.backtrack_limit=10000 ;pcre.recursion_limit=100000 ;pcre.jit=1 [Pdo] ;pdo_odbc.connection_pooling=strict ;pdo_odbc.db2_instance_name [Pdo_mysql] ; Default socket name for local MySQL connects. If empty, uses the built-in ; MySQL defaults. pdo_mysql.default_socket= [Phar] ; http://php.net/phar.readonly ;phar.readonly = On ; http://php.net/phar.require-hash ;phar.require_hash = On ;phar.cache_list = [mail function] ; For Win32 only. ; http://php.net/smtp SMTP = localhost ; http://php.net/smtp-port smtp_port = 25 ; For Win32 only. ; http://php.net/sendmail-from ;sendmail_from = [email protected] ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ; http://php.net/sendmail-path ;sendmail_path = ;mail.force_extra_parameters = ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename mail.add_x_header = Off ; The path to a log file that will log all mail() calls. Log entries include ; the full path of the script, line number, To address and headers. ;mail.log = ; Log mail to syslog (Event Log on Windows). ;mail.log = syslog [ODBC] ; http://php.net/odbc.default-db ;odbc.default_db = Not yet implemented ; http://php.net/odbc.default-user ;odbc.default_user = Not yet implemented ; http://php.net/odbc.default-pw ;odbc.default_pw = Not yet implemented ; Controls the ODBC cursor model. ; Default: SQL_CURSOR_STATIC (default). ;odbc.default_cursortype ; Allow or prevent persistent links. ; http://php.net/odbc.allow-persistent odbc.allow_persistent = On ; Check that a connection is still valid before reuse. ; http://php.net/odbc.check-persistent odbc.check_persistent = On ; Maximum number of persistent links. -1 means no limit. ; http://php.net/odbc.max-persistent odbc.max_persistent = -1 ; Maximum number of links (persistent + non-persistent). -1 means no limit. ; http://php.net/odbc.max-links odbc.max_links = -1 ; Handling of LONG fields. Returns number of bytes to variables. 0 means ; passthru. ; http://php.net/odbc.defaultlrl odbc.defaultlrl = 4096 ; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char. ; See the documentation on odbc_binmode and odbc_longreadlen for an explanation ; of odbc.defaultlrl and odbc.defaultbinmode ; http://php.net/odbc.defaultbinmode odbc.defaultbinmode = 1 [MySQLi] ; Maximum number of persistent links. -1 means no limit. ; http://php.net/mysqli.max-persistent mysqli.max_persistent = -1 ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements ; http://php.net/mysqli.allow_local_infile ;mysqli.allow_local_infile = On ; Allow or prevent persistent links. ; http://php.net/mysqli.allow-persistent mysqli.allow_persistent = On ; Maximum number of links. -1 means no limit. ; http://php.net/mysqli.max-links mysqli.max_links = -1 ; Default port number for mysqli_connect(). If unset, mysqli_connect() will use ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look ; at MYSQL_PORT. ; http://php.net/mysqli.default-port mysqli.default_port = 3306 ; Default socket name for local MySQL connects. If empty, uses the built-in ; MySQL defaults. ; http://php.net/mysqli.default-socket mysqli.default_socket = ; Default host for mysqli_connect() (doesn't apply in safe mode). ; http://php.net/mysqli.default-host mysqli.default_host = ; Default user for mysqli_connect() (doesn't apply in safe mode). ; http://php.net/mysqli.default-user mysqli.default_user = ; Default password for mysqli_connect() (doesn't apply in safe mode). ; Note that this is generally a *bad* idea to store passwords in this file. ; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw") ; and reveal this password! And of course, any users with read access to this ; file will be able to reveal the password as well. ; http://php.net/mysqli.default-pw mysqli.default_pw = ; Allow or prevent reconnect mysqli.reconnect = Off [mysqlnd] ; Enable / Disable collection of general statistics by mysqlnd which can be ; used to tune and monitor MySQL operations. mysqlnd.collect_statistics = On ; Enable / Disable collection of memory usage statistics by mysqlnd which can be ; used to tune and monitor MySQL operations. mysqlnd.collect_memory_statistics = Off ; Records communication from all extensions using mysqlnd to the specified log ; file. ; http://php.net/mysqlnd.debug ;mysqlnd.debug = ; Defines which queries will be logged. ;mysqlnd.log_mask = 0 ; Default size of the mysqlnd memory pool, which is used by result sets. ;mysqlnd.mempool_default_size = 16000 ; Size of a pre-allocated buffer used when sending commands to MySQL in bytes. ;mysqlnd.net_cmd_buffer_size = 2048 ; Size of a pre-allocated buffer used for reading data sent by the server in ; bytes. ;mysqlnd.net_read_buffer_size = 32768 ; Timeout for network requests in seconds. ;mysqlnd.net_read_timeout = 31536000 ; SHA-256 Authentication Plugin related. File with the MySQL server public RSA ; key. ;mysqlnd.sha256_server_public_key = [OCI8] ;oci8.privileged_connect = Off ;oci8.max_persistent = -1 ;oci8.persistent_timeout = -1 ;oci8.ping_interval = 60 ;oci8.connection_class = ;oci8.events = Off ;oci8.statement_cache_size = 20 ;oci8.default_prefetch = 100 ;oci8.old_oci_close_semantics = Off [PostgreSQL] pgsql.allow_persistent = On pgsql.auto_reset_persistent = Off ; Maximum number of persistent links. -1 means no limit. ; http://php.net/pgsql.max-persistent pgsql.max_persistent = -1 ; Maximum number of links (persistent+non persistent). -1 means no limit. ; http://php.net/pgsql.max-links pgsql.max_links = -1 pgsql.ignore_notice = 0 pgsql.log_notice = 0 [bcmath] ; Number of decimal digits for all bcmath functions. ; http://php.net/bcmath.scale bcmath.scale = 0 [browscap] ; http://php.net/browscap ;browscap = extra/browscap.ini [Session] session.save_handler = files ;session.save_path = "/valib/php/sessions" session.use_strict_mode = 0 ; Whether to use cookies. ; http://php.net/session.use-cookies session.use_cookies = 1 ; http://php.net/session.cookie-secure ;session.cookie_secure = session.use_only_cookies = 1 session.name = PHPSESSID session.auto_start = 0 session.cookie_lifetime = 0 session.cookie_path = / session.cookie_domain = session.cookie_httponly = session.cookie_samesite = ; Handler used to serialize data. php is the standard serializer of PHP. ; http://php.net/session.serialize-handler session.serialize_handler = php session.gc_probability = 0 session.gc_divisor = 1000 ; After this number of seconds, stored data will be seen as 'garbage' and ; cleaned up by the garbage collection process. ; http://php.net/session.gc-maxlifetime session.gc_maxlifetime = 1440 session.referer_check = ; Set to {nocache,private,public,} to determine HTTP caching aspects ; or leave this empty to avoid sending anti-caching headers. ; http://php.net/session.cache-limiter session.cache_limiter = nocache ; Document expires after n minutes. ; http://php.net/session.cache-expire session.cache_expire = 180 session.use_trans_sid = 0 ; Default Value: 32 ; Development Value: 26 ; Production Value: 26 session.sid_length = 26 session.trans_sid_tags = "a=href,area=href,frame=src,form=" ; Default Value: "" ; Development Value: "" ; Production Value: "" ;session.trans_sid_hosts="" session.sid_bits_per_character = 5 ;session.upload_progress.enabled = On ;session.upload_progress.cleanup = On ;session.upload_progress.prefix = "upload_progress_" ;session.upload_progress.name = "PHP_SESSION_UPLOAD_PROGRESS" ;session.upload_progress.freq = "1%" ;session.upload_progress.min_freq = "1" ; Only write session data when session data is changed. Enabled by default. ; http://php.net/session.lazy-write ;session.lazy_write = On [Assertion] ; Switch whether to compile assertions at all (to have no overhead at run-time) ; -1: Do not compile at all ; 0: Jump over assertion at run-time ; 1: Execute assertions ; Changing from or to a negative value is only possible in php.ini! (For turning assertions on and off at run-time, see assert.active, when zend.assertions = 1) ; Default Value: 1 ; Development Value: 1 ; Production Value: -1 ; http://php.net/zend.assertions zend.assertions = -1 ;assert.active = On ;assert.exception = On ;assert.warning = On ;assert.bail = Off ;assert.callback = 0 ;assert.quiet_eval = 0 [COM] ;com.typelib_file = ;com.allow_dcom = true ;com.autoregister_typelib = true ;com.autoregister_casesensitive = false ;com.autoregister_verbose = true ;com.code_page= [mbstring] ;mbstring.language = Japanese ;mbstring.internal_encoding = ;mbstring.http_input = ;mbstring.http_output = ;mbstring.encoding_translation = Off ;mbstring.detect_order = auto ;mbstring.substitute_character = none ;mbstring.func_overload = 0 ;mbstring.strict_detection = On ;mbstring.http_output_conv_mimetype= ;mbstring.regex_stack_limit=100000 ;mbstring.regex_retry_limit=1000000 [gd] ;gd.jpeg_ignore_warning = 1 [exif] ;exif.encode_unicode = ISO-8859-15 ;exif.decode_unicode_motorola = UCS-2BE ;exif.decode_unicode_intel = UCS-2LE ;exif.encode_jis = ;exif.decode_jis_motorola = JIS ;exif.decode_jis_intel = JIS [Tidy] tidy.clean_output = Off [soap] soap.wsdl_cache_enabled=1 soap.wsdl_cache_dir="/tmp" soap.wsdl_cache_ttl=86400 soap.wsdl_cache_limit = 5 [sysvshm] ;sysvshm.init_mem = 10000 [ldap] ; Sets the maximum number of open links or -1 for unlimited. ldap.max_links = -1 [dba] ;dba.default_handler= [opcache] ; Determines if Zend OPCache is enabled ;opcache.enable=1 ; Determines if Zend OPCache is enabled for the CLI version of PHP ;opcache.enable_cli=0 ; The OPcache shared memory storage size. ;opcache.memory_consumption=128 ; The amount of memory for interned strings in Mbytes. ;opcache.interned_strings_buffer=8 ; The maximum number of keys (scripts) in the OPcache hash table. ; Only numbers between 200 and 1000000 are allowed. ;opcache.max_accelerated_files=10000 ; The maximum percentage of "wasted" memory until a restart is scheduled. ;opcache.max_wasted_percentage=5 ;opcache.use_cwd=1 ;opcache.validate_timestamps=1 ;opcache.revalidate_freq=2 ;opcache.revalidate_path=0 ;opcache.save_comments=1 ;opcache.enable_file_override= ;opcache.optimization_level=0x7FFFBFFF ;opcache.dups_fix=0 ;opcache.blacklist_filename= ;opcache.max_file_size=0 ;opcache.consistency_checks=0 ;opcache.force_restart_timeout=180 ;opcache.error_log= ;opcache.log_verbosity_level=1 ;opcache.preferred_memory_model= ;opcache.protect_memory=0 ;opcache.restrict_api= ;opcache.mmap_base= ; Facilitates multiple OPcache instances per user (for Windows only). All PHP ; processes with the same cache ID and user share an OPcache instance. ;opcache.cache_id= ; Enables and sets the second level cache directory. ; It should improve performance when SHM memory is full, at server restart or ; SHM reset. The default "" disables file based caching. ;opcache.file_cache= ; Enables or disables opcode caching in shared memory. ;opcache.file_cache_only=0 ; Enables or disables checksum validation when script loaded from file cache. ;opcache.file_cache_consistency_checks=1 ; Implies opcache.file_cache_only=1 for a certain process that failed to ; reattach to the shared memory (for Windows only). Explicitly enabled file ; cache is required. ;opcache.file_cache_fallback=1 ; Enables or disables copying of PHP code (text segment) into HUGE PAGES. ; This should improve performance, but requires appropriate OS configuration. ;opcache.huge_code_pages=1 ; Validate cached file permissions. ;opcache.validate_permission=0 ; Prevent name collisions in chroot'ed environment. ;opcache.validate_root=0 ; If specified, it produces opcode dumps for debugging different stages of ; optimizations. ;opcache.opt_debug_level=0 ; Specifies a PHP script that is going to be compiled and executed at server ; start-up. ; http://php.net/opcache.preload ;opcache.preload= ; Preloading code as root is not allowed for security reasons. This directive ; facilitates to let the preloading to be run as another user. ; http://php.net/opcache.preload_user ;opcache.preload_user= ; Prevents caching files that are less than this number of seconds old. It ; protects from caching of incompletely updated files. In case all file updates ; on your site are atomic, you may increase performance by setting it to "0". ;opcache.file_update_protection=2 ; Absolute path used to store shared lockfiles (for *nix only). ;opcache.lockfile_path=/tmp [curl] ; A default value for the CURLOPT_CAINFO option. This is required to be an ; absolute path. ;curl.cainfo = [openssl] ; The location of a Certificate Authority (CA) file on the local filesystem ; to use when verifying the identity of SSL/TLS peers. Most users should ; not specify a value for this directive as PHP will attempt to use the ; OS-managed cert stores in its absence. If specified, this value may still ; be overridden on a per-stream basis via the "cafile" SSL stream context ; option. ;openssl.cafile= ; If openssl.cafile is not specified or if the CA file is not found, the ; directory pointed to by openssl.capath is searched for a suitable ; certificate. This value must be a correctly hashed certificate directory. ; Most users should not specify a value for this directive as PHP will ; attempt to use the OS-managed cert stores in its absence. If specified, ; this value may still be overridden on a per-stream basis via the "capath" ; SSL stream context option. ;openssl.capath= [ffi] ; FFI API restriction. Possible values: ; "preload" - enabled in CLI scripts and preloaded files (default) ; "false" - always disabled ; "true" - always enabled ;ffi.enable=preload ; List of headers files to preload, wildcard patterns allowed. ;ffi.preload= 

8. output service nginx status & service php7.4-fpm status


# sudo service php7.4-fpm status ● php7.4-fpm.service - The PHP 7.4 FastCGI Process Manager Loaded: loaded (/lib/systemd/system/php7.4-fpm.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2020-03-03 17:01:34 CET; 1min 59s ago Docs: man:php-fpm7.4(8) Process: 620 ExecStartPost=/uslib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/7.4/fpm/pool.d/www.conf 74 (code=exited, status=0/SUCCESS) Main PID: 598 (php-fpm7.4) Status: "Processes active: 0, idle: 2, Requests: 0, slow: 0, Traffic: 0req/sec" Tasks: 3 (limit: 4915) Memory: 12.4M CGroup: /system.slice/php7.4-fpm.service ├─598 php-fpm: master process (/etc/php/7.4/fpm/php-fpm.conf) ├─618 php-fpm: pool www └─619 php-fpm: pool www Mär 03 17:01:34 user systemd[1]: Starting The PHP 7.4 FastCGI Process Manager... Mär 03 17:01:34 user systemd[1]: Started The PHP 7.4 FastCGI Process Manager. 

# sudo service nginx status ● nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2020-03-03 17:01:39 CET; 2s ago Docs: man:nginx(8) Process: 639 ExecStartPre=/ussbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS) Process: 657 ExecStart=/ussbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS) Main PID: 658 (nginx) Tasks: 5 (limit: 4915) Memory: 4.9M CGroup: /system.slice/nginx.service ├─658 nginx: master process /ussbin/nginx -g daemon on; master_process on; ├─659 nginx: worker process ├─660 nginx: worker process ├─661 nginx: worker process └─662 nginx: worker process Mär 03 17:01:39 user systemd[1]: Starting A high performance web server and a reverse proxy server... Mär 03 17:01:39 user systemd[1]: Started A high performance web server and a reverse proxy server. 
submitted by xmr123 to PHPhelp [link] [comments]

BuildFHSUserEnv/AppImage recipe for GTK programs

I've had some trouble fixing this so I'm sharing in the hope that it may benefit someone else in the future. (Including myself 12 months from now when I will have forgotten how I did it.)
My thanks go to u/t-b’s Using wrapGAppsHook with buildFHSUserEnv? (together with this extra Gist for Conda) for setting me on the right path.
The issue was running a GTK-based AppImage, specifically a so-called GIO application. These may need to lookup some information which can result in runtime errors on NixOS:
GLib-GIO-ERROR **: 11:42:21.550: No GSettings schemas are installed on the system
For derivations that build from source wrapGAppsHook normally helps. That is not an option for things shipped as binaries. The usual Nix way to deal with these is to provide an environment, e.g. with buildFHSUserEnv. The latter is how AppImage apps are dealt with in nixpkgs, through the packaged appimage-run CLI command (which as I understand it is a bit crude) or the pkgs.appimageTools module.
All together I put together the following derivation function:
{ stdenv, writeScript, gtk3, appimageTools }: let inherit (appimageTools) extractType2 wrapType2; name = "app-of-some-kind"; src = ./path/to/app-of-some-kind.AppImage; # you can add more paths as required xdg_dirs = builtins.concatStringsSep ":" [ "${gtk3}/share/gsettings-schemas/${gtk3.name}" ]; # not necessary, here for debugging purposes # adapted from the original runScript of appimageTools extracted_source = extractType2 { inherit name src; }; debugScript = writeScript "run" '' #!${stdenv.shell} export APPDIR=${extracted_source} export APPIMAGE_SILENT_INSTALL=1 # >>> inspect the script running environment here <<< echo "INSPECT: ''${GIO_EXTRA_MODULES:-no extra modules!}" echo "INSPECT: ''${GSETTINGS_SCHEMA_DIR:-no schemas!}" echo "INSPECT: ''${XDG_DATA_DIRS:-no data dirs!}" cd $APPDIR exec ./AppRun "[email protected]" ''; in wrapType2 { inherit name src; # for debugging purposes only #runScript = debugScript; extraPkgs = pkgs: with pkgs; [ # put runtime dependencies if any here ]; # the magic happens here # other potential variables of interest: # GIO_EXTRA_MODULES, GSETTINGS_SCHEMA_DIR profile = '' export XDG_DATA_DIRS="${xdg_dirs}''${XDG_DATA_DIRS:+:"''$XDG_DATA_DIRS"}" ''; } 
Run the function with e.g.
nix-shell --run app-of-some-kind -p "callPackage ./path/to/function.nix {}" 
and/or by making an executable script out of it.
submitted by dashend to NixOS [link] [comments]

Gatsby builds only failing on Netlify

Hello, I am building a reasonably complex site that pulls some data from git submodules and combines a bunch of data to ultimately pipe it into Gatsby. The issue is that I can get the builds to work absolutely fine on 2 separate Linux machines with different distros (Debian and Ubuntu), different Node versions (10.16 and 10.17), but somehow my builds are always broken on Netlify's server. Does anyone know what I could do?
Repo : https://github.com/30-seconds/30-seconds-web/tree/production (building from production branch)
Netlify log : https://app.netlify.com/sites/hopeful-lovelace-4f6a00/deploys/5dd95d0ac2bced000806a25f
Full log copy:
6:23:38 PM: Build ready to start 6:23:45 PM: build-image version: 9e0f207a27642d0115b1ca97cd5e8cebbe492f63 6:23:45 PM: build-image tag: v3.3.2 6:23:45 PM: buildbot version: a2bab682ae0761baa4d123ebd00c57be933655dc 6:23:45 PM: Fetching cached dependencies 6:23:45 PM: Failed to fetch cache, continuing with build 6:23:45 PM: Starting to prepare the repo for build 6:23:45 PM: No cached dependencies found. Cloning fresh repo 6:23:45 PM: git clone https://github.com/30-seconds/30-seconds-web 6:23:46 PM: Preparing Git Reference refs/heads/production 6:23:58 PM: Found netlify.toml. Overriding site configuration 6:23:58 PM: Starting build script 6:23:58 PM: Installing dependencies 6:23:59 PM: Downloading and installing node v10.17.0... 6:24:00 PM: Downloading https://nodejs.org/dist/v10.17.0/node-v10.17.0-linux-x64.tar.xz... 6:24:00 PM: #################### 6:24:00 PM: ########## 42.9% 6:24:00 PM: ################################## 6:24:00 PM: ###################################### 100.0% 6:24:00 PM: Computing checksum with sha256sum 6:24:00 PM: Checksums matched! 6:24:03 PM: Now using node v10.17.0 (npm v6.11.3) 6:24:03 PM: Attempting ruby version 2.6.2, read from environment 6:24:05 PM: Using ruby version 2.6.2 6:24:05 PM: Using PHP version 5.6 6:24:05 PM: Started restoring cached node modules 6:24:05 PM: Finished restoring cached node modules 6:24:05 PM: Installing NPM modules using NPM version 6.11.3 6:24:59 PM: > [email protected] install /opt/build/repo/node_modules/sharp 6:24:59 PM: > (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy) 6:24:59 PM: info 6:24:59 PM: sharp 6:24:59 PM: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.8.1/libvips-8.8.1-linux-x64.tar.gz 6:25:01 PM: > [email protected] install /opt/build/repo/node_modules/node-sass 6:25:01 PM: > node scripts/install.js 6:25:02 PM: Downloading binary from https://github.com/sass/node-sass/releases/download/v4.12.0/linux-x64-64_binding.node 6:25:02 PM: Download complete 6:25:02 PM: Binary saved to /opt/build/repo/node_modules/node-sass/vendolinux-x64-64/binding.node 6:25:02 PM: Caching binary to /opt/buildhome/.npm/node-sass/4.12.0/linux-x64-64_binding.node 6:25:03 PM: > [email protected] postinstall /opt/build/repo/node_modules/@babel/polyfill/node_modules/core-js 6:25:03 PM: > node scripts/postinstall || echo "ignore" 6:25:03 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:03 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:03 PM: > https://opencollective.com/core-js 6:25:03 PM: > https://www.patreon.com/zloirock 6:25:03 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:03 PM: > [email protected] postinstall /opt/build/repo/node_modules/@gatsbyjs/relay-compilenode_modules/core-js 6:25:03 PM: > node scripts/postinstall || echo "ignore" 6:25:03 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:03 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:03 PM: > https://opencollective.com/core-js 6:25:03 PM: > https://www.patreon.com/zloirock 6:25:03 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:03 PM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/bmp/node_modules/core-js 6:25:03 PM: > node scripts/postinstall || echo "ignore" 6:25:03 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:03 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:03 PM: > https://opencollective.com/core-js 6:25:03 PM: > https://www.patreon.com/zloirock 6:25:03 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:03 PM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/core/node_modules/core-js 6:25:03 PM: > node scripts/postinstall || echo "ignore" 6:25:03 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:03 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:03 PM: > https://opencollective.com/core-js 6:25:03 PM: > https://www.patreon.com/zloirock 6:25:03 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:03 PM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/custom/node_modules/core-js 6:25:03 PM: > node scripts/postinstall || echo "ignore" 6:25:03 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:03 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:03 PM: > https://opencollective.com/core-js 6:25:03 PM: > https://www.patreon.com/zloirock 6:25:03 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:03 PM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/gif/node_modules/core-js 6:25:03 PM: > node scripts/postinstall || echo "ignore" 6:25:03 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:03 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:03 PM: > https://opencollective.com/core-js 6:25:03 PM: > https://www.patreon.com/zloirock 6:25:03 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:03 PM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/jpeg/node_modules/core-js 6:25:03 PM: > node scripts/postinstall || echo "ignore" 6:25:03 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:03 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:03 PM: > https://opencollective.com/core-js 6:25:03 PM: > https://www.patreon.com/zloirock 6:25:03 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:03 PM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-blit/node_modules/core-js 6:25:03 PM: > node scripts/postinstall || echo "ignore" 6:25:03 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:03 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:03 PM: > https://opencollective.com/core-js 6:25:03 PM: > https://www.patreon.com/zloirock 6:25:03 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:03 PM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-blunode_modules/core-js 6:25:03 PM: > node scripts/postinstall || echo "ignore" 6:25:04 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:04 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:04 PM: > https://opencollective.com/core-js 6:25:04 PM: > https://www.patreon.com/zloirock 6:25:04 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:04 PM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-colonode_modules/core-js 6:25:04 PM: > node scripts/postinstall || echo "ignore" 6:25:04 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:04 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:04 PM: > https://opencollective.com/core-js 6:25:04 PM: > https://www.patreon.com/zloirock 6:25:04 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:04 PM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-contain/node_modules/core-js 6:25:04 PM: > node scripts/postinstall || echo "ignore" 6:25:04 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:04 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:04 PM: > https://opencollective.com/core-js 6:25:04 PM: > https://www.patreon.com/zloirock 6:25:04 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:04 PM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-covenode_modules/core-js 6:25:04 PM: > node scripts/postinstall || echo "ignore" 6:25:04 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:04 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:04 PM: > https://opencollective.com/core-js 6:25:04 PM: > https://www.patreon.com/zloirock 6:25:04 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:04 PM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-crop/node_modules/core-js 6:25:04 PM: > node scripts/postinstall || echo "ignore" 6:25:04 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:04 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:04 PM: > https://opencollective.com/core-js 6:25:04 PM: > https://www.patreon.com/zloirock 6:25:04 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:04 PM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-displace/node_modules/core-js 6:25:04 PM: > node scripts/postinstall || echo "ignore" 6:25:04 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:04 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:04 PM: > https://opencollective.com/core-js 6:25:04 PM: > https://www.patreon.com/zloirock 6:25:04 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:04 PM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-dithenode_modules/core-js 6:25:04 PM: > node scripts/postinstall || echo "ignore" 6:25:04 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:04 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:04 PM: > https://opencollective.com/core-js 6:25:04 PM: > https://www.patreon.com/zloirock 6:25:04 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:04 PM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-flip/node_modules/core-js 6:25:04 PM: > node scripts/postinstall || echo "ignore" 6:25:04 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:04 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:04 PM: > https://opencollective.com/core-js 6:25:04 PM: > https://www.patreon.com/zloirock 6:25:04 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:04 PM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-gaussian/node_modules/core-js 6:25:04 PM: > node scripts/postinstall || echo "ignore" 6:25:04 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:04 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:04 PM: > https://opencollective.com/core-js 6:25:04 PM: > https://www.patreon.com/zloirock 6:25:04 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:04 PM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-invert/node_modules/core-js 6:25:04 PM: > node scripts/postinstall || echo "ignore" 6:25:04 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:04 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:04 PM: > https://opencollective.com/core-js 6:25:04 PM: > https://www.patreon.com/zloirock 6:25:04 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:04 PM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-mask/node_modules/core-js 6:25:04 PM: > node scripts/postinstall || echo "ignore" 6:25:04 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:04 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:04 PM: > https://opencollective.com/core-js 6:25:04 PM: > https://www.patreon.com/zloirock 6:25:04 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:04 PM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-normalize/node_modules/core-js 6:25:04 PM: > node scripts/postinstall || echo "ignore" 6:25:05 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:05 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:05 PM: > https://opencollective.com/core-js 6:25:05 PM: > https://www.patreon.com/zloirock 6:25:05 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:05 PM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-print/node_modules/core-js 6:25:05 PM: > node scripts/postinstall || echo "ignore" 6:25:05 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:05 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:05 PM: > https://opencollective.com/core-js 6:25:05 PM: > https://www.patreon.com/zloirock 6:25:05 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:05 PM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-resize/node_modules/core-js 6:25:05 PM: > node scripts/postinstall || echo "ignore" 6:25:05 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:05 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:05 PM: > https://opencollective.com/core-js 6:25:05 PM: > https://www.patreon.com/zloirock 6:25:05 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:05 PM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-rotate/node_modules/core-js 6:25:05 PM: > node scripts/postinstall || echo "ignore" 6:25:05 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:05 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:05 PM: > https://opencollective.com/core-js 6:25:05 PM: > https://www.patreon.com/zloirock 6:25:05 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:05 PM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-scale/node_modules/core-js 6:25:05 PM: > node scripts/postinstall || echo "ignore" 6:25:05 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:05 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:05 PM: > https://opencollective.com/core-js 6:25:05 PM: > https://www.patreon.com/zloirock 6:25:05 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:05 PM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugins/node_modules/core-js 6:25:05 PM: > node scripts/postinstall || echo "ignore" 6:25:05 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:05 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:05 PM: > https://opencollective.com/core-js 6:25:05 PM: > https://www.patreon.com/zloirock 6:25:05 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:05 PM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/png/node_modules/core-js 6:25:05 PM: > node scripts/postinstall || echo "ignore" 6:25:05 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:05 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:05 PM: > https://opencollective.com/core-js 6:25:05 PM: > https://www.patreon.com/zloirock 6:25:05 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:05 PM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/tiff/node_modules/core-js 6:25:05 PM: > node scripts/postinstall || echo "ignore" 6:25:05 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:05 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:05 PM: > https://opencollective.com/core-js 6:25:05 PM: > https://www.patreon.com/zloirock 6:25:05 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:05 PM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/types/node_modules/core-js 6:25:05 PM: > node scripts/postinstall || echo "ignore" 6:25:05 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:05 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:05 PM: > https://opencollective.com/core-js 6:25:05 PM: > https://www.patreon.com/zloirock 6:25:05 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:05 PM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/utils/node_modules/core-js 6:25:05 PM: > node scripts/postinstall || echo "ignore" 6:25:05 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:05 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:05 PM: > https://opencollective.com/core-js 6:25:05 PM: > https://www.patreon.com/zloirock 6:25:05 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:05 PM: > [email protected] postinstall /opt/build/repo/node_modules/babel-runtime/node_modules/core-js 6:25:05 PM: > node scripts/postinstall || echo "ignore" 6:25:06 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:06 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:06 PM: > https://opencollective.com/core-js 6:25:06 PM: > https://www.patreon.com/zloirock 6:25:06 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:06 PM: > [email protected] postinstall /opt/build/repo/node_modules/core-js 6:25:06 PM: > node scripts/postinstall || echo "ignore" 6:25:06 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:06 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:06 PM: > https://opencollective.com/core-js 6:25:06 PM: > https://www.patreon.com/zloirock 6:25:06 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:06 PM: > [email protected] postinstall /opt/build/repo/node_modules/core-js-pure 6:25:06 PM: > node scripts/postinstall || echo "ignore" 6:25:06 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:06 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:06 PM: > https://opencollective.com/core-js 6:25:06 PM: > https://www.patreon.com/zloirock 6:25:06 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:06 PM: > [email protected] postinstall /opt/build/repo/node_modules/gatsby/node_modules/core-js 6:25:06 PM: > node scripts/postinstall || echo "ignore" 6:25:06 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:06 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:06 PM: > https://opencollective.com/core-js 6:25:06 PM: > https://www.patreon.com/zloirock 6:25:06 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:06 PM: > [email protected] postinstall /opt/build/repo/node_modules/jimp/node_modules/core-js 6:25:06 PM: > node scripts/postinstall || echo "ignore" 6:25:06 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:06 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:06 PM: > https://opencollective.com/core-js 6:25:06 PM: > https://www.patreon.com/zloirock 6:25:06 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:06 PM: > [email protected] postinstall /opt/build/repo/node_modules/relay-runtime/node_modules/core-js 6:25:06 PM: > node scripts/postinstall || echo "ignore" 6:25:06 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 6:25:06 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 6:25:06 PM: > https://opencollective.com/core-js 6:25:06 PM: > https://www.patreon.com/zloirock 6:25:06 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 6:25:06 PM: > [email protected] postinstall /opt/build/repo/node_modules/gatsby-telemetry 6:25:06 PM: > node src/postinstall.js 6:25:06 PM: > [email protected] postinstall /opt/build/repo/node_modules/cwebp-bin 6:25:06 PM: > node lib/install.js 6:25:07 PM: ✔ cwebp pre-build test passed successfully 6:25:07 PM: > [email protected] postinstall /opt/build/repo/node_modules/mozjpeg 6:25:07 PM: > node lib/install.js 6:25:07 PM: ✔ mozjpeg pre-build test passed successfully 6:25:07 PM: > [email protected] postinstall /opt/build/repo/node_modules/pngquant-bin 6:25:07 PM: > node lib/install.js 6:25:08 PM: ✔ pngquant pre-build test passed successfully 6:25:08 PM: > [email protected] postinstall /opt/build/repo/node_modules/gatsby/node_modules/gatsby-cli 6:25:08 PM: > node scripts/postinstall.js 6:25:08 PM: > [email protected] postinstall /opt/build/repo/node_modules/gatsby 6:25:08 PM: > node scripts/postinstall.js 6:25:08 PM: > [email protected] postinstall /opt/build/repo/node_modules/node-sass 6:25:08 PM: > node scripts/build.js 6:25:08 PM: Binary found at /opt/build/repo/node_modules/node-sass/vendolinux-x64-64/binding.node 6:25:08 PM: Testing binary 6:25:09 PM: Binary is fine 6:25:14 PM: npm 6:25:14 PM: WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents): 6:25:14 PM: npm WARN 6:25:14 PM: notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) 6:25:14 PM: npm 6:25:14 PM: WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/gatsby/node_modules/fsevents): 6:25:14 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) 6:25:14 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/gatsby-source-filesystem/node_modules/fsevents): 6:25:14 PM: npm 6:25:14 PM: WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) 6:25:14 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/gatsby-page-utils/node_modules/fsevents): 6:25:14 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) 6:25:14 PM: added 2736 packages from 1524 contributors and audited 969117 packages in 68.086s 6:25:14 PM: found 1 low severity vulnerability 6:25:14 PM: run `npm audit fix` to fix them, or `npm audit` for details 6:25:14 PM: NPM modules installed 6:25:15 PM: Started restoring cached go cache 6:25:15 PM: Finished restoring cached go cache 6:25:15 PM: unset GOOS; 6:25:15 PM: unset GOARCH; 6:25:15 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.12.linux.amd64'; 6:25:15 PM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}"; 6:25:15 PM: go version >&2; 6:25:15 PM: export GIMME_ENV='/opt/buildhome/.gimme/env/go1.12.linux.amd64.env'; 6:25:15 PM: go version go1.12 linux/amd64 6:25:15 PM: Installing missing commands 6:25:15 PM: Verify run directory 6:25:15 PM: Executing user command: npm run build 6:25:15 PM: > [email protected] prebuild /opt/build/repo 6:25:15 PM: > ./src/jobs/prepare_env.sh PRODUCTION; ./src/jobs/fetch_content_sources.sh; ./src/jobs/prepare_cache_key.sh 6:25:15 PM: Preparing environment... 6:25:15 PM: Fetching content sources started... 6:25:16 PM: Submodule path 'content/sources/30code': checked out 'ccfee9a80f67a907de34b7af812b5c83db5617a5' 6:25:17 PM: Fetching content sources complete 6:25:17 PM: Generating cache key... 6:25:17 PM: > [email protected] build /opt/build/repo 6:25:17 PM: > NODE_PATH=src npx --node-arg '-r esm' gatsby build 6:25:25 PM: success open and validate gatsby-configs — 0.226 6:25:30 PM: success parse requirables 6:25:30 PM: success parse reducers 6:25:30 PM: success parse resolvers 6:25:30 PM: success parse templates 6:25:30 PM: success parse queries 6:25:30 PM: success load plugins — 5.581 6:25:30 PM: success onPreInit — 0.037 6:25:30 PM: success delete html and css files from previous builds — 0.045 6:25:30 PM: success initialize cache — 0.043 6:25:31 PM: success copy gatsby files — 0.178 6:25:31 PM: success onPreBootstrap — 0.057 6:25:34 PM: success source and transform nodes — 3.226 6:25:34 PM: success Add explicit types — 0.044 6:25:34 PM: success Add inferred types — 0.322 6:25:35 PM: success Processing types — 0.198 6:25:35 PM: error Snippet.html provided incorrect OutputType: 'Object({ resolve: [function resolve] })' 6:25:35 PM: Snippet.html provided incorrect OutputType: 'Object({ resolve: [function resolve] })' 6:25:35 PM: See our docs page for more info on this error: https://gatsby.dev/issue-how-to 6:25:35 PM: 6:25:35 PM: Error: Snippet.html provided incorrect OutputType: 'Object({ resolve: [functio n resolve] })' 6:25:35 PM: 6:25:35 PM: - TypeMapper.js:294 TypeMapper.convertOutputFieldConfig 6:25:35 PM: [repo]/[graphql-compose]/lib/TypeMapper.js:294:15 6:25:35 PM: 6:25:35 PM: - configAsThunk.js:19 resolveOutputConfigAsThunk 6:25:35 PM: [repo]/[graphql-compose]/lib/utils/configAsThunk.js:19:41 6:25:35 PM: 6:25:35 PM: - ObjectTypeComposer.js:300 ObjectTypeComposer.getFieldConfig 6:25:35 PM: [repo]/[graphql-compose]/lib/ObjectTypeComposer.js:300:58 6:25:35 PM: 6:25:35 PM: - ObjectTypeComposer.js:304 ObjectTypeComposer.getFieldType 6:25:35 PM: [repo]/[graphql-compose]/lib/ObjectTypeComposer.js:304:17 6:25:35 PM: 6:25:35 PM: - SchemaComposer.js:144 tc.getFieldNames.forEach.fieldName 6:25:35 PM: [repo]/[graphql-compose]/lib/SchemaComposer.js:144:28 6:25:35 PM: 6:25:35 PM: - Array.forEach 6:25:35 PM: 6:25:35 PM: - SchemaComposer.js:143 SchemaComposer.removeEmptyTypes 6:25:35 PM: [repo]/[graphql-compose]/lib/SchemaComposer.js:143:24 6:25:35 PM: 6:25:35 PM: - SchemaComposer.js:154 tc.getFieldNames.forEach.fieldName 6:25:35 PM: [repo]/[graphql-compose]/lib/SchemaComposer.js:154:18 6:25:35 PM: 6:25:35 PM: - Array.forEach 6:25:35 PM: 6:25:35 PM: - SchemaComposer.js:143 SchemaComposer.removeEmptyTypes 6:25:35 PM: [repo]/[graphql-compose]/lib/SchemaComposer.js:143:24 6:25:35 PM: 6:25:35 PM: - SchemaComposer.js:103 SchemaComposer.buildSchema 6:25:35 PM: [repo]/[graphql-compose]/lib/SchemaComposer.js:103:12 6:25:35 PM: 6:25:35 PM: - schema.js:94 buildSchema 6:25:35 PM: [repo]/[gatsby]/dist/schema/schema.js:94:33 6:25:35 PM: 6:25:35 PM: 6:25:35 PM: npm 6:25:35 PM: ERR! code 6:25:35 PM: ELIFECYCLE 6:25:35 PM: npm 6:25:35 PM: ERR! errno 1 6:25:35 PM: npm 6:25:35 PM: ERR! [email protected] build: `NODE_PATH=src npx --node-arg '-r esm' gatsby build` 6:25:35 PM: npm ERR! 6:25:35 PM: Exit status 1 6:25:35 PM: npm 6:25:35 PM: ERR! 6:25:35 PM: npm ERR! 6:25:35 PM: Failed at the [email protected] build script. 6:25:35 PM: npm 6:25:35 PM: ERR! This is probably not a problem with npm. There is likely additional logging output above. 6:25:35 PM: npm 6:25:35 PM: ERR! A complete log of this run can be found in: 6:25:35 PM: npm ERR! 6:25:35 PM: /opt/buildhome/.npm/_logs/2019-11-23T16_25_35_400Z-debug.log 6:25:35 PM: Skipping functions preparation step: no functions directory set 6:25:35 PM: Caching artifacts 6:25:35 PM: Started saving node modules 6:25:35 PM: Finished saving node modules 6:25:35 PM: Started saving pip cache 6:25:35 PM: Finished saving pip cache 6:25:35 PM: Started saving emacs cask dependencies 6:25:35 PM: Finished saving emacs cask dependencies 6:25:35 PM: Started saving maven dependencies 6:25:35 PM: Finished saving maven dependencies 6:25:35 PM: Started saving boot dependencies 6:25:35 PM: Finished saving boot dependencies 6:25:35 PM: Started saving go dependencies 6:25:35 PM: Finished saving go dependencies 6:25:38 PM: Error running command: Build script returned non-zero exit code: 1 6:25:38 PM: Failing build: Failed to build site 6:25:38 PM: failed during stage 'building site': Build script returned non-zero exit code: 1 6:25:38 PM: Finished processing build request in 1m53.099978476s 
submitted by angelos_chalaris to gatsbyjs [link] [comments]

MAME 0.207

MAME 0.207

It’s almost the end of February, and more importantly it’s time for MAME 0.207 to be released! We’ve added two Nintendo Game & Watch titles this month: Fire (wide screen) and Snoopy Tennis. If you’re at all interested in plug-and-play TV games, this is going to be a huge update, with all the newly-supported JAKKS Pacific titles, including Disney Princess, Dragon Ball Z, Nicktoons, Spider-Man, and Wheel of Fortune, as well as a number of matching Game-Keys. The other big batch of additions this month comes in the form of a whole lot of e-kara cartridge dumps from Japan. For younger players, we’re steadily filling out the V.Smile software list, with eighteen newly supported titles. The VGM software list has been updated with the latest video game music rips, and we’ve added some more original floppy dumps and clean cracks to the Apple II software lists.
With the latest improvements to the MIPS R4000 CPU, WD33C93 SCSI and SGI Newport graphics emulation, it’s possible to install and run IRIX in MAME. This is a milestone achievement, and wouldn’t have been possible without some amazing dedication and collaboration on the part of the contributors and team members involved. With the addition of graphics and mouse support, Windows 1.0 runs on MAME’s Tandy 2000 emulation. MAME continues to add additional variants of supported systems, including the HP 9825T and the Esselte Modulab educational system.
Newly supported arcade games include an earlier prototype of Rise of the Robots, bootlegs of Ghost Chaser Densei and The Glob, and additional versions of Raiden Fighters 2, Guardian Storm, Pasha Pasha Champ, Lethal Enforcers, and X-Men. General usability improvements include friendlier Apple II disassembly, the restoration of key map support in SDL builds (Linux/macOS), and better initial window positioning on Windows.
You can get the source and Windows binary packages from the download page.

MAMETesters Bugs Fixed

New working machines

New working clones

Machines promoted to working

Clones promoted to working

New machines marked as NOT_WORKING

New clones marked as NOT_WORKING

New working software list additions

Software list items promoted to working

New NOT_WORKING software list additions

Translations added or modified

Source Changes

submitted by cuavas to emulation [link] [comments]

Auditing popular crates: how a one-line unsafe has nearly ruined everything

Edit: this is a rather long post that's not very readable on old Reddit's grey background. Click here to read it on Medium.
Following the actix-web incident (which is fixed now, at least mostly) I decided to poke other popular libraries and see what comes of it. The good news is I've poked at 6 popular crates now, and I've got not a single actually exploitable vulnerability. I am impressed. When I poked popular C libraries a few years ago it quickly ended in tears security vulnerabilities. The bad news is I've found one instance that was not a security vulnerability by sheer luck, plus a whole slew of denial-of-service bugs. And I can't fix all of them by myself. Read on to find out how I did it, and how you can help!
My workflow was roughly like this:
  1. See if the crate has been fuzzed yet to identify low-hanging fruit.
  2. If it has been fuzzed, check sanity of fuzzing harness.
  3. If something is amiss, fuzz the crate.
  4. In case fuzzing turns up no bugs, eyeball the unsafes and try to check them for memory errors.
  5. If no horrific memory errors turn up, try to replace whatever's under unsafe with safe code without sacrificing performance.
Turns out Rust community is awesome and not only has excellent integration for all three practical fuzzers along with a quick start guide for each, but also a huge collection of fuzz targets that covers a great deal of popular crates. Ack! Getting low-hanging fruit at step 1 is foiled!
So I've started checking whether fuzzing targets were written properly. Specifically, I've started looking for stuff that could block fuzzing - like checksums. A lot of formats have them internally, and PNG has not one but two - crc32 in png format and adler32 in deflate. And lo and behold, none of the crates were actually disabling checksums when fuzzing! This means that random input from fuzzer was rejected early (random data does not have a valid checksum in it, duh) and never actually reached the interesting decoding bits. So I've opened PRs for disabling checksums during fuzzing in miniz_oxide, png, lodepng-rust, and ogg, and then fuzzed them with checksums disabled. This got me:
inflate crate was the first where fuzzing has turned up nothing at all, so I've started eyeballing its unsafes and trying to rewrite them into safe code. I've added a benchmarking harness and started measuring whether reverting back to safe code hurts performance. cargo bench was too noisy, but I've quickly discovered criterion which got me the precision I needed (did I mention Rust tooling is awesome?). I got lucky - there were two unsafes with two-line safe equivalent commented out, and reverting back to safe code created no measurable performance difference. Apparently the compiler got smarter since that code was written, so I've just reverted back to safe code.
This left just one unsafe with a single line in it. Spot the security vulnerability. I would have missed it if the crate maintainer hadn't pointed it out. If you can't, there are hints at the end of this post.
By sheer luck the rest of the crate just so happens to be structured in a way that never passes input parameters that trigger the vulnerability, so it is not really exploitable. Probably. I could not find a way to exploit it, and the crate maintainer assures me it's fine. Perhaps we just haven't figured out how to do it yet. After all, almost everything is exploitable if you try hard enough.
Sadly, simply replacing the unsafe .set_len() with .resize() regressed the decompression performance by 10%, so instead I've added an extra check preventing this particular exploit from happening, and then liberally sprinkled the function with asserts that panic on every other way this unsafe could go wrong that I could think of.
Is the function secure now? Well, maybe. Maybe not. Unless we either rewrite it in safe rust (or prove its correctness, which is a lot harder) we will never know.
The thing is, I'm pretty sure it's possible to rewrite this in safe Rust without performance penalty. I've tried some local optimizations briefly, to no avail. Just like with high-level languages, writing fast safe Rust requires staying on the optimizer's happy paths, and I have not found any documentation or tooling for doing that. The best I've got is https://godbolt.org/ that lets you inspect the LLVM IR as well as assembler and shows what line of Rust turned into what line of assembly, but you can't feed your entire project to it. You can get rustc to dump LLVM IR, but it will not tell you what line turned into what (at least by default), let alone do readable highlighting. As pointed out in comments, cargo-asm that does the trick! And you also need tools to understand why a certain optimization was not applied by rustc. LLVM flags -Rpass-missed and -Rpass-analysis seem to be capable of doing that, but there is literally no documentation on them in conjunction with Rust.
Discussing the vulnerability further would be spoilerrific (seriously, try to locate it yourself), so I'll leave further technical discussion until the end of the post. I want to say that I was very satisfied with how the crate maintainer reacted to the potential vulnerability - he seemed to take it seriously and investigated it promptly. Coming from C ecosystem it is refreshing to be taken seriously when you point out those things.
By contrast, nobody seems to care about denial of service vulnerabilities. In the 3 crates I've reported such vulnerabilities for, after 3 weeks not a single one was investigated or fixed by maintainers of those crates, or anyone else really. And the DoS bugs are not limited to panics that you can just isolate into another thread and forget about.
After not getting any reaction from crate maintainers for a while I tried fixing those bugs myself, starting with the png crate. In stark contrast to C, it is surprisingly easy to jump into an existing Rust codebase and start hacking on it, even if it does rather involved things like PNG parsing. I've fixed all the panics that fuzzers discovered based on nothing but debug mode backtraces, and I don't even know Rust all that well. Also, this is why there are 4 distinct panics listed for PNG crate: I've fixed one and kept fuzzing until I discovered the next one. lewton probably has many more panics in it, I just didn't got beyond the first one. Sadly, three weeks later my PR is still not merged, reinforcing the theme of "nobody cares about denial of service". And png still has a much nastier DoS bug that cannot be isolated in a thread.
(To be clear, this is not meant as bashing any particular person or team; there may be perfectly valid reasons for why it is so. But this does seem to be the trend throughout the ecosystem, and I needed some examples to illustrate it).
Also, shoutout to tungstenite - it was the only crate that did not exhibit any kinds of bugs when being fuzzed for the first time. Kudos.
Conclusions:
Originally I thought this would be a fun exercise for a few weekends, but the scope of the work quickly grew way beyond what I can hope to achieve alone. This is where you come in, though! Here's a list of things you can try, in addition to the hard tooling tasks listed above:
  1. Fuzz all the things! It takes 15 minutes to set up per crate, there is no reason not to. Also, there is a trophy case.
  2. Fix bugs already discovered. For example: panic in lewton (easy), unbounded memory consumption in png (intermediate), lodepng memory leak (C-hard). You can also fuzz lewton afterwards to get more panics, just don't forget to use ogg dependency from git. You can reuse my fuzz harnesses if you wish.
  3. Refactor unsafes in popular crates into safe code, ideally without sacrificing performance. For example, inflate crate has just one unsafe block remaining, png has two. There are many more crates like that out there.
  4. There are easy tasks on docs and tooling too: AFL.rs documentation is outdated and describes only version 0.3. Version 0.4 has added in-process fuzzing that's ~10x faster, it needs to be mentioned. Also, AFL could use more Rusty integration with Cargo, closer to what cargo-fuzz does. Also, disabling checksums is a common pitfall that needs to be mentioned.
I'd love to keep fixing all the things, but at least in the coming month I will not able to dedicate any time to the project. I hope I've managed to at least lead by example.
And now, details on that vulnerability! If you haven't found it yourself, here's a hint: similar bugs in C libraries.
If you still haven't found it, see the fix.
Spoilerrific discussion of the vulnerability below.
Vulnerable code from git history for reference
The function run_len_dist() does a fairly trivial thing: resizes a vector to fit a specified amount of data and copies data from element i to element i+dist until i+dist hits the end of the vector. For performance, contents of the vector are not initialized to zeroes when resizing, as it would have been done by vec.resize(); instead, vec.set_len() is used, creating a vector with a number of elements set to uninitialized memory at the end.
The function never checks that dist is not zero. Indeed, if you call it with dist set to 0, it will simply read uninitialized memory and write it right back, exposing memory contents in the output.
If this vulnerability were actually exploitable from the external API (which it isn't, probably), inflate would have output contents of uninitialized memory in the decompressed output. inflate crate is used in png crate to decompress PNGs. So if png crate was used in a web browser (e.g. servo) to decode images, an attacker could pass a crafted PNG to the client, then read the decoded image using javascript. This lets the attacker read memory contents from the browser - cookies, passwords, you name it. This is not quite as bad as Heartbleed or Meltdown, but it's up there.
Sadly, regular fuzzing would not have discovered this vulnerability. If it were actually exploitable, at least one way to trigger it would involve setting several distinct bytes in the input to very specific values. And even the best current generation fuzzers cannot trigger any behavior that requires changing more than one byte simultaneously, except in rare cases or if you explicitly tell what consecutive byte strings it should try. And there is nothing in the code that would guide the fuzzers to these specific values.
Even if fuzzers did discover such an input by random chance, they would not have recognized it as a vulnerability, unless you do either of these things:
This just goes to show that fuzzing unsafe code does not actually guarantee absence of bugs.
Safe Rust, however, does guarantee absence of memory errors that lead to arbitrary code execution exploits and other unspeakable horrors. So let's use it.
submitted by Shnatsel to rust [link] [comments]

LagerMaschinen.de - YouTube

Requesting data for an image, such as when processing the src or srcset attributes of an img element, the src attribute of an input element with a type of image, the poster attribute of a video element, the url(), image() or image-set() values on any Cascading Style Sheets (CSS) property that is capable of loading an image [CSS4-IMAGES], or the Some options can be changed during the operation of the filter using a command. These options are marked ’T’ on the output of ffmpeg-h filter=<name of filter>. The name of the command is the name of the option and the argument is the new value. 7 Options for filters with several inputs (framesync) src: 8-bit, single-channel (binary) source image. dst: Output image with calculated distances. It is a 8-bit or 32-bit floating-point, single-channel image of the same size as src. labels: Output 2D array of labels (the discrete Voronoi diagram). It has the type CV_32SC1 and the same size as src. distanceType: Type of distance, see The derived image is also cached on the CDN and is immediately available to all subsequent users requesting the same image. The following shows an example of delivering an image with transformation parameters, where the image with a public ID of sample is cropped to a width of 300 pixels and a height of 200 pixels, and delivered in JPEG format: To change the background image using jQuery, you can use the jQuery CSS() method.For this, the whole property value is specified using the url() functional notation.. Approach: Suppose we have an image URL stored in a variable and then use css() method to change the value of background image. Below example illustrates the above approach:

[index] [14627] [22628] [66981] [24275] [24304] [13347] [33628] [7700] [8955] [12504]

LagerMaschinen.de - YouTube

Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube. First, thank you for watching my video-If you'd like to make a Donation, please follow this link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&busine... Create advertising videos from your phone or work with a professional. Get step-by-step guidance on how to create video ads for your business.

https://binaryoption-saudarab.belajar-tradingforex.com