This file contains hidden or 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
local ret_code , n_jobs = ... | |
ret_code = tonumber ( ret_code ) | |
n_jobs = tonumber ( n_jobs ) or 0 | |
-- This MUST be updated to where ljsyscall is located | |
package.path = "/home/harley/Source/languages/lua/ljsyscall/?.lua;" .. package.path | |
local ljsyscall = require "syscall" | |
local getenv = os.getenv | |
local function cmd ( c ) |
This file contains hidden or 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 <stdio.h> | |
#include <stdlib.h> | |
#include <libssh/libssh.h> | |
int main(int argc, const char *argv[]) { | |
char *host = "localhost", *username = "username", *password = "password"; | |
int port = 22, timeout = 5; | |
ssh_init(); | |
atexit((void(*)())ssh_finalize); |
This file contains hidden or 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
/* | |
MIT license: | |
Copyright (c) 2012 Harley Laue <[email protected]> | |
Permission is hereby granted, free of charge, to any person obtaining a | |
copy of this software and associated documentation files (the | |
"Software"), to deal in the Software without restriction, including | |
without limitation the rights to use, copy, modify, merge, publish, | |
distribute, sublicense, and/or sell copies of the Software, and to |
This file contains hidden or 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
package rss | |
import "encoding/xml" | |
type Channel struct { | |
XMLName xml.Name `xml:"channel"` | |
Title string `xml:"title"` | |
Description string `xml:"description"` | |
Link string `xml:"url"` | |
LastBuildDate string `xml:"lastBuildDate"` |
NewerOlder