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/bash | |
echo "Change Hostname Permanently" | |
echo "Script by Fabio Nisci 2014" | |
echo "Enjoy." | |
# Only root can! | |
if [[ $EUID -ne 0 ]]; then | |
echo "Run this script as ROOT o SUDO" 1>&2 | |
exit 1 |
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/bash | |
# Installazione "Wicd" Network Manager per WiFi e Eth | |
# Start as Root or sudo. | |
# Solo root può eseguire lo script | |
if [[ $EUID -ne 0 ]]; then | |
echo "Avvia lo script come ROOT o SUDO" 1>&2 | |
exit 1 | |
fi |
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
#!/usr/bin/env ruby2.2 | |
begin | |
load File.expand_path("../spring", __FILE__) | |
rescue LoadError | |
end | |
APP_PATH = File.expand_path('../../config/application', __FILE__) | |
require_relative '../config/boot' | |
# START NEW CODE | |
require "rails/commands/server" |
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
# Uncomment the next line to define a global platform for your project | |
# platform :ios, '9.0' | |
target 'yourapp' do | |
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks | |
use_frameworks! | |
# Pods for your app | |
## utils |
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/bash | |
#Thx, http://stackoverflow.com/questions/20723868/batch-rename-dropbox-conflict-files | |
#Point to where you want the script to look and where it should backup files it replaces | |
folder="$(pwd)" | |
backup=~/Desktop/Dropbox.backup | |
#colors | |
red='\033[0;31m' |
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/bash | |
DATE=$(date +"%Y-%m-%dT%H-%M-%SZ") | |
HOME=/home/pi | |
BACKUP=$HOME/backup | |
WHERE=$BACKUP/$DATE | |
# create dated backup folders | |
mkdir -p $WHERE/{sqlite,nodered,etc,homebridge} |
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
// | |
// ZoomCardFlowLayout.swift | |
// | |
// | |
// Created by Oni_01 on 12/05/15. | |
// Copyright (c) 2015 Andrea Altea. All rights reserved. | |
// | |
import UIKit |
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
disabled_rules: # rule identifiers to exclude from running | |
- line_length | |
- function_body_length | |
- cyclomatic_complexity | |
- multiple_closures_with_trailing_closure | |
- xctfail_message | |
# Swift 3 rules that do not make sense for Swift 2.3 | |
- implicit_getter |
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
- (BOOL) gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch | |
{ | |
if ([gestureRecognizer isEqual:self.tapRecognizer]) { | |
// for ios 7 , need to compare with UITableViewCellContentView | |
if ([NSStringFromClass([touch.view class]) isEqualToString:@"UITableViewCellContentView"] || [touch.view.superview isKindOfClass:[UITableViewCell class]]) { | |
return FALSE; | |
} | |
} | |
return TRUE; | |
} |
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
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:wsdl="http://www.onvif.org/ver20/ptz/wsdl" xmlns:sch="http://www.onvif.org/ver10/schema"> | |
<soap:Header/> | |
<soap:Body> | |
<wsdl:ContinuousMove> | |
<wsdl:Velocity> | |
<!--Optional:--> | |
<sch:PanTilt x="-1" y="0" space="0"/> | |
</wsdl:Velocity> | |
<!--Optional:--> | |
</wsdl:ContinuousMove> |
OlderNewer