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
# How to install `ipkg` on a Synology DS214 | |
After a couple of days of trying to get `ipkg` woking on my DS214 I found [this article](https://github.com/trepmag/ds213j-optware-bootstrap) by [trepmag](https://github.com/trepmag). It is written for the DS213j, but it’s been working for me and [others](https://github.com/alberthild) for the DS214 too. | |
I have done some minor changed to clarify some things, but if you are a Linux guy (unlike me) my changes might be of no use to you. | |
## Guide | |
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
resource "aws_api_gateway_rest_api" "example" { | |
name = "ServerlessExample" | |
description = "Terraform Serverless Application Example" | |
} | |
resource "aws_api_gateway_resource" "proxy" { | |
rest_api_id = "${aws_api_gateway_rest_api.example.id}" | |
parent_id = "${aws_api_gateway_rest_api.example.root_resource_id}" | |
path_part = "{proxy+}" | |
} |
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
$ cat test.cpp | |
size_t tempYLTFileCount = | |
Helpers::getFiles(m_pvSimulatedUnsortedYLTFilePattern, | |
regex(".*~", regex::basic)).size() + | |
Helpers::getFiles(m_lvSimulatedUnsortedYLTFilePattern, | |
regex(".*~", regex::basic)).size(); | |
$ clang-format-3.7 -style=google test.cpp | |
size_t tempYLTFileCount = Helpers::getFiles(m_pvSimulatedUnsortedYLTFilePattern, |
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
function msnow() | |
t = time() | |
tm = Libc.TmStruct(t) | |
DateTime(tm.year+1900,tm.month+1,tm.mday,tm.hour,tm.min,tm.sec,round(Int64,t*1000)%1000) | |
end |
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 struct | |
import sys | |
def main(): | |
print 'file:', sys.argv[1] | |
with open(sys.argv[1], 'r') as dat_file: | |
print 'count:', struct.unpack('=I', dat_file.read(4)) |
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<fstream> | |
#include<iostream> | |
int main(int argc, char* argv[]) { | |
std::cout << "sizeof(unsigned int)" << sizeof(unsigned int) << std::endl; | |
std::cout << "sizeof(double)" << sizeof(double) << std::endl; | |
if (argc < 2) return -1; |
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
hardstatus alwayslastline "%{b}[%{B}%H%{b}][%{k}%?%-Lw%?%{b}(%{R}%n %t%?(%u)%?%{b})%{k}%?%+Lw%?%?%= %{b}][%{B}%d/%m %{k}%C%{b}]" | |
msgwait 1 | |
vbell off | |
shell "/bin/bash" | |
scrollback 3000 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
module RemoteHelpers | |
using Base: sync_add | |
function remote_call_from_module(w, expression::Expr) | |
call_expr = :(remotecall($w, eval, Main, $(Expr(:quote, expression)))) | |
eval(Main, call_expr) | |
end | |
remote_eval(w, expression::Expr) = remote_call_from_module(w, expression) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder