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
--- /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication 2015-10-06 00:07:37.000000000 +0300 | |
+++ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication.old 2015-10-27 18:10:59.000000000 +0300 | |
@@ -152,9 +152,8 @@ | |
} | |
} | |
- my @codesign_args = ("/usr/bin/codesign", "--force", "--preserve-metadata=identifier,entitlements,resource-rules", | |
- "--sign", $opt{sign}, | |
- "--resource-rules=$destApp/ResourceRules.plist"); | |
+ my @codesign_args = ("/usr/bin/codesign", "--force", "--preserve-metadata=identifier,entitlements", |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure(2) do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
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
task parseXml() { | |
def fileXml = new File('xmlexample.xml') | |
def resources = new XmlSlurper().parseText(fileXml.getText()) | |
if (resources.string[0].@name == 'host'){ | |
resources.string[0]= 'localhost' | |
} | |
def f = XmlUtil.serialize(resources) | |
def of = new File('xmlexample2.xml') |
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
#!/usr/bin/env python | |
#-*- coding: utf-8 -*- | |
import xmpp,sys | |
xmpp_jid = '[email protected]' | |
xmpp_pwd = 'noreplypass' | |
to = sys.argv[1] | |
msg = sys.argv[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
# красно-зеленая | |
export LESS_TERMCAP_mb=$'\033[01;31m' | |
export LESS_TERMCAP_md=$'\033[01;31m' | |
export LESS_TERMCAP_me=$'\033[0m' | |
export LESS_TERMCAP_se=$'\033[0m' | |
export LESS_TERMCAP_so=$'\033[01;44;33m' | |
export LESS_TERMCAP_ue=$'\033[0m' | |
export LESS_TERMCAP_us=$'\033[01;32m' | |
export LESS=-r | |
export GROFF_NO_SGR=1 |
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 | |
CURRENT=$(setxkbmap -query | grep layout | awk '{print $2}') | |
if [[ $CURRENT == 'ru' ]] | |
then | |
setxkbmap us | |
else | |
setxkbmap ru | |
fi |
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
server { | |
listen 80; | |
server_name example.com; | |
root '/var/www/example.com/htdocs'; | |
location / { | |
root '/var/www/example.com/htdocs'; | |
index index.php; | |
} | |
location ~ \.php$ { | |
fastcgi_split_path_info ^(.+\.php)(/.+)$; |
NewerOlder