Sublime Text 2 plugin for running ruby tests! (Unit, RSpec, Cucumber)
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
{ | |
"name": "Run Django", | |
"type": "python", | |
"request": "attach", | |
"pathMappings": [ | |
{ | |
"localRoot": "${workspaceFolder}", | |
"remoteRoot": "/app" | |
} | |
], |
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 Select2Item = (function () { | |
function formatRepoSelection(item) { | |
return item.text; | |
} | |
function formatRepo(item) { | |
return item.text; | |
} | |
function processData(data) { |
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
import os | |
import sys | |
import argparse | |
try: | |
import xml.etree.ElementTree as etree | |
except Exception: | |
print() | |
print("lxml , module Not Found") |
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
function FilterByAttribute(mainElementName, itemElementName, attributeName, addSpace){ | |
addSpace = addSpace || false; | |
var divList = $(itemElementName); | |
divList.sort(function (a, b) { | |
var attributeA = $(a).data(attributeName); | |
var attributeB = $(b).data(attributeName); | |
if(IsStringNumber(attributeA) || IsStringNumber(attributeB)){ | |
return $(a).data(attributeName) > $(b).data(attributeName); | |
} else { | |
return String.prototype.localeCompare.call(attributeA.toLowerCase(), attributeB.toLowerCase()); |
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
Create a folder in /opt and cd to it | |
$ sudo mkdir -p /opt/syncthing | |
$ cd /opt/syncthing | |
Get the latest arm version of syncthing from github (https://github.com/syncthing/syncthing/releases/) x marks the version number. | |
$ sudo wget https://github.com/syncthing/syncthing/releases/download/vx.xx.x/syncthing-linux-arm-vx.xx.x.tar.gz | |
sudo tar -xzvf syncthing-linux-arm-vx.xx.x.tar.gz | |
sudo rm syncthing-linux-arm-vx.xx.x.tar.gz | |
Move content one folder up |
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 file should be placed at /etc/logrotate.d/ | |
/srv/*/shared/log/*.log { | |
daily | |
missingok | |
dateext | |
rotate 30 # amount of days to keep compressed logs (you should backup it up externally) | |
compress | |
delaycompress | |
notifempty |