Skip to content

Instantly share code, notes, and snippets.

@Injac
Injac / rabbitmq.txt
Created June 17, 2018 11:51 — forked from sdieunidou/rabbitmq.txt
create admin user on rabbitmq
rabbitmqctl add_user test test
rabbitmqctl set_user_tags test administrator
rabbitmqctl set_permissions -p / test ".*" ".*" ".*"
@Injac
Injac / README.md
Last active May 24, 2018 17:11 — forked from lambdalisue/README.md
Download and Compile and Install latest Vim on Debian
@Injac
Injac / nodejs_installer.ps1
Last active July 18, 2017 14:23 — forked from nweldev/nodejs_installer.ps1
Powershell script installing nodejs (with git) and some npm packages
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"
@Injac
Injac / Servo.c
Last active February 5, 2021 22:04
Drive the SM-S2309S (the one coming with the Arduino Kit) Servo using the Adafruit 16x12 bit Servo Shield
/***************************************************
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
@Injac
Injac / nuget
Created November 16, 2015 21:40
nuget shell file for linux
#!/bin/sh
exec /usr/bin/mono /usr/bin/nuget.exe "$@"
@Injac
Injac / PiConnect.ps1
Created September 27, 2015 21:33
Script to connect to your RPI2, running Windows 10 IoT Core using PowerShell
#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
@Injac
Injac / SampleViewItem.cs
Last active August 29, 2015 14:27
QuickFix for Syncfusion UWP Sample Browser
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
@Injac
Injac / DHT11.cs
Created July 7, 2015 14:49
DHT11 Sensor driver for Windows 10 IoT Core - C#
//An exact copy of the adafruit DTH-11 driver in C#
//Example usage:
//var gpio = GpioController.GetDefault();
//var dataPin = gpio.OpenPin(5);
@Injac
Injac / Sample.cs
Created December 19, 2014 14:54
Sample Shredded Stuff bla
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
@Injac
Injac / FlipViewAnimation
Created October 27, 2014 23:40
FlipView Animation Behavior Anitmate a FlipViewControl with fadein or a slide-animation (botton to top)
public class FlipViewAnimationBehaviour: DependencyObject, IBehavior {
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public DependencyObject AssociatedObject {
get;
set;
}