Start weechat if you haven't already:
$ weechat
open up browser and go to: https://irc.gitter.im/ retrieve your /PASS
In weecaht run (thanks to raine):
package main | |
import ( | |
"github.com/dwburke/xxxx/cmd" | |
) | |
func main() { | |
cmd.Execute() | |
} |
export MY_CGROUP_NAME="java_build" | |
export MY_SUBSYSTEMS="cpu,cpuacct" | |
sudo cgcreate -t $USER:$USER -a $USER:$USER -g $MY_SUBSYSTEMS:$MY_CGROUP_NAME | |
sudo cgset -r cpu.cfs_period_us=1000 $MY_CGROUP_NAME | |
sudo cgset -r cpu.cfs_quota_us=1000 $MY_CGROUP_NAME | |
# ls -al /sys/fs/cgroup/$MY_SUBSYSTEMS/$MY_CGROUP_NAME/ | |
# cgexec seems not to work for me, so we are going to create explicitely a subshell and assign a cgroup to that process | |
bash | |
cgclassify -g $MY_SUBSYSTEMS:$MY_CGROUP_NAME $BASHPID |
@Grab('com.github.groovy-wslite:groovy-wslite:1.1.2') | |
import wslite.rest.* | |
def consumerKey = "CONSUMER_KEY" | |
def consumerToken = "CONSUMER_TOKEN" | |
def host = "https://bintray.com" | |
def client = new RESTClient(host) | |
def releaseClient = new RESTClient("https://gvm-vendor-dev.herokuapp.com") |
Start weechat if you haven't already:
$ weechat
open up browser and go to: https://irc.gitter.im/ retrieve your /PASS
In weecaht run (thanks to raine):
#!/bin/bash | |
set -e | |
## striping seems to break docker | |
#STRIPE="-i2 -I64" | |
#DEVS="/dev/xvdf /dev/xvdg" | |
DEVS="$1" | |
if [ -z "$DEVS" ]; then | |
echo >&2 "Specify which block devices to use" | |
exit 1 |
package fx.jvm.hotspot.tools; | |
import java.util.List; | |
import sun.jvm.hotspot.tools.Tool; | |
public class PrintThreadIds extends Tool { | |
public static void main(String[] args) { | |
PrintThreadIds tool = new PrintThreadIds(); | |
tool.start(args); |