История ссылок

sub sleepmybot {
my $dt = DateTime->now(time_zone => 'Europe/Moscow');
my $hour = $dt->hour;
if($hour > 22){
sleep(36000);
  }
      return;
}

SELECT array_to_json(array_agg(table_example)) FROM table_example

[{"a":1,"b":"value1"},{"a":2,"b":"value2"},{"a":3,"b":"value3"}]

<!DOCTYPE html>
<html>
<body>

<script>

var z = JSON.parse('[{"vvv": "34563456", "ccc": "/zzzzz"},{"vvv": "768976890", "ccc": "/xxxx"}]');
 alert(z[0].vvv);

</script>

</body>
</html>

cd /tmp; wget https://storage.googleapis.com/golang/go1.7.3.linux-amd64.tar.gz && sha256sum go1.7.3.linux-amd64.tar.gz
SHA256 Checksum
508028aac0654e993564b6e2014bf2d4a9751e3b286661b0b0040046cf18028e
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go1.7.3.linux-amd64.tar.gz


vi ~/.profile
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin
export GOPATH=$HOME/DEV/Go
export PATH=$PATH:$GOPATH/bin

This should do it, the bold-marked options, add them to your "/etc/lightdm/lightdm.conf":

#
# General configuration
#
# start-default-seat = True to always start one seat if none are defined in the configuration
# greeter-user = User to run greeter as
# minimum-display-number = Minimum display number to use for X servers
# minimum-vt = First VT to run displays on
# user-authority-in-system-dir = True if session authority should be in the system location
# guest-account-script = Script to be run to setup guest account
# log-directory = Directory to log information to
# run-directory = Directory to put running state in
# cache-directory = Directory to cache to
# xsessions-directory = Directory to find X sessions
# xgreeters-directory = Directory to find X greeters
#
[LightDM]
#start-default-seat=true
#greeter-user=lightdm
#minimum-display-number=0
#minimum-vt=7
#user-authority-in-system-dir=false
#guest-account-script=guest-account
#log-directory=/var/log/lightdm
#run-directory=/var/run/lightdm
#cache-directory=/var/cache/lightdm
#xsessions-directory=/usr/share/xsessions
#xgreeters-directory=/usr/share/xgreeters

#
# Seat defaults
#
# xserver-command = X server command to run
# xserver-layout = Layout to pass to X server
# xserver-config = Config file to pass to X server
# xserver-allow-tcp = True if TCP/IP connections are allowed to this X server
# xdmcp-manager = XDMCP manager to connect to (implies xserver-allow-tcp=true)
# xdmcp-port = XDMCP UDP/IP port to communicate on
# xdmcp-key = Authentication key to use for XDM-AUTHENTICATION-1 (stored in keys.conf)
# greeter-session = Session to load for greeter
# greeter-hide-users = True to hide the user list
# user-session = Session to load for users
# allow-guest = True if guest login is allowed
# guest-session = Session to load for guests (overrides user-session)
# session-wrapper = Wrapper script to run session with
# display-setup-script = Script to run when starting a greeter session (runs as root)
# greeter-setup-script = Script to run when starting a greeter (runs as root)
# session-setup-script = Script to run when starting a user session (runs as root)
# session-cleanup-script = Script to run when quitting a user session (runs as root)
# autologin-guest = True to log in as guest by default
# autologin-user = User to log in with by default (overrides autologin-guest)
# autologin-user-timeout = Number of seconds to wait before loading default user
# autologin-session = Session to load for automatic login (overrides user-session)
# exit-on-failure = True if the daemon should exit if this seat fails
#
[SeatDefaults]
#xserver-command=X
#xserver-layout=
#xserver-config=
#xserver-allow-tcp=false
#xdmcp-manager=
#xdmcp-port=177
#xdmcp-key=
#greeter-session=example-gtk-gnome
#greeter-hide-users=false
#user-session=default
#allow-guest=true
#guest-session=UNIMPLEMENTED
#session-wrapper=lightdm-session
#display-setup-script=
#greeter-setup-script=
#session-setup-script=
#session-cleanup-script=
#autologin-guest=false
#autologin-user=
#autologin-user-timeout=0
#autologin-session=UNIMPLEMENTED
#exit-on-failure=false

#
# Seat configuration
#
# Each seat must start with "Seat:".
# Uses settings from [SeatDefaults], any of these can be overriden by setting them in this section.
#
#[Seat:0]

#
# XDMCP Server configuration
#
# enabled = True if XDMCP connections should be allowed
# port = UDP/IP port to listen for connections on
# key = Authentication key to use for XDM-AUTHENTICATION-1 or blank to not use authentication (stored in keys.conf)
#
# The authentication key is a 56 bit DES key specified in hex as 0xnnnnnnnnnnnnnn. Alternatively
# it can be a word and the first 7 characters are used as the key.
#
[XDMCPServer]
#enabled=false
#port=177
#key=

#
# VNC Server configuration
#
# enabled = True if VNC connections should be allowed
# port = TCP/IP port to listen for connections on
#
[VNCServer]
#enabled=false
#port=5900
#width=1024
#height=768
#depth=8
Source: "/usr/share/doc/lightdm/lightdm.conf"

/usr/bin/make install-am
Making install in scripts
/bin/mkdir -p '/var/ports/work/usr/ports/ports-mgmt/pkg/work/stage/usr/local/sbin'
install -m 555 sbin/pkg2ng '/var/ports/work/usr/ports/ports-mgmt/pkg/work/stage/usr/local/sbin'
/bin/mkdir -p '/var/ports/work/usr/ports/ports-mgmt/pkg/work/stage/usr/local/etc/bash_completion.d'
install -m 0644 completion/_pkg.bash '/var/ports/work/usr/ports/ports-mgmt/pkg/work/stage/usr/local/etc/bash_completion.d'
/bin/mkdir -p '/var/ports/work/usr/ports/ports-mgmt/pkg/work/stage/usr/local/etc/periodic/daily'
install -m 555 periodic/411.pkg-backup periodic/490.status-pkg-changes '/var/ports/work/usr/ports/ports-mgmt/pkg/work/stage/usr/local/etc/periodic/daily'
/bin/mkdir -p '/var/ports/work/usr/ports/ports-mgmt/pkg/work/stage/usr/local/etc/periodic/security'
install -m 555 periodic/410.pkg-audit periodic/460.pkg-checksum '/var/ports/work/usr/ports/ports-mgmt/pkg/work/stage/usr/local/etc/periodic/security'
/bin/mkdir -p '/var/ports/work/usr/ports/ports-mgmt/pkg/work/stage/usr/local/etc/periodic/weekly'
install -m 555 periodic/400.status-pkg '/var/ports/work/usr/ports/ports-mgmt/pkg/work/stage/usr/local/etc/periodic/weekly'
/bin/mkdir -p '/var/ports/work/usr/ports/ports-mgmt/pkg/work/stage/usr/local/share/zsh/site-functions'
install -m 0644 completion/_pkg '/var/ports/work/usr/ports/ports-mgmt/pkg/work/stage/usr/local/share/zsh/site-functions'
Making install in docs
/bin/mkdir -p '/var/ports/work/usr/ports/ports-mgmt/pkg/work/stage/usr/local/man/man3'
install -m 0644 pkg_printf.3 pkg_repos.3 '/var/ports/work/usr/ports/ports-mgmt/pkg/work/stage/usr/local/man/man3'
/bin/mkdir -p '/var/ports/work/usr/ports/ports-mgmt/pkg/work/stage/usr/local/man/man5'
install -m 0644 pkg-repository.5 pkg.conf.5 '/var/ports/work/usr/ports/ports-mgmt/pkg/work/stage/usr/local/man/man5'
/bin/mkdir -p '/var/ports/work/usr/ports/ports-mgmt/pkg/work/stage/usr/local/man/man8'
install -m 0644 pkg-add.8 pkg-alias.8 pkg-annotate.8 pkg-audit.8 pkg-autoremove.8 pkg-backup.8 pkg-check.8 pkg-clean.8 pkg-config.8 pkg-convert.8 pkg-create.8 pkg-delete.8 pkg-fetch.8 pkg-info.8 pkg-install.8 pkg-lock.8 pkg-query.8 pkg-register.8 pkg-repo.8 pkg-rquery.8 pkg-search.8 pkg-set.8 pkg-shell.8 pkg-shlib.8 pkg-ssh.8 pkg-stats.8 pkg-update.8 pkg-updating.8 pkg-upgrade.8 pkg-version.8 pkg-which.8 pkg.8 '/var/ports/work/usr/ports/ports-mgmt/pkg/work/stage/usr/local/man/man8'
/usr/bin/make install-data-hook
ln -s -f pkg-delete.8 /var/ports/work/usr/ports/ports-mgmt/pkg/work/stage/usr/local/man/man8/pkg-remove.8
ln -s -f pkg-lock.8 /var/ports/work/usr/ports/ports-mgmt/pkg/work/stage/usr/local/man/man8/pkg-unlock.8
ln -s -f pkg.8 /var/ports/work/usr/ports/ports-mgmt/pkg/work/stage/usr/local/man/man8/pkg-static.8
/bin/mkdir -p '/var/ports/work/usr/ports/ports-mgmt/pkg/work/stage/usr/local/libdata/pkgconfig'
install -m 0644 libpkg/pkg.pc '/var/ports/work/usr/ports/ports-mgmt/pkg/work/stage/usr/local/libdata/pkgconfig'
install -m 0644 /var/ports/work/usr/ports/ports-mgmt/pkg/work/pkg-1.9.3/NEWS /var/ports/work/usr/ports/ports-mgmt/pkg/work/stage/usr/local/share/doc/pkg/NEWS
====> Compressing man pages (compress-man)
===> Installing for pkg-1.9.3
===> Checking if pkg already installed
Child process pid=68860 terminated abnormally: Segmentation fault
Segmentation fault
*** Error code 139

Stop.
make[4]: stopped in /usr/ports/ports-mgmt/pkg
*** Error code 1

Stop.
make[3]: stopped in /usr/ports/ports-mgmt/pkg
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/ports-mgmt/pkg
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/mercurial
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/mercurial

https://support.dbssolutions.com/support/solutions/articles/1649-windows-7-client-for-nfs-and-user-name-mapping-without-ad-sua

sub purge_dublicats_title
{
    my $title_from_file = shift;
    my $sorted          = shift;
    my @title_from_file = @{$title_from_file};
    my %sorted          = %{$sorted};
    if (@$title_from_file)
    {
        while (my ($key, $value) = each(%sorted))
        {
            foreach (@$title_from_file)
            {
                delete $sorted{$key} if $_ =~ m/^\Q$value\E$/i;
            }
        }
    }
    return %sorted;
}