This file contains hidden or 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
| #!/bin/bash | |
| # SSH into a Vagrant VM, forwarding ports in a way that allows node within Vagrant to be debugged by a debugger | |
| # or IDE in the host operating system. Don't know why, but Vagrantfile port forwarding does not work. | |
| # (https://groups.google.com/forum/#!topic/vagrant-up/RzPooJ0dp6Q) | |
| /usr/bin/vagrant ssh-config > $TMPDIR/vagrant-ssh-config | |
| ssh -F $TMPDIR/vagrant-ssh-config -L 5858:127.0.0.1:5858 default | |
| rm $TMPDIR/vagrant-ssh-config |
This file contains hidden or 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
| #!/bin/sh | |
| # size of swapfile in megabytes | |
| swapsize=8000 | |
| # does the swap file already exist? | |
| grep -q "swapfile" /etc/fstab | |
| # if not then create it | |
| if [ $? -ne 0 ]; then |
This file contains hidden or 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
| Vagrant::Config.run do |config| | |
| # debug default is :headless | |
| config.vm.boot_mode = "gui" | |
| # the .box file | |
| config.vm.box = "afa-chef-server" | |
| config.vm.box_url = "/V3/base_debian/with-apt.box" | |
| # ssh config | |
| config.ssh.private_key_path = "afa_private_key" |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>QUnit Example</title> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/qunit/1.16.0/qunit.min.css"> | |
| </head> | |
| <body> | |
| <div id="qunit"></div> | |
| <div id="qunit-fixture"></div> |
This file contains hidden or 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 <LiquidCrystal.h> | |
| #include <Servo.h> | |
| // initialize the lcd library | |
| LiquidCrystal lcd(12, 11, 5, 4, 3, 2); | |
| Servo myservo; | |
| const int buttonPin = 7; | |
| int buttonState = 0; | |
| int lastButtonState = 0; |
This file contains hidden or 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 <LiquidCrystal.h> | |
| // initialize the lcd library | |
| LiquidCrystal lcd(12, 11, 5, 4, 3, 2); | |
| int buttonPin = 7; | |
| int count = 0; | |
| boolean updated = true; | |
| void setup() { |
This file contains hidden or 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 <LiquidCrystal.h> | |
| #include <Servo.h> | |
| // initialize the lcd library | |
| LiquidCrystal lcd(12, 11, 5, 4, 3, 2); | |
| Servo myservo; | |
| int photocellPin = 0; | |
| int photocellReading; | |
| int pos = 0; |
This file contains hidden or 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 <LiquidCrystal.h> | |
| // initialize the lcd library | |
| LiquidCrystal lcd(12, 11, 5, 4, 3, 2); | |
| int photocellPin = 0; | |
| int photocellReading; | |
| void setup() { | |
| lcd.begin(16, 2); | |
| } |
This file contains hidden or 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
| Generate a sub-project to get started - http://pulse.torweg.org/site/Pulsar/en_US.CMS.displayCMS.369./set-up-a-sub-project | |
| Copy main.xsl from pulse to the xsl directory off of your sub-project's root directory | |
| Create css directory in the web directory with a simple css file inside. | |
| Add a Core file to your bundles directory. | |
| Copy org.torweg.pulse.component.site.StyleController.xml from the pulse directory /bundles/Core and put it in your Core directory |
This file contains hidden or 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
| Many of the file managers in the Linux system cut off the trailing '/', which is required to access Pulse's WebDAV folders. One solution is to use the command line program davfs2. Here are the instructions for Ubuntu based systems: | |
| Install davfs2 - | |
| $ sudo apt-get install davfs2 | |
| Use of this tool generally requires being a super user, but this will not work because Pulse will not be able to upload the files easily. | |
| Configure davfs2 to allow non-root users to mount the folder - | |
| $ sudo dpkg-reconfigure davfs2 |
NewerOlder