[root@localhost ~]# mkdir /centos_chroot
[root@localhost ~]# mkdir -p /centos_chroot/var/lib/rpm
#btrfs benchmark for daily used desktop OS |
#!/bin/sh | |
# by Stadicus | |
# make executable and copy script to /etc/update-motd.d/ | |
# root must be able to execute bitcoin-cli and lncli | |
# set colors | |
color_red='\033[0;31m' | |
color_green='\033[0;32m' | |
color_yellow='\033[0;33m' | |
color_gray='\033[0;37m' |
/* | |
licence pubilc domain | |
prepered by Shimon Doodkin | |
vibrate a vibrating bluetooth bracelet | |
a simple bt client it sends "RING" AT command to a device named "BRACELET" | |
it is a good "android bluetooth client example". |
var btn; | |
var bt; | |
var txt; | |
//Called when application is started. | |
function OnStart() | |
{ | |
//Create a layout with objects vertically centered. | |
lay = app.CreateLayout( "linear", "VCenter,FillXY" ); | |
//Create a button 1/3 of screen width and 1/4 screen height. |
import tornado.ioloop | |
import tornado.web | |
import gen | |
import time | |
import os | |
import tornado | |
file_list = os.listdir("img") | |
counter = 0 |
import static org.hamcrest.MatcherAssert.assertThat; | |
import static org.hamcrest.Matchers.equalTo; | |
import java.io.File; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.nio.charset.StandardCharsets; | |
import java.util.Arrays; |
repositories { mavenCentral() } | |
configurations { sshAntTask } | |
dependencies { sshAntTask 'org.apache.ant:ant-jsch:1.9.2' } | |
ant.taskdef( | |
name: 'scp', | |
classname: 'org.apache.tools.ant.taskdefs.optional.ssh.Scp', | |
classpath: configurations.sshAntTask.asPath) |
10 REM SPRITE EXAMPLE 1... | |
20 REM THE HOT AIR BALLOON | |
30 VIC=13*4096:REM THIS IS WHERE THE VIC REGISTERS BEGIN | |
35 POKEVIC+21,1:REM ENABLE SPRITE 0 | |
36 POKEVIC+33,14:REM SET BACKGROUND COLOR TO LIGHT BLUE | |
37 POKEVIC+23,1:REM EXPAND SPRITE 0 IN Y | |
38 POKEVIC+29,1:REM EXPAND SPRITE 0 IN X | |
40 POKE2040,192:REM SET SPRITE 0'S POINTER | |
180 POKEVIC+0,100:REM SET SPRITE 0'S X POSITION | |
190 POKEVIC+l, 100:REM SET SPRITE 0'S Y POSITION |
@Grapes([ | |
@Grab('org.eclipse.jetty.aggregate:jetty-all:8.1.10.v20130312'), | |
@Grab('com.h2database:h2:1.3.171'), | |
@Grab('javax.servlet:servlet-api:2.5'), | |
]) | |
import org.eclipse.jetty.server.Server | |
import org.eclipse.jetty.servlet.* | |
import org.eclipse.jetty.webapp.* | |
import javax.servlet.* | |
import javax.servlet.http.* |