Login to your TcBSD and type following
cat /usr/local/etc/TwinCAT/3.1/TcRegistry.xml
Note : be careful when copying commands from the internet!
You should see something like this. We will change the AmsId property
set { _identity = value; OnPropertyChanged(nameof(Identity)); } | |
protected void OnPropertyChanged([CallerMemberName] string propertyName = null) => PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); |
xrandr --newmode "2560x1440_60.00" 312.25 2560 2752 3024 3488 1440 1443 1448 1493 -hsync +vsync | |
xrandr --addmode Virtual1 "2560x1440_60.00" | |
xrandr --output Virtual1 --mode "2560x1440_60.00" |
find ./ -type f -readable -writable -exec sed -i "s/OLD_STRING/NEW_STRING/g" {} \; |
public class NonTerminalMd : NonTerminal | |
{ | |
public NonTerminalMd(string name, Type nodeType) : base(name, nodeType) | |
{ | |
AstConfig.DefaultNodeCreator = () => Activator.CreateInstance(nodeType); | |
} | |
} |
public virtual void AcceptVisitor(IAstVisitor visitor) { | |
visitor.BeginVisit(this); | |
if (ChildNodes.Count > 0) | |
foreach(AstNode node in ChildNodes) | |
node.AcceptVisitor(visitor); | |
visitor.EndVisit(this); | |
} | |
//from https://github.com/IronyProject/Irony/blob/06a088e0199c6e67097d72512ad69e2e86f041c2/Irony.Interpreter/Ast/Base/AstNode.cs#L141 |
public void BeginVisit(IVisitableNode node) | |
{ | |
var baseAst = (node as BaseAst); | |
Write(baseAst.StartTag); | |
} | |
public void EndVisit(IVisitableNode node) | |
{ | |
var baseAst = (node as BaseAst); | |
Write(baseAst.EndTag); |
public override void AcceptVisitor(IAstVisitor visitor) | |
{ | |
if(Parent is RootAst) // in case it's top level we want to have <p> tag, if it's inside <b> tag we dont need it. | |
visitor.BeginVisit(this); | |
if(visitor is IAstWriteableVisitor writeableVisitor) | |
writeableVisitor.Write(Text); /// here you output the text. | |
if (Parent is RootAst) | |
visitor.EndVisit(this); | |
} |
var root = parseTree.Root.AstNode as BaseAst; | |
var visitor = new HtmlConcreteVisitor(new StringBuilder()); | |
root.AcceptVisitor(visitor); |
## Based on: https://github.com/calpolydatascience/jupyterhub-deploy-data301/blob/master/roles/nginx/templates/nginx.conf.j2 | |
user nginx; | |
worker_processes 1; | |
error_log /var/log/nginx/error.log warn; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; |