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
sudo adduser deluge --shell /dev/null --disabled-password --disabled-login | |
sudo apt install deluged deluge-webui | |
sudo gpasswd -a $USER deluge | |
cat <<EOF | sudo /etc/systemd/system/deluged.service | |
[Unit] | |
Description=Deluge Bittorrent Client Daemon | |
After=network-online.target | |
[Service] |
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
/** | |
* File: usbcdc.h | |
*/ | |
typedef struct | |
{ | |
const char* name; | |
float* loc; | |
} usbcdcParameterStruct_t; | |
void usbcdcSetShellVars(const usbcdcParameterStruct_t** vars); |
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
%% Poly with skin | |
clear; clc; | |
l=1e-6; c0=1e-9; | |
r0=100; f0=1000; alpha=0.8; | |
w=[2000 3000]; | |
w=(2*pi).*w; |
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
public void paint(Graphics g) { | |
Graphics2D g2 = (Graphics2D)g.create(); | |
Area plotArea = new Area(new Ellipse2D.Double(center.x-radius, center.y-radius, diameter,diameter)); | |
g2.setClip(plotArea); | |
} |
NewerOlder