Difference between revisions of "Scratch"

From MyWiki
Jump to: navigation, search
Line 1: Line 1:
<source lang="text">
+
<source lang="test">
  
 +
# -*- mode: ruby -*-
 +
# vi: set ft=ruby :
  
/cdrom/sol_10_113_x86/Solaris_10/Product
+
# All Vagrant configuration is done below. The "2" in Vagrant.configure
 +
# configures the configuration version (we support older styles for
 +
# backwards compatibility). Please don't change it unless you know what
 +
# you're doing.
 +
Vagrant.configure("2") do |config|
 +
  # The most common configuration options are documented and commented below.
 +
  # For a complete reference, please see the online documentation at
 +
  # https://docs.vagrantup.com.
  
format> fdisk
+
  # Every Vagrant development environment requires a box. You can search for
No fdisk table exists. The default partition for the disk is:
+
   # boxes at https://vagrantcloud.com/search.
 
+
   config.vm.box = "Centos/7"
   a 100% "SOLARIS System" partition
+
 
+
Type "y" to accept the default partition,  otherwise type "n" to edit the
+
partition table.
+
 
+
 
+
 
+
 
+
BSFRA9-770322-EE9C3D
+
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
+
 
+
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
+
yum --enablerepo=remi,remi-php71 install nginx php-fpm php-common
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
START=`head -58 /etc/nginx/nginx.conf`
+
END=`tail -32 .etc.nginx.nginx.conf`
+
+
+
+
        location ~ \.php$ {
+
fastcgi_pass   127.0.0.1:9000;
+
fastcgi_index  index.php;
+
fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
+
fastcgi_intercept_errors on;
+
include        fastcgi_params;
+
}
+
+
 
+
 
+
 
+
 
+
 
+
# For more information on configuration, see:
+
#  * Official English Documentation: http://nginx.org/en/docs/
+
#  * Official Russian Documentation: http://nginx.org/ru/docs/
+
 
+
user nginx;
+
worker_processes auto;
+
error_log /var/log/nginx/error.log;
+
pid /run/nginx.pid;
+
 
