- O2 will try to tell you need it. You probably don't.
- Under no circumstances allow the technician to open, unwrap the o2 router.
- Tell him to NOT install it. The technician is not allowed to take it back.
- DO NOT UNWRAP IT !
- Take it to the O2 store - they accepted mine on Florenc.
- Make sure they will not charge you for it.
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
## 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; |
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
var root = parseTree.Root.AstNode as BaseAst; | |
var visitor = new HtmlConcreteVisitor(new StringBuilder()); | |
root.AcceptVisitor(visitor); |
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 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); | |
} |
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 BeginVisit(IVisitableNode node) | |
{ | |
var baseAst = (node as BaseAst); | |
Write(baseAst.StartTag); | |
} | |
public void EndVisit(IVisitableNode node) | |
{ | |
var baseAst = (node as BaseAst); | |
Write(baseAst.EndTag); |
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 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 |
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 class NonTerminalMd : NonTerminal | |
{ | |
public NonTerminalMd(string name, Type nodeType) : base(name, nodeType) | |
{ | |
AstConfig.DefaultNodeCreator = () => Activator.CreateInstance(nodeType); | |
} | |
} |
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
find ./ -type f -readable -writable -exec sed -i "s/OLD_STRING/NEW_STRING/g" {} \; |
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
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" |
NewerOlder