This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import subprocess | |
COMMAND_PREFIX = 'java -cp "C:\Users\Tiago\wekafiles\packages\LibSVM\LibSVM.jar;C:\Users\Tiago\wekafiles\packages\LibSVM\lib\libsvm.jar;C:\Program Files (x86)\Weka-3-7\weka.jar" weka.classifiers.misc.InputMappedClassifier -W ' | |
COMMAND_POSTFIX = " -v -o -M" | |
ALGORITHMS = [ | |
"weka.classifiers.functions.LibSVM", | |
"weka.classifiers.bayes.NaiveBayes", | |
"weka.classifiers.lazy.IBk", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set hlsearch | |
set smartindent | |
set expandtab | |
set shiftwidth=4 | |
set softtabstop=4 | |
set nobackup | |
set encoding=utf-8 | |
set number | |
set guioptions-=T | |
set guioptions-=m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
if ! dpkg -l | grep mysql-client>/dev/null; then | |
echo "We need to install mysql-client to delete the stacks. Continue? [y/n]" | |
read answer | |
[ "${answer,,}" = "y" ] || { echo "Canceled"; exit 0; } | |
sudo apt install mysql-client -y | |
printf "\n\n" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
This is a tool for recovering lost machine units in current model | |
Usage: | |
{0} model-name controller-ip dest-dir | |
""" | |
import json | |
import os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
This is a tool for logging your controller out of the charmstore | |
Usage: | |
{0} controller-name | |
""" | |
import json | |
import os | |
import subprocess |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <linux/module.h> | |
#include <linux/kernel.h> | |
#include <linux/livepatch.h> | |
static ssize_t my_transition_show(struct kobject *kobj, | |
struct kobj_attribute *attr, char *buf) | |
{ | |
return snprintf(buf, PAGE_SIZE-1, "%d\n", 1); | |
} |