+
# Load dynamic modules. See /usr/share/nginx/README.dynamic.
+
include /usr/share/nginx/modules/*.conf;
+
 
+
events {
+
    worker_connections 1024;
+
}
+
 
+
http {
+
    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
+
                      '$status $body_bytes_sent "$http_referer" '
+
                      '"$http_user_agent" "$http_x_forwarded_for"';
+
 
+
    access_log  /var/log/nginx/access.log  main;
+
 
+
    sendfile            on;
+
    tcp_nopush          on;
+
    tcp_nodelay        on;
+
    keepalive_timeout  65;
+
    types_hash_max_size 2048;
+
 
+
    include            /etc/nginx/mime.types;
+
    default_type        application/octet-stream;
+
 
+
    # Load modular configuration files from the /etc/nginx/conf.d directory.
+
    # See http://nginx.org/en/docs/ngx_core_module.html#include
+
    # for more information.
+
    include /etc/nginx/conf.d/*.conf;
+
 
+
    server {
+
        listen      80 default_server;
+
        listen      [::]:80 default_server;
+
        server_name  _;
+
        root        /usr/share/nginx/html;
+
 
+
        # Load configuration files for the default server block.
+
        include /etc/nginx/default.d/*.conf;
+
 
+
        location / {
+
        }
+
 
+
        error_page 404 /404.html;
+
            location = /40x.html {
+
        }
+
 
+
        error_page 500 502 503 504 /50x.html;
+
            location = /50x.html {
+
        }
+
    }
+
 
+
        location ~ \.php$ {
+
fastcgi_pass  127.0.0.1:9000;
+
fastcgi_index  index.php;
+
fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
+
fastcgi_intercept_errors on;
+
include        fastcgi_params;
+
}
+
 
+
 
+
 
+
# Settings for a TLS enabled server.
+
#
+
#    server {
+
#        listen      443 ssl http2 default_server;
+
#        listen      [::]:443 ssl http2 default_server;
+
#        server_name  _;
+
#        root        /usr/share/nginx/html;
+
#
+
#        ssl_certificate "/etc/pki/nginx/server.crt";
+
#        ssl_certificate_key "/etc/pki/nginx/private/server.key";
+
#        ssl_session_cache shared:SSL:1m;
+
#        ssl_session_timeout  10m;
+
#        ssl_ciphers HIGH:!aNULL:!MD5;
+
#        ssl_prefer_server_ciphers on;
+
#
+
#        # Load configuration files for the default server block.
+
#        include /etc/nginx/default.d/*.conf;
+
#
+
#        location / {
+
#        }
+
#
+
#        error_page 404 /404.html;
+
#            location = /40x.html {
+
#        }
+
#
+
#        error_page 500 502 503 504 /50x.html;
+
#            location = /50x.html {
+
#        }
+
#    }
+
 
+
}
+
  
 +
  # Disable automatic box update checking. If you disable this, then
 +
  # boxes will only be checked for updates when the user runs
 +
  # `vagrant box outdated`. This is not recommended.
 +
  # config.vm.box_check_update = false
  
 +
  # Create a forwarded port mapping which allows access to a specific port
 +
  # within the machine from a port on the host machine. In the example below,
 +
  # accessing "localhost:8080" will access port 80 on the guest machine.
 +
  # NOTE: This will enable public access to the opened port
 +
  # config.vm.network "forwarded_port", guest: 80, host: 8080
  
 +
  # Create a forwarded port mapping which allows access to a specific port
 +
  # within the machine from a port on the host machine and only allow access
 +
  # via 127.0.0.1 to disable public access
 +
  # config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"
  
 +
  # Create a private network, which allows host-only access to the machine
 +
  # using a specific IP.
 +
  # config.vm.network "private_network", ip: "192.168.33.10"
  
 +
  # Create a public network, which generally matched to bridged network.
 +
  # Bridged networks make the machine appear as another physical device on
 +
  # your network.
 +
  # config.vm.network "public_network"
 +
config.vm.network "private_network", ip: "192.168.56.109"
 +
  # Share an additional folder to the guest VM. The first argument is
 +
  # the path on the host to the actual folder. The second argument is
 +
  # the path on the guest to mount the folder. And the optional third
 +
  # argument is a set of non-required options.
 +
  # config.vm.synced_folder "../data", "/vagrant_data"
  
 +
  # Provider-specific configuration so you can fine-tune various
 +
  # backing providers for Vagrant. These expose provider-specific options.
 +
  # Example for VirtualBox:
 +
  #
 +
  # config.vm.provider "virtualbox" do |vb|
 +
  #  # Display the VirtualBox GUI when booting the machine
 +
  #  vb.gui = true
 +
  #
 +
  #  # Customize the amount of memory on the VM:
 +
  #  vb.memory = "1024"
 +
  # end
 +
  #
 +
  # View the documentation for the provider you are using for more
 +
  # information on available options.
  
 +
  # Enable provisioning with a shell script. Additional provisioners such as
 +
  # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
 +
  # documentation for more information about their specific syntax and use.
 +
config.vm.provision "shell", inline: <<-SHELL
 +
  mkdir /root/.ssh
 +
  cp /vagrant/authorized_keys    /root/.ssh
 +
  chmod 600  /root/.ssh/authorized_keys
 +
  rpm -Uvh  http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
 +
  echo "INSTALL of epel"
 +
  rpm -Uvh  https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
 +
  echo "INSTALL of epel end"
 +
  yum -y --enablerepo=remi,remi-php71 install nginx php-fpm php-common
 +
  echo "INSTALL nginx"
 +
  yum -y  install nginx
 +
  cp /vagrant/nginx.conf /etc/nginx/
 +
  systemctl enable php-fpm
 +
  systemctl start php-fpm
 +
  systemctl enable nginx
 +
  systemctl start nginx
 +
SHELL
 +
end
  
  
 
</source>
 
</source>
 
VMware v.6 Install, Configure, & Manage (ICM)
 
 
https://access.redhat.com/solutions/10021
 
 
 
http://www.wikigain.com/fix-macos-sierra-screen-resolution-virtualbox/
 
 
 
 
Ipmark at 2015-07-21 08:56 CET:
 
If you install the OS over a previous legit version (like Win 8.1) the setup doesn't ask for a key.
 
If you install in a formatted HDD insert this key: VK7JG-NPHTM-C97JM-9MPGT-3V66T
 
 
Ipmark at 2015-07-21 09:15 CET:
 
The above key is for the PRO version.
 
For the Home version insert this one: TX9XD-98N7V-6WMQ6-BX7FG-H8Q99
 
 
vk4502p at 2015-07-21 09:28 CET:
 
is this X64 based?
 
 
Ipmark at 2015-07-21 09:36 CET:
 
3.81 GB is for the x64 version
 
 
imadlatch at 2015-07-21 16:19 CET:
 
i'm excactly trying to install the OS over a previous legit version win8.1 single language
 
setup ask for a key
 
 
supermaltese at 2015-07-21 20:52 CET:
 
Hey Thumper, is it possible for you to make a Live version of Windows 10?
 
 
hhavok at 2015-07-22 22:57 CET:
 
Lots of issues with this one. Getting blue screen every time I install my anti virus. Tried reinstalling Windows 3 times, no Dice.
 
Also, it keeps installing some Republic of Gamers Realtek HD Audio Manager, while I use Creative ZxR sound card. Even when I uninstall that Realtek, it just reinstalls itself every time I restart my computer.
 
Not sure if that's part of Windows 10 or something else, but I don't like this torrent at all.
 
Will try White Death one, and if that one is fucked up as well then I'll just wait and buy Windows 10 when it's released.
 
 
 
 
 
 
http://crackednoodle.com/2013/01/blu-ray-ripping-on-fedora-18/
 
 
yum install *fmpeg-devel*
 
 
yum install gcc-c++
 
 
 
import java.util.Timer;
 
import java.util.TimerTask;
 
import java.awt.*;
 
 
public class ToDo extends Frame {
 
  Timer timer;
 
  Panel panel;
 
 
  public ToDo ( int seconds ) 
 
  {
 
  setBounds(100,100,100,100);
 
  setVisible(true);
 
  panel= new Panel();
 
  add(panel);
 
    timer = new Timer (  ) ;
 
    timer.schedule ( new ToDoTask (  ) ,10, seconds*1000 ) ;
 
  }
 
 
 
    public void paint(Graphics g) {
 
//setColor(Color.BLACK);
 
  // g.drawText(25, 25, "asdf");
 
 
 
  }
 
 
 
  class ToDoTask extends TimerTask
 
  {
 
    public void run (  )  {
 
                          System.out.println ( "OK, It's time to do something!" );
 
                          setBounds(200,200,200,200) ;
 
                          repaint();
 
 
                          //  timer.cancel (  ) ; //Terminate the thread
 
                          }
 
  }
 
 
 
  public static void main ( String[] args )  {
 
    System.out.println ( "Schedule something to do in 5 seconds." ) ;
 
    new ToDo ( 5 ) ;
 
   
 
   
 
    System.out.println ( "Waiting." ) ;
 
  }
 
}
 

Revision as of 11:55, 31 January 2019

Invalid language.

You need to specify a language like this: <source lang="html4strict">...</source>

Supported languages for syntax highlighting:

4cs, 6502acme, 6502kickass, 6502tasm, 68000devpac, abap, actionscript, actionscript3, ada, algol68, apache, applescript, apt_sources, arm, asm, asp, asymptote, autoconf, autohotkey, autoit, avisynth, awk, bascomavr, bash, basic4gl, bf, bibtex, blitzbasic, bnf, boo, c, c_loadrunner, c_mac, caddcl, cadlisp, cfdg, cfm, chaiscript, cil, clojure, cmake, cobol, coffeescript, cpp, cpp-qt, csharp, css, cuesheet, d, dcl, dcpu16, dcs, delphi, diff, div, dos, dot, e, ecmascript, eiffel, email, epc, erlang, euphoria, f1, falcon, fo, fortran, freebasic, freeswitch, fsharp, gambas, gdb, genero, genie, gettext, glsl, gml, gnuplot, go, groovy, gwbasic, haskell, haxe, hicest, hq9plus, html4strict, html5, icon, idl, ini, inno, intercal, io, j, java, java5, javascript, jquery, kixtart, klonec, klonecpp, latex, lb, ldif, lisp, llvm, locobasic, logtalk, lolcode, lotusformulas, lotusscript, lscript, lsl2, lua, m68k, magiksf, make, mapbasic, matlab, mirc, mmix, modula2, modula3, mpasm, mxml, mysql, nagios, netrexx, newlisp, nsis, oberon2, objc, objeck, ocaml, ocaml-brief, octave, oobas, oorexx, oracle11, oracle8, oxygene, oz, parasail, parigp, pascal, pcre, per, perl, perl6, pf, php, php-brief, pic16, pike, pixelbender, pli, plsql, postgresql, povray, powerbuilder, powershell, proftpd, progress, prolog, properties, providex, purebasic, pycon, pys60, python, q, qbasic, rails, rebol, reg, rexx, robots, rpmspec, rsplus, ruby, sas, scala, scheme, scilab, sdlbasic, smalltalk, smarty, spark, sparql, sql, stonescript, systemverilog, tcl, teraterm, text, thinbasic, tsql, typoscript, unicon, upc, urbi, uscript, vala, vb, vbnet, vedit, verilog, vhdl, vim, visualfoxpro, visualprolog, whitespace, whois, winbatch, xbasic, xml, xorg_conf, xpp, yaml, z80, zxbasic


# -*- mode: ruby -*-
# vi: set ft=ruby :

# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
  # The most common configuration options are documented and commented below.
  # For a complete reference, please see the online documentation at
  # https://docs.vagrantup.com.

  # Every Vagrant development environment requires a box. You can search for
  # boxes at https://vagrantcloud.com/search.
  config.vm.box = "Centos/7"

  # Disable automatic box update checking. If you disable this, then
  # boxes will only be checked for updates when the user runs
  # `vagrant box outdated`. This is not recommended.
  # config.vm.box_check_update = false

  # Create a forwarded port mapping which allows access to a specific port
  # within the machine from a port on the host machine. In the example below,
  # accessing "localhost:8080" will access port 80 on the guest machine.
  # NOTE: This will enable public access to the opened port
  # config.vm.network "forwarded_port", guest: 80, host: 8080

  # Create a forwarded port mapping which allows access to a specific port
  # within the machine from a port on the host machine and only allow access
  # via 127.0.0.1 to disable public access
  # config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"

  # Create a private network, which allows host-only access to the machine
  # using a specific IP.
  # config.vm.network "private_network", ip: "192.168.33.10"

  # Create a public network, which generally matched to bridged network.
  # Bridged networks make the machine appear as another physical device on
  # your network.
  # config.vm.network "public_network"
 config.vm.network "private_network", ip: "192.168.56.109"
  # Share an additional folder to the guest VM. The first argument is
  # the path on the host to the actual folder. The second argument is
  # the path on the guest to mount the folder. And the optional third
  # argument is a set of non-required options.
  # config.vm.synced_folder "../data", "/vagrant_data"

  # Provider-specific configuration so you can fine-tune various
  # backing providers for Vagrant. These expose provider-specific options.
  # Example for VirtualBox:
  #
  # config.vm.provider "virtualbox" do |vb|
  #   # Display the VirtualBox GUI when booting the machine
  #   vb.gui = true
  #
  #   # Customize the amount of memory on the VM:
  #   vb.memory = "1024"
  # end
  #
  # View the documentation for the provider you are using for more
  # information on available options.

  # Enable provisioning with a shell script. Additional provisioners such as
  # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
  # documentation for more information about their specific syntax and use.
 config.vm.provision "shell", inline: <<-SHELL
   mkdir /root/.ssh
   cp /vagrant/authorized_keys    /root/.ssh
   chmod 600  /root/.ssh/authorized_keys
   rpm -Uvh  http://rpms.famillecollet.com/enterprise/remi-release-7.rpm 
   echo "INSTALL of epel"
   rpm -Uvh  https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
   echo "INSTALL of epel end"
   yum -y --enablerepo=remi,remi-php71 install nginx php-fpm php-common
   echo "INSTALL nginx" 
   yum -y  install nginx 
   cp /vagrant/nginx.conf /etc/nginx/
   systemctl enable php-fpm
   systemctl start php-fpm
   systemctl enable nginx
   systemctl start nginx
 SHELL
end