% wget https://gist.github.com/lambdalisue/5911291/raw/install_vim_debian.sh -O - | bash
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
rabbitmqctl add_user test test | |
rabbitmqctl set_user_tags test administrator | |
rabbitmqctl set_permissions -p / test ".*" ".*" ".*" |
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
write-host "`n ## NODEJS INSTALLER ## `n" | |
### CONFIGURATION | |
# nodejs | |
$version = "v8.1.4-x64" | |
$url = "https://nodejs.org/dist/latest/node-v$version.msi" | |
# git | |
$git_version = "2.9.2" |
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
/*************************************************** | |
This is an example for our Adafruit 16-channel PWM & Servo driver | |
Servo test - this will drive 16 servos, one after the other | |
Pick one up today in the adafruit shop! | |
------> http://www.adafruit.com/products/815 | |
These displays use I2C to communicate, 2 pins are required to | |
interface. For Arduino UNOs, thats SCL -> Analog 5, SDA -> Analog 4 |
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
#!/bin/sh | |
exec /usr/bin/mono /usr/bin/nuget.exe "$@" | |
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
#Please replace the the [REPLACE WITH YOUR PI'S IP ADDRESS] entries (including the square brackets) with your RPI2's IP Address | |
#Open powershell as Administrator and execute the file (save it as yourfilename.ps1) | |
net start WinRM | |
Set-Item WSMan:\localhost\Client\TrustedHosts -Value [REPLACE WITH YOUR PI'S IP ADDRESS] | |
Set-Item WSMan:\localhost\Client\TrustedHosts -Value "[REPLACE WITH YOUR PI'S IP ADDRESS]" | |
Enter-PSSession -ComputerName [REPLACE WITH YOUR PI'S IP ADDRESS] -Credential [REPLACE WITH YOUR PI'S IP ADDRESS]\Administrator |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Windows.UI.Xaml.Controls; | |
namespace Common | |
{ | |
public class SampleViewItem |
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
//An exact copy of the adafruit DTH-11 driver in C# | |
//Example usage: | |
//var gpio = GpioController.GetDefault(); | |
//var dataPin = gpio.OpenPin(5); | |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ |
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 FlipViewAnimationBehaviour: DependencyObject, IBehavior { | |
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] | |
public DependencyObject AssociatedObject { | |
get; | |
set; | |
} | |
NewerOlder