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
;based on https://nsis.sourceforge.io/PowerShell_support but with x64 support | |
!include x64.nsh | |
!ifndef PSEXEC_INCLUDED | |
!define PSEXEC_INCLUDED | |
!macro PowerShellExecMacro PSCommand | |
InitPluginsDir | |
;Save command in a temp file | |
Push $R1 | |
FileOpen $R1 $PLUGINSDIR\tempfile.ps1 w |
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
#needs py.test and needs unittest | |
# python -m py.test segfault.py | |
# works with unittest only | |
# used: Python 3.4.1.1 (default, Aug 24 2014, 21:32:40) | |
import unittest | |
class TestCase(unittest.TestCase): | |
def test_bug(self): | |
with self.assertRaises(TypeError) as context: |
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 filesizeformat(bytes, binary, precision) { | |
/* | |
Javascript filesizeformater. | |
Inspired by jinja2 and some gists. | |
@version 1.0.0 | |
@copyright 2014 Julian Hille | |
@author Julian Hille | |
*/ | |
binary = typeof binary !== 'undefined' ? binary : false; |
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
export ES_HOST=http://localhost:9200 | |
export ES_INDEX=test | |
# delete & recreate index with defaults | |
curl -XDELETE $ES_HOST/$ES_INDEX -s -o /dev/null | |
curl -XPUT $ES_HOST/$ES_INDEX -s -o /dev/null | |
# configure the mapping of the bug type in the test index | |
curl -XPUT $ES_HOST/$ES_INDEX/bug/_mapping -d '{ |
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
export ES_HOST=http://localhost:9200 | |
export ES_INDEX=test | |
# delete & recreate index with defaults | |
curl -XDELETE $ES_HOST/$ES_INDEX -s -o /dev/null | |
curl -XPUT $ES_HOST/$ES_INDEX -s -o /dev/null | |
# configure the mapping of the bug type in the test index | |
curl -XPUT $ES_HOST/$ES_INDEX/bug/_mapping -s -o /dev/null -d ' |
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
export ES_HOST=http://localhost:9200 | |
# delete & recreate index with defaults | |
curl -XDELETE $ES_HOST/test | |
curl -XPUT $ES_HOST/test | |
# configure the mapping of the bug type in the test index | |
curl -XPUT $ES_HOST/test/bug/_mapping -d' | |
{ | |
"bug": { |
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
export ES_HOST=http://localhost:9200/ | |
# delete & recreate index with defaults | |
curl -XDELETE $ES_HOST/test | |
curl -XPUT $ES_HOST/test | |
# configure the mapping of the bug type in the test index | |
curl -XPUT $ES_HOST/test/bug/_mapping -d' | |
{ | |
"bug": { |
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
mv /Applications/MAMP/Library/bin/httpd /Applications/MAMP/Library/bin/httpd.64 | |
lipo -thin i386 /Applications/MAMP/Library/bin/httpd.64 -out /Applications/MAMP/Library/bin/httpd.32 | |
ln -s /Applications/MAMP/Library/bin/httpd.32 /Applications/MAMP/Library/bin/httpd |