Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
#!/bin/bash | |
eclipse_executable_path=$(realpath ./eclipse) | |
update-alternatives --install "/usr/local/bin/eclipse" eclipse "$eclipse_executable_path" 0 | |
desktop_entry="/usr/share/applications/eclipse.desktop" | |
if [ -f $desktop_entry ] | |
then |
#TeXlipse project settings | |
#Thu Apr 14 01:17:25 BRT 2016 | |
markTmpDer=true | |
builderNum=7 | |
outputDir=Build | |
makeIndSty= | |
bibrefDir= | |
outputFormat=pdf | |
tempDir=Tmp | |
mainTexFile=Document.tex |
<?xml version="1.0" encoding="UTF-8"?> | |
<projectDescription> | |
<name>template-project</name> | |
<comment></comment> | |
<projects> | |
</projects> | |
<buildSpec> | |
<buildCommand> | |
<name>net.sourceforge.texlipse.builder.TexlipseBuilder</name> | |
<arguments> |
#!/bin/bash | |
curl https://cdn.rawgit.com/arthurafarias/a88aa1c2dc075b32284549316e5a0a74/raw/3845e63a77486240d68da62afa744d5127b34540/.texlipse > .texlipse | |
curl https://cdn.rawgit.com/arthurafarias/ea7d426d13012f12701766d07b6fc34a/raw/959b0331b9375e2d0a6f47a05275369cebaff0e8/.project > .project | |
while [ -z $PRJ_NAME ] | |
do | |
echo "Type project name: "; | |
read PRJ_NAME |
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
clear; clc; | |
fs = 8000; | |
ws = 2*pi*fs; | |
fc = 600; | |
wc = 2*pi*fc; | |
N = 29; | |
T = 1/fs; | |
syms n_; |
/* To compile this code just type in terminal | |
* gcc fifo.c -o fifo | |
* ./fifo | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
char fifo[256]; | |
int fifo_tail; |
Model { | |
Name "simulacao" | |
Version 7.7 | |
MdlSubVersion 0 | |
GraphicalInterface { | |
NumRootInports 0 | |
NumRootOutports 0 | |
ParameterArgumentNames "" | |
ComputedModelVersion "1.1" | |
NumModelReferences 0 |
import socket | |
import sys | |
HOST, PORT = "localhost", 8888 | |
data = " ".join(sys.argv[1:]) | |
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
sock.sendto(data + "\n", (HOST, PORT)) | |
received = sock.recv(1024) |