mkdir -p /etc/X11/xorg.conf.d/
cp /usr/share/raspi-config/10-blanking.conf /etc/X11/xorg.conf.d/
Section "Extensions"
Option "DPMS" "Disable"
EndSection
Section "ServerLayout"
Identifier "ServerLayout0"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
Option "BlankTime" "0"
EndSection
git checkout gh-pages
#!/bin/bash
#
# take files from master and add them to gh-pages branch and then publish
# returns you to master
#
TARGET=$1
if [ -z "$TARGET" ]; then
echo "Please supply files, cannot continue, exiting"
echo "USAGE: $0 <files separated by space>"
exit 1
fi
git diff-index --quiet HEAD --
if git diff-index --quiet HEAD --; then
echo No outstanding changes
else
# Changes
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
echo "YOU MUST HAVE COMMITTED ANY CHANGES BEFORE CONTINUING OR THEY WILL BE LOST !!!!"
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
exit 1
fi
tmpdir=$(date +"%s")
mkdir /tmp/$tmpdir
cp $@ /tmp/$tmpdir
echo $@ saved to /tmp/$tmpdir
echo switching to gh-pages branch
git checkout gh-pages
echo overwriting $@ files
cp /tmp/$tmpdir/* .
git add $@ ; git commit -m "updating gh-pages with latest code"
git push origin gh-pages
if [ $? -eq 0 ]; then
echo OK
git checkout master
git status
else
echo FAIL
echo you are stuck in gh-pages branch
echo most likely you want to
echo git checkout master
echo you did commit all your changes did not you?
echo use
echo git status
echo to check what branch you are on
fi
// Tile State - enum equivalent
const TileState = Object.freeze({NONE:"NONE", USERDROPPED: "USERDROPPED", GAMEBUMPED: "GAMEBUMPED", GAMEANIMWON: "GAMEANIMWON", GAMEWON: "GAMEWON"})
// check if any objects need animating for GAMEANIMWON - end of level "up" animation
animatableTiles = tiles.filter(x => x.state == TileState.GAMEANIMWON);
for (let i=0;i<tiles.length;i++) {
...
}
tiles.forEach(function(tile) {
});
animate();
function animate(timestamp) {
// do animation work
requestAnimationFrame(animate);
}
emerge --ask sci-biology/foldingathome
These are the packages that would be merged, in order:
Calculating dependencies... done!
!!! All ebuilds that could satisfy "sci-biology/foldingathome" have been masked.
!!! One of the following masked packages is required to complete your request:
- sci-biology/foldingathome-7.5.1-r3::gentoo (masked by: FAH-EULA-2014 license(s), ~amd64 keyword)
A copy of the 'FAH-EULA-2014' license is located at '/var/db/repos/gentoo/licenses/FAH-EULA-2014'.
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
vi /etc/portage/package.license
#required by FaH
>=sci-biology/foldingathome-7.5.1-r3 FAH-EULA-2014 FAH-special-permission
emerge --ask sci-biology/foldingathome
These are the packages that would be merged, in order:
Calculating dependencies... done!
!!! All ebuilds that could satisfy "sci-biology/foldingathome" have been masked.
!!! One of the following masked packages is required to complete your request:
- sci-biology/foldingathome-7.5.1-r3::gentoo (masked by: ~amd64 keyword)
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
vi /etc/portage/package.accept_keywords
# needed by folding@home
sci-biology/foldingathome ~amd64
emerge --ask sci-biology/foldingathome
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] dev-util/patchelf-0.10
[ebuild N ] dev-libs/openssl-compat-1.0.2u USE="asm sslv3 tls-heartbeat zlib -bindist -gmp -kerberos -rfc3779 -sctp -sslv2 -static-libs -test -vanilla" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="(sse2)"
[ebuild N ~] sci-biology/foldingathome-7.5.1-r3
Would you like to merge these packages? [Yes/No]
Yes
...SNIP code compiling...
>>> Recording sci-biology/foldingathome in "world" favorites file...
* Messages for package sci-biology/foldingathome-7.5.1-r3:
*
* Special permission is hereby granted to the Gentoo project to provide an
* automated installer package which downloads and installs the Folding@home client
* software. Permission is also granted for future Gentoo installer packages on the
* condition that they continue to adhere to all of the terms of the accompanying
* Folding@home license agreements and display this notice.
* -- Vijay S. Pande, Stanford University, 07 May 2013
*
* (ref: http://foldingforum.org/viewtopic.php?f=16&t=22524&p=241992#p241992 )
*
* Adding group 'foldingathome' to your system ...
* - Groupid: next available
* Adding user 'foldingathome' to your system ...
* - Userid: 994
* - Shell: /sbin/nologin
* - Home: /opt/foldingathome
* - Groups: video
* - GECOS: added by portage for foldingathome
* - Creating /opt/foldingathome in /
* To run Folding@home in the background at boot:
* (openrc) rc-update add foldingathome default
* (systemd) systemctl enable foldingathome
*
* No config.xml file found -- please run
* emerge --config foldingathome-7.5.1 to configure your client, or specify
* all necessary runtime options in FOLD_OPTS within
* /etc/conf.d/foldingathome
*
* Please see /opt/foldingathome/FAHClient --help for more details.
>>> Auto-cleaning packages...
>>> No outdated packages were found on your system.
* GNU info directory index is up-to-date.
emerge --config foldingathome-7.5.1
!!! 'foldingathome-7.5.1' is not a valid package atom.
!!! Please check ebuild(5) for full details.
!!! (Did you specify a version but forget to prefix with '='?)
emerge --config foldingathome
Configuring pkg...
./FAHClient: /opt/foldingathome/libssl.so.10: no version information available (required by ./FAHClient)
./FAHClient: /opt/foldingathome/libcrypto.so.10: no version information available (required by ./FAHClient)
./FAHClient: /opt/foldingathome/libcrypto.so.10: no version information available (required by ./FAHClient)
20:37:16:INFO(1):Read GPUs.txt
User name [Anonymous]: robonearth
Team number [0]: 44851
Passkey: 590d9b339438bc0e590d9b339438b
Enable SMP [true]:
Enable GPU [true]:
Name of configuration file [config.xml]:
Overwrite 'config.xml'? [y/N] [false]: y
rc-update add foldingathome default
/etc/init.d/foldingathome start
* Caching service dependencies ... [ ok ]
* Starting foldingathome ...
cat /opt/foldingathome/log.txt
WARNING:WU02:FS00:Failed to get assignment from '65.254.110.245:8080': No WUs available for this configuration
ERROR:WU02:FS00:Exception: Could not get an assignment
ERROR:WU02:FS00:Exception: Server did not assign work unit
email
root
flog archives
Disclaimer:
This page is by me for me, if you are not me then please be aware of the following
I am not responsible for anything that works or does not work including files and pages made available at www.jumpstation.co.uk
I am also not responsible for any information(or what you or others do with it) available at www.jumpstation.co.uk
In fact I'm not responsible for anything ever, so there!