commit
stringlengths 40
40
| old_file
stringlengths 4
237
| new_file
stringlengths 4
237
| old_contents
stringlengths 1
4.24k
| new_contents
stringlengths 1
4.87k
| subject
stringlengths 15
778
| message
stringlengths 15
8.75k
| lang
stringclasses 266
values | license
stringclasses 13
values | repos
stringlengths 5
127k
|
---|---|---|---|---|---|---|---|---|---|
7aeec1287ede1cd9ed851612db82edb15e4aa521
|
core/src/ab-core-Entry.nasm
|
core/src/ab-core-Entry.nasm
|
%include "Ab/State.nasm"
extern ab_act
global ab_interpret_func
section .text
ab_interpret_func:
call ab_act
ret
|
%include "Ab/State.nasm"
extern ab_act
global ab_interpret_func
section .text
; Byte* ab_interpret_func(ExecState*, ExecAction)
ab_interpret_func:
push rbx
mov rbx, rdi
call ab_act
cmp byte [rbx + ExecState.st_b + ExecStateB.condition], ExecCond_HALTED
je ab_exit
int 3
ab_exit:
pop rbx
ret
|
Check the state->st_b.condition when returining from the interpreter
|
Check the state->st_b.condition when returining from the interpreter
Right now we are checking to make sure that the halted state is set.
This is not correct. Eventually we will want to add a mechanism for
specifying if we are transfering from the interpreter to compiled code.
Signed-off-by: Andrew Young <[email protected]>
|
Assembly
|
apache-2.0
|
ab-vm/ab,ab-vm/ab,ab-vm/ab,ab-vm/ab,ab-vm/ab
|
6d19ac909af8d7b5548fbba788af31fe3d074801
|
Assembly/textbox/menu_request.asm
|
Assembly/textbox/menu_request.asm
|
;;----------------------------------------------------------------------------;;
;; Increase textbox size in request menu
;; Copyright 2014 Benito Palacios (aka pleonex)
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;----------------------------------------------------------------------------;;
;; # REQUEST TITLE #
.arm
.org 020C5804h
MOV r1, #0x49 ; X Position: original 0x50
MOV r2, #4 ; Y Position: original 0x03
|
;;----------------------------------------------------------------------------;;
;; Increase textbox size in request menu
;; Copyright 2014 Benito Palacios (aka pleonex)
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;----------------------------------------------------------------------------;;
;; # REQUEST TITLE #
.arm
.org 020C5804h
MOV r1, #0x49 ; X Position: original 0x50
MOV r2, #4 ; Y Position: original 0x03
;; # STAMP GIVEN #
.org 020C5950h
MOV r1, #0xCD + 10 ; X position
|
Move stamp gives in request menu
|
Move stamp gives in request menu
|
Assembly
|
apache-2.0
|
pleonex/Ninokuni,pleonex/Ninokuni,pleonex/Ninokuni
|
8af555e5373d7616ba5a43904d3b27db7c8d08ce
|
asm/dos_skip_name_signing.asm
|
asm/dos_skip_name_signing.asm
|
.nds
.relativeinclude on
.erroronwarning on
.open "ftc/arm9.bin", 02000000h
; Skip the screen where the player has to sign their name and press OK when starting a new game.
.org 0x02045E8C ; Code that sets the name signing menu's state to 3 after zeroing out the name pixel data.
movne r0, 6h ; Instead set the state to 6, meaning the state where the player has pressed OK and the new game is now starting.
.close
|
.nds
.relativeinclude on
.erroronwarning on
.open "ftc/arm9.bin", 02000000h
; Skip the screen where the player has to sign their name and press OK when starting a new game.
.org 0x02045E8C ; Code that sets the name signing menu's state to 3 after zeroing out the name pixel data.
movne r0, 6h ; Instead set the state to 6, meaning the state where the player has pressed OK and the new game is now starting.
.org 0x02045E78 ; Code that displays the name signing menu on the screen.
nop ; Delete it to prevent the name signing screen from being visible for a split second when starting a new game.
.close
|
Tweak to skip name signing patch
|
Tweak to skip name signing patch
|
Assembly
|
mit
|
LagoLunatic/DSVEdit
|
31f9ab16a1370751841abd5b0852ab040b5a7654
|
src/res/load_resources.asm
|
src/res/load_resources.asm
|
// load sid music
.var music = LoadSid("res/jeff_donald.sid")
//.var music = LoadSid("res/demo.sid")
.pc = music.location
.fill music.size, music.getData(i)
.var picture = LoadBinary("res/dcc.prg")
.pc = $2000 - 2 "Bitmap Data"
.fill picture.getSize(), picture.get(i)
|
// load sid music
//.var music = LoadSid("res/jeff_donald.sid")
.var music = LoadSid("res/demo.sid")
.pc = music.location "Music"
.fill music.size, music.getData(i)
.pc = $2000 - 2 "Bitmap Data"
.var picture = LoadBinary("res/dcc.prg")
.fill picture.getSize(), picture.get(i)
//----------------------------------------------------------
// Print the music info while assembling
.print ""
.print "SID Data"
.print "--------"
.print "location=$"+toHexString(music.location)
.print "init=$"+toHexString(music.init)
.print "play=$"+toHexString(music.play)
.print "songs="+music.songs
.print "startSong="+music.startSong
.print "size=$"+toHexString(music.size)
.print "name="+music.name
.print "author="+music.author
.print "copyright="+music.copyright
.print ""
.print "Additional tech data"
.print "--------------------"
.print "header="+music.header
.print "header version="+music.version
.print "flags="+toBinaryString(music.flags)
.print "speed="+toBinaryString(music.speed)
.print "startpage="+music.startpage
.print "pagelength="+music.pagelength
|
Print additional info about SID file
|
Print additional info about SID file
|
Assembly
|
cc0-1.0
|
c64scene-ar/c64demo,c64scene-ar/c64demo,c64scene-ar/c64demo
|
d7bfefdf28f2f314a7b4784f25d37dbbe1c908ae
|
asm/dos_skip_drawing_seals.asm
|
asm/dos_skip_drawing_seals.asm
|
.nds
.relativeinclude on
.erroronwarning on
.open "ftc/overlay9_0", 0219E3E0h
; This makes it so you don't need to draw a Magic Seal to kill a boss.
.org 0x02213C04 ; Location of the boss-killed code for loading the current game mode.
mov r0, 1 ; Always load 1 (meaning Julius mode).
.close
|
.nds
.relativeinclude on
.erroronwarning on
.open "ftc/overlay9_0", 0219E3E0h
; This patch makes it so you don't need to draw a Magic Seal to kill a boss.
.org 0x02213C04 ; Location of the seal drawing code for loading the current game mode.
mov r0, 1 ; Always load 1 (meaning Julius mode).
; The above change causes a bug with the practice seal menu, where attempting to practice a seal will cause the screen to go black and the game to softlock.
.org 0x021F1BF8 ; Location of code in the practice menu to decide which type of seal to do.
mov r1, 0 ; Instead of setting argument r1 to 2 (meaning a practice seal) we set it to 0 (meaning an automatically drawn example seal). This doesn't softlock the game.
.close
|
Fix bug in dos seal drawing skip patch
|
Fix bug in dos seal drawing skip patch
|
Assembly
|
mit
|
LagoLunatic/DSVEdit
|
250778ca070a4c9163e71c996104802d1ad69f5e
|
vic-20/basic-loader.asm
|
vic-20/basic-loader.asm
|
org $0fff
load_address:
$01 $10 @(low basic_end) @(high basic_end) $01 $00 $9e "4109" 0
basic_end:
$00 $00
|
org $0fff
load_address:
$01 $10 @(low basic_end) @(high basic_end) $01 $00 $9e @(princ main nil) 0
basic_end:
$00 $00
|
Make SYS call to label main, not the end of the BASIC program.
|
Make SYS call to label main, not the end of the BASIC program.
|
Assembly
|
bsd-2-clause
|
SvenMichaelKlose/bender,SvenMichaelKlose/bender,SvenMichaelKlose/bender
|
23f741273f13c9e3d3e6741deba02b2918bc5e6b
|
Assembly/textbox/menu_team.asm
|
Assembly/textbox/menu_team.asm
|
;;----------------------------------------------------------------------------;;
;; Align the position of the textbox in team menu
;; Copyright 2015 Benito Palacios (aka pleonex)
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;----------------------------------------------------------------------------;;
.arm
;; Character face icon
.org 0x02130478
ADD R2, R2, #0x19 - 1 ; Y position
;; Health state
.org 0x02130A08
MOV R2, #0x2A + 1 ; Y position
|
;;----------------------------------------------------------------------------;;
;; Align the position of the textbox in team menu
;; Copyright 2015 Benito Palacios (aka pleonex)
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;----------------------------------------------------------------------------;;
.arm
;; Character face icon
.org 0x02130478
ADD R2, R2, #0x19 - 1 ; Y position
;; Health state
.org 0x02130A08
MOV R2, #0x2A + 1 ; Y position
;; Technique name
.org 0x021311AC
MOV R2, #7 - 3 ; Y position
;; Technique magic
.org 0x021311EC
MOV R2, #8 - 2 ; Y position
|
Move technique name and PM in team menu
|
Move technique name and PM in team menu
|
Assembly
|
apache-2.0
|
pleonex/Ninokuni,pleonex/Ninokuni,pleonex/Ninokuni
|
e7c7852fd8510306f0487f96317b14a446574ee0
|
stage2/pmode.asm
|
stage2/pmode.asm
|
[ORG 0x10800]
PMode:
mov eax, 0xFEEDFACE
mov ecx, 0xF00DD00D
mov edx, 0xBAADBEEF
.jmpy:
hlt
jmp .jmpy
|
[ORG 0x10800]
[BITS 32]
PMode:
mov eax, 0x10
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mov ss, ax
mov esp, 0x90000
mov ebp, esp
.jmpy:
hlt
jmp .jmpy
|
Change setup for protected mode
|
Change setup for protected mode
|
Assembly
|
apache-2.0
|
vendu/Ukko,vendu/Ukko,vdamewood/Petrichor,vdamewood/Petrichor,vdamewood/Petrichor,vendu/Ukko
|
f576d5346c0ef5fe5b4c2eb6f3f7f1d7395f276d
|
src/scenes/peron/index.asm
|
src/scenes/peron/index.asm
|
//============================================================
// .efo header
//============================================================
.pc = $0
.text "EFO2" // fileformat magic
.word prepare // prepare routine
.word setup // setup routine
.word interrupt // irq handler
.word 0 // main routine
.word 0 // fadeout routine
.word 0 // cleanup routine
.word 0 // location of playroutine call
// tags
//.byt "P", $04, $07 // range of pages in use
//.byt "I",$10,$1f // range of pages inherited
//.byt "Z",$02,$03 // range of zero-page addresses in use
//.byt "S" // i/o safe
//.byt "X" // avoid loading
//.byt "M",<play,>play // install music playroutine
.byte 0 // end-of-tags
.word load_addr
load_addr:
.import source "init.asm"
.import source "fx.asm"
.import source "main.asm"
|
//============================================================
// .efo header
//============================================================
.pc = $2000
.text "EFO2" // fileformat magic
.word prepare // prepare routine
.word setup // setup routine
.word interrupt // irq handler
.word 0 // main routine
.word 0 // fadeout routine
.word 0 // cleanup routine
.word 0 // location of playroutine call
// tags
//.byt "P", $04, $07 // range of pages in use
//.byt "I",$10,$1f // range of pages inherited
//.byt "Z",$02,$03 // range of zero-page addresses in use
//.byt "S" // i/o safe
//.byt "X" // avoid loading
//.byt "M",<play,>play // install music playroutine
.byte 0 // end-of-tags
.word load_addr
load_addr:
.import source "init.asm"
.import source "fx.asm"
.import source "main.asm"
|
Fix load address - still not working :(
|
Fix load address - still not working :(
|
Assembly
|
cc0-1.0
|
c64scene-ar/c64demo,c64scene-ar/c64demo,c64scene-ar/c64demo
|
217a20c9be293976ed17ef3326db18362752143c
|
Assembly/textbox/menu_items_effect.asm
|
Assembly/textbox/menu_items_effect.asm
|
;;----------------------------------------------------------------------------;;
;; Align the position of the textbox in the effect of items
;; Copyright 2014 Benito Palacios (aka pleonex)
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;----------------------------------------------------------------------------;;
.thumb
;; Item effect
.org 0x02117D4E
MOV R1, #0x60 ; X POS -> Original 0x62
;; Slot color
.org 0x021170DE
MOV R1, #0x9E - 4 ; X POS
|
;;----------------------------------------------------------------------------;;
;; Align the position of the textbox in the effect of items
;; Copyright 2014 Benito Palacios (aka pleonex)
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;----------------------------------------------------------------------------;;
.thumb
;; Item effect
.org 0x02117D4E
MOV R1, #0x60 ; X POS -> Original 0x62
;; Slot color
.org 0x021170DE
MOV R1, #0x9E - 4 ; X POS
.thumb
;; Increase the size of the item name textbox
.org 0x02116E90
MOV R0, #0x14 + 1 ; Width / 8
|
Increase textbox width of item name in menu
|
Increase textbox width of item name in menu
|
Assembly
|
apache-2.0
|
pleonex/Ninokuni,pleonex/Ninokuni,pleonex/Ninokuni
|
3cfb4ad0c72c561563883beff4ff05a6c68e7768
|
examples/checkout-kata.asm
|
examples/checkout-kata.asm
|
; Based on http://codekata.com/kata/kata09-back-to-the-checkout/
org 8000h
include src/zx-spec.asm
spec_init
describe 'price'
it 'Returns 0 for no items'
ld a,$FF
call price
assert_a_equal 0
spec_end
price proc
ret
endp
end 8000h
|
; Based on http://codekata.com/kata/kata09-back-to-the-checkout/
org 8000h
include src/zx-spec.asm
spec_init
describe 'price'
it 'Returns 0 for no items'
ld a,$FF
call price
assert_a_equal 0
spec_end
price proc
ld a,0
ret
endp
end 8000h
|
Return 0 for no items
|
Return 0 for no items
|
Assembly
|
mit
|
rhargreaves/zx-spec
|
d90e3fd5ad403410bbb51a498e9721527d260ec7
|
RoadRunner/programs/cachetest2.asm
|
RoadRunner/programs/cachetest2.asm
|
LLB R1, 70 #Address
LHB R1, 0xCC
LLB R2, 59
LLB R12, 34
LLB R13, 45
LLB R14, 78
SW R1, R1, 0
SW R12, R1, 1
SW R13, R1, 2
SW R14, R1, 3
LW R3, R1, 0
ADD R4, R2, R2
LW R7, R1, 1
ADD R4, R4, R4
LW R8, R1, 2
ADD R4, R4, R4
LW R9, R1, 3
ADD R4, R4, R4
SW R2, R1, 0
LW R5, R1, 1
LW R6, R1, 3
HLT
|
LLB R1, 0x70 #Address
LHB R1, 0xCC
LLB R2, 59
LLB R12, 34
LLB R13, 45
LLB R14, 78
SW R1, R1, 0
SW R12, R1, 1
SW R13, R1, 2
SW R14, R1, 3
LW R3, R1, 0
ADD R4, R2, R2
LW R7, R1, 1
ADD R4, R4, R4
LW R8, R1, 2
ADD R4, R4, R4
LW R9, R1, 3
ADD R4, R4, R4
SW R2, R1, 0
LW R5, R1, 1
LW R6, R1, 3
HLT
|
Write to 0x70 instead 46
|
Write to 0x70 instead 46
|
Assembly
|
mit
|
somethingnew2-0/CS552-CPU,somethingnew2-0/CS552-CPU,somethingnew2-0/CS552-CPU
|
dace226187f0859b67a155c6b41763fd63075f19
|
test/br2030823.asm
|
test/br2030823.asm
|
bits 64
VFMADDPD xmm0, xmm1, [0], xmm3
VFMADDPD xmm0, xmm1, xmm2, [0]
VFMADDPD ymm0, ymm1, [0], ymm3
VFMADDPD ymm0, ymm1, ymm2, [0]
|
bits 64
VFMADDPD xmm0, xmm1, [0], xmm3
VFMADDPD xmm0, xmm1, xmm2, [0]
VFMADDPD ymm0, ymm1, [0], ymm3
VFMADDPD ymm0, ymm1, ymm2, [0]
|
Fix file with no final newline
|
test: Fix file with no final newline
Fix test/br2030823.asm, which had no final newline.
Signed-off-by: H. Peter Anvin <[email protected]>
|
Assembly
|
bsd-2-clause
|
techkey/nasm,techkey/nasm,letolabs/nasm,techkey/nasm,Distrotech/nasm,letolabs/nasm,turingstudio/nasm,turingstudio/nasm,projedi/nasm,Distrotech/nasm,Distrotech/nasm,letolabs/nasm,projedi/nasm,techkey/nasm,projedi/nasm,turingstudio/nasm,Distrotech/nasm,projedi/nasm,turingstudio/nasm,projedi/nasm,techkey/nasm
|
833d603b411693d910a5bbaf8902035e4cbddbe5
|
asm64/amd64.masm/Tsc.asm
|
asm64/amd64.masm/Tsc.asm
|
;
; Copyright Mehdi Sotoodeh. All rights reserved.
; <[email protected]>
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that source code retains the
; above copyright notice and following disclaimer.
;
; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
; "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
; LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
; A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
; OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
; SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
; LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
; DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
; THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
;
include defines.inc
PUBPROC readTSC
rdtscp
shl rdx,32
xchg eax,edx
xchg rdx,rax
ret
ENDPROC readTSC
END
|
;
; Copyright Mehdi Sotoodeh. All rights reserved.
; <[email protected]>
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that source code retains the
; above copyright notice and following disclaimer.
;
; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
; "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
; LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
; A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
; OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
; SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
; LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
; DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
; THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
;
include defines.inc
PUBPROC readTSC
rdtscp
shl rdx,32
add rax,rdx
ret
ENDPROC readTSC
END
|
Include upper 32-bits of tsc.
|
Include upper 32-bits of tsc.
|
Assembly
|
mit
|
jl777/curve25519,msotoodeh/curve25519,msotoodeh/curve25519
|
8947bb2ef571fc97290b7275170f7677e38880e7
|
Assembly/keyboard/font_space.asm
|
Assembly/keyboard/font_space.asm
|
;;----------------------------------------------------------------------------;;
;; Reduce the font space
;; Copyright 2015 Benito Palacios (aka pleonex)
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;----------------------------------------------------------------------------;;
.arm
.org 020C64E0h
.area 4h
MOV R1, #8 - 4
.endarea
|
;;----------------------------------------------------------------------------;;
;; Reduce the font space
;; Copyright 2015 Benito Palacios (aka pleonex)
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;----------------------------------------------------------------------------;;
.arm
.org 020C64E0h
.area 4h
MOV R1, #8 - 8
.endarea
|
Remove any space between chars
|
Keyboard: Remove any space between chars
|
Assembly
|
apache-2.0
|
pleonex/Ninokuni,pleonex/Ninokuni,pleonex/Ninokuni
|
043ee65f202361d581327b1f6caddfa704a0f644
|
Assembly/textbox/menu_familiars.asm
|
Assembly/textbox/menu_familiars.asm
|
;;----------------------------------------------------------------------------;;
;; Align the position of the textbox in familiars menu
;; Copyright 2014 Benito Palacios (aka pleonex)
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;----------------------------------------------------------------------------;;
;; # FAMILIAR DESCRIPTION #
.org 020B6770h
MOV r4, #0x9A ; Y Position: original 0x97
.org 020B677Ch
MOV r1, #8 ; X Position: original 0x08
;; # FAMILIAR OBJECTS #
.org 020B6604h
MOV r1, #0x73 ; X Position: Original 0x74
ADD r2, r2, #0x6B ; Y Position: Original 0x6B
|
;;----------------------------------------------------------------------------;;
;; Align the position of the textbox in familiars menu
;; Copyright 2014 Benito Palacios (aka pleonex)
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;----------------------------------------------------------------------------;;
.arm
;; # FAMILIAR DESCRIPTION #
.org 020B6770h
MOV r4, #0x9A ; Y Position: original 0x97
.org 020B677Ch
MOV r1, #8 ; X Position: original 0x08
;; # FAMILIAR OBJECTS #
.org 020B6604h
MOV r1, #0x73 ; X Position: Original 0x74
ADD r2, r2, #0x6B ; Y Position: Original 0x6B
;; # MONEY GIVEN #
.org 020B671Ch
MOV R1, #0xCD + 9 ; X Position
|
Fix familiar money give number position
|
Fix familiar money give number position
|
Assembly
|
apache-2.0
|
pleonex/Ninokuni,pleonex/Ninokuni,pleonex/Ninokuni
|
e439132ec22e5fabaecb17d79d37787b55fc7112
|
Assembly/textbox/casino_dialog.asm
|
Assembly/textbox/casino_dialog.asm
|
;;----------------------------------------------------------------------------;;
;; Align the position of the textbox in the casino dialogs
;; Copyright 2014 Benito Palacios (aka pleonex)
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;----------------------------------------------------------------------------;;
; Money number
.arm
.org 0x02134F78
MOV R1, #0x16 ; X pos, original 0x8
|
;;----------------------------------------------------------------------------;;
;; Align the position of the textbox in the casino dialogs
;; Copyright 2014 Benito Palacios (aka pleonex)
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;----------------------------------------------------------------------------;;
; Money number
.arm
.org 0x02134F78
MOV R1, #0x16 ; X pos, original 0x8
; Number of coins
.org 0x02134FB0
MOV R1, #0x6E ; X pos, original 0x60
|
Move number of casino coins
|
Move number of casino coins
|
Assembly
|
apache-2.0
|
pleonex/Ninokuni,pleonex/Ninokuni,pleonex/Ninokuni
|
39cfb70e65ce87f36044637b429b2d48b5cbcd2c
|
Assembly/textbox/menu_team.asm
|
Assembly/textbox/menu_team.asm
|
;;----------------------------------------------------------------------------;;
;; Align the position of the textbox in team menu
;; Copyright 2015 Benito Palacios (aka pleonex)
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;----------------------------------------------------------------------------;;
.arm
;; Character face icon
.org 0x02130478
ADD R2, R2, #0x19 - 1 ; Y position
|
;;----------------------------------------------------------------------------;;
;; Align the position of the textbox in team menu
;; Copyright 2015 Benito Palacios (aka pleonex)
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;----------------------------------------------------------------------------;;
.arm
;; Character face icon
.org 0x02130478
ADD R2, R2, #0x19 - 1 ; Y position
;; Health state
.org 0x02130A08
MOV R2, #0x2A + 1 ; Y position
|
Move health state in team menu
|
Move health state in team menu
|
Assembly
|
apache-2.0
|
pleonex/Ninokuni,pleonex/Ninokuni,pleonex/Ninokuni
|
081fcfbdf1c36d1e6d8141daaefbe7e23ac20ad9
|
src/context.asm
|
src/context.asm
|
.file "context.asm"
.text
.align 2
.global kernel_enter
.type kernel_enter, %function
kernel_enter:
mov r2, lr
mrs r3, spsr
msr cpsr, #0x9F /* system */
stmfd sp!, {r0, r2-r12, lr}
mov r2, sp
msr cpsr, #0x93 /* supervisor */
ldmfd sp!, {r4-r12, lr}
/* mov sp, #0x1000 */
b syscall_handle (PLT)
.size kernel_enter, .-kernel_enter
.align 2
.global kernel_exit
.type kernel_exit, %function
kernel_exit:
@ r0 holds address of user stack
stmfd sp!, {r4-r12, lr}
msr cpsr, #0x9F /* System */
mov sp, r0
ldmfd sp!, {r0, r2-r12, lr}
msr cpsr, #0x93 /* Supervisor */
msr spsr, r3
movs pc, r2
.size kernel_exit, .-kernel_exit
|
.file "context.asm"
.text
.align 2
.global kernel_enter
.type kernel_enter, %function
kernel_enter:
mov r2, lr
mrs r3, spsr
msr cpsr, #0x9F /* system */
stmfd sp!, {r0, r2-r12, lr}
mov r2, sp
msr cpsr, #0x93 /* supervisor */
ldmfd sp!, {r4-r12, lr}
/* mov sp, #0x100000 */
b syscall_handle (PLT)
.size kernel_enter, .-kernel_enter
.align 2
.global kernel_exit
.type kernel_exit, %function
kernel_exit:
@ r0 holds address of user stack
stmfd sp!, {r4-r12, lr}
msr cpsr, #0x9F /* System */
mov sp, r0
ldmfd sp!, {r0, r2-r12, lr}
msr cpsr, #0x93 /* Supervisor */
msr spsr, r3
movs pc, r2
.size kernel_exit, .-kernel_exit
|
Set the stack-less kernel stack to a safe value
|
Set the stack-less kernel stack to a safe value
|
Assembly
|
mit
|
ferrous26/cs452-flaming-meme,ferrous26/cs452-flaming-meme,ferrous26/cs452-flaming-meme
|
cb327ab25a80f57f859129a361acbc9186999a1e
|
3/src/sdtest/sdtest.rom.asm
|
3/src/sdtest/sdtest.rom.asm
|
x0 = 0
ra = 1
dsp = 2
rsp = 3
gp = 4
gvp = 5
x16 = 16
x17 = 17
x18 = 18
include "sdtest.asm"
; exit the emulator.
emu_exit:
andi x16, x16, 255
slli x16, x16, 8
addi rsp, rsp, -8
sd x16, 0(rsp)
csrrw x0, rsp, $780
jal x0, *
; Initialize the BSPL runtime environment.
; Then, kick off our tests.
_cold: addi rsp, x0, $400
add dsp, rsp, rsp
add gvp, dsp, dsp
jal x0, _
; CPU cold boots here.
adv $FFF00, $CC
jal x0, _cold
|
zero = 0
ra = 1
dsp = 2 ; Data stack pointer.
rsp = 3 ; Return stack pointer.
gvp = 4 ; Global variables pointer.
gp = 13
dr16 = 5
dr17 = 6
dr18 = 7
dr19 = 8
dr20 = 9
dr21 = 10
dr22 = 11
dr23 = 12
x0 = 0
x16 = 16
x17 = 17
x18 = 18
include "sdtest.asm"
; exit the emulator.
emu_exit:
andi x16, x16, 255
slli x16, x16, 8
addi rsp, rsp, -8
sd x16, 0(rsp)
csrrw x0, rsp, $780
jal x0, *
; Initialize the BSPL runtime environment.
; Then, kick off our tests.
_cold: addi rsp, x0, $400
add dsp, rsp, rsp
add gvp, dsp, dsp
jal x0, _
; CPU cold boots here.
adv $FFF00, $CC
jal x0, _cold
|
Make work with new BSPL ABI reqs
|
Make work with new BSPL ABI reqs
|
Assembly
|
mpl-2.0
|
sam-falvo/kestrel,KestrelComputer/kestrel,KestrelComputer/kestrel,sam-falvo/kestrel,KestrelComputer/kestrel,KestrelComputer/kestrel,sam-falvo/kestrel,sam-falvo/kestrel
|
3e341dc73672f69ff2215f181d6889bb738daaec
|
Assembly/textbox/menu_items_effect.asm
|
Assembly/textbox/menu_items_effect.asm
|
;;----------------------------------------------------------------------------;;
;; Align the position of the textbox in the effect of items
;; Copyright 2014 Benito Palacios (aka pleonex)
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;----------------------------------------------------------------------------;;
.thumb
.org 0x02117D4E
MOV R1, #0x60 ; X POS -> Original 0x62
|
;;----------------------------------------------------------------------------;;
;; Align the position of the textbox in the effect of items
;; Copyright 2014 Benito Palacios (aka pleonex)
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;----------------------------------------------------------------------------;;
.thumb
;; Item effect
.org 0x02117D4E
MOV R1, #0x60 ; X POS -> Original 0x62
;; Slot color
.org 0x021170DE
MOV R1, #0x9E - 4 ; X POS
|
Move slot color in item menu
|
Move slot color in item menu
|
Assembly
|
apache-2.0
|
pleonex/Ninokuni,pleonex/Ninokuni,pleonex/Ninokuni
|
90a4bfa171b4779067c734068e14e3c15b540a93
|
src/fx/colorwash_sub.asm
|
src/fx/colorwash_sub.asm
|
//============================================================
// color washer routine
//============================================================
colwash:
lda color+$00 // load the current first color from table
sta color+$28 // store in in last position of table to reset the cycle
ldx #$00 // init X with zero
cycle1:
lda color+1,x // Start cycle by fetching next color in the table...
sta color,x // ...and store it in the current active position.
sta $d990,x // put into Color Ram
inx // increment X-Register
cpx #$28 // have we done 40 iterations yet?
bne cycle1 // if no, continue
colwash2:
lda color2+$28 // load current last color from second table
sta color2+$00 // store in in first position of table to reset the cycle
ldx #$28
cycle2:
lda color2-1,x // Start cycle by fetching previous color in the table...
sta color2,x // ...and store it in the current active position.
sta $d9df,x // put into Color Ram
dex // decrease iterator
bne cycle2 // if x not zero yet, continue
rts // return from subroutine
|
//============================================================
// color washer routine
//============================================================
colwash:
lda color+$00 // load the current first color from table
sta color+$27 // store in in last position of table to reset the cycle
ldx #$00 // init X with zero
cycle1:
lda color+1,x // Start cycle by fetching next color in the table...
sta color,x // ...and store it in the current active position.
sta $d990,x // put into Color Ram
inx // increment X-Register
cpx #$28 // have we done 40 iterations yet?
bne cycle1 // if no, continue
colwash2:
lda color2+$27 // load current last color from second table
sta color2+$00 // store in in first position of table to reset the cycle
ldx #$28
cycle2:
lda color2-1,x // Start cycle by fetching previous color in the table...
sta color2,x // ...and store it in the current active position.
sta $d9df,x // put into Color Ram
dex // decrease iterator
bne cycle2 // if x not zero yet, continue
rts // return from subroutine
|
Fix last position offset on colorwasher fx
|
Fix last position offset on colorwasher fx
|
Assembly
|
cc0-1.0
|
c64scene-ar/c64demo,c64scene-ar/c64demo,c64scene-ar/c64demo
|
8cbf74339247ad7e0f904ef8b76120ce37bd982d
|
src/entry.asm
|
src/entry.asm
|
[BITS 64]
%include "src/asm_routines/constants.asm"
global start
extern rust_main
section .entry
start:
; update segments
mov dx, gdt_selector_data ; data selector
mov ss, dx ; stack segment
mov ds, dx ; data segment
mov es, dx ; extra segment
mov fs, dx ; f-segment
mov gs, dx ; g-segment
; set up stack
mov esp, stack_top
; get to kernel
call rust_main
; rust main returned, print `OS returned!`
mov rax, 0x4f724f204f534f4f
mov [0xb8000], rax
mov rax, 0x4f724f754f744f65
mov [0xb8008], rax
mov rax, 0x4f214f644f654f6e
mov [0xb8010], rax
hlt
; reserve space for stack
section .bss
stack_bottom:
resb 4096
stack_top:
|
[BITS 64]
%include "src/asm_routines/constants.asm"
global start
extern rust_main
section .entry
start:
; update segments
mov dx, gdt_selector_data ; data selector
mov ss, dx ; stack segment
mov ds, dx ; data segment
mov es, dx ; extra segment
mov fs, dx ; f-segment
mov gs, dx ; g-segment
; set up stack
mov rsp, stack_top
; get to kernel
call rust_main
; rust main returned, print `OS returned!`
mov rax, 0x4f724f204f534f4f
mov [0xb8000], rax
mov rax, 0x4f724f754f744f65
mov [0xb8008], rax
mov rax, 0x4f214f644f654f6e
mov [0xb8010], rax
hlt
; reserve space for stack
section .bss
stack_bottom:
resb 4096
stack_top:
|
Use rsp as stack pointer, not esp
|
Use rsp as stack pointer, not esp
|
Assembly
|
mit
|
Dentosal/rust_os,Dentosal/rust_os,Dentosal/rust_os
|
ac4325decbd36ef93809ad2514fa3ecbb13068ac
|
boot.asm
|
boot.asm
|
; JUMP.ASM
; Make a jump and then hang
; Tell the compiler that this is offset 0.
; It isn't offset 0, but it will be after the jump.
[ORG 0]
jmp 07C0h:start ; Goto segment 07C0
start:
; Update the segment registers
mov ax, cs
mov ds, ax
mov es, ax
hang: ; Hang!
jmp hang
times 510-($-$$) db 0
dw 0AA55h
|
; 1.ASM
; Print "====" on the screen and hang
; Tell the compiler that this is offset 0.
; It isn't offset 0, but it will be after the jump.
[ORG 0]
jmp 07C0h:start ; Goto segment 07C0
start:
; Update the segment registers
mov ax, cs
mov ds, ax
mov es, ax
mov ah, 9 ; Print "===="
mov al, '=' ;
mov bx, 7 ;
mov cx, 4 ;
int 10h ;
hang: ; Hang!
jmp hang
times 510-($-$$) db 0
dw 0AA55h
|
Print "===" to the screen
|
Print "===" to the screen
|
Assembly
|
mit
|
wconrad/brazzle,wconrad/brazzle
|
e9d3e86d70b11800541e55756619684dbfc1ca97
|
load.asm
|
load.asm
|
bits 32
section .text
align 4
dd 0x1BADB002
dd 0x00
dd - (0x1BADB002 + 0x00)
global start
extern main
start:
cli
mov esp, kstack
call main
hlt
section .bss
resb 8192
kstack:
|
bits 32
section .text
align 4
dd 0x1BADB002
dd 0x00
dd - (0x1BADB002 + 0x00)
global start
extern entry
start:
cli
mov esp, kstack
call entry
hlt
section .bss
resb 8192
kstack:
|
Change name of entry function
|
Change name of entry function
|
Assembly
|
mit
|
Magical-Chicken/simple-x86-kernel,Magical-Chicken/simple-x86-kernel
|
41de71e033292b5aa0721882e01576fa68c5e927
|
asm/dos_melee_balore_blocks.asm
|
asm/dos_melee_balore_blocks.asm
|
.nds
.relativeinclude on
.erroronwarning on
.open "ftc/overlay9_0", 0219E3E0h
; This makes it so that all melee weapons can break balore blocks, not just Julius's whip.
.org 0x02212AB0 ; Branch of a switch statement taken for all melee weapons except Julius's whip.
b 02212D64h ; Instead take the branch taken for Julius's whip.
.close
|
.nds
.relativeinclude on
.erroronwarning on
.open "ftc/overlay9_0", 0219E3E0h
; This makes it so that all melee weapons can break balore blocks, not just Julius's whip.
.org 0x02212AB0 ; Branch of a switch statement taken for all melee weapons except Julius's whip.
b 02212D64h ; Instead take the branch taken for Julius's whip.
; Next we need to make sure the player has Balore's soul.
.org 0x02212E94 ; Line in the whip code that would normally call 021D5210 to break the blocks.
b @CheckDestroyBaloreBlocks ; Instead jump to our own code to check if the player has Balore's soul.
.close
.open "ftc/arm9.bin", 02000000h
.org 0x020C0290 ; Free space
@CheckDestroyBaloreBlocks:
mov r5, r14
mov r0, 0h
bl 0220F81Ch
cmp r0, 1h ; Check if Balore soul is active.
beq @DestroyBaloreBlocks ; Destroy blocks if it is.
ldr r0,=020F740Eh
ldrb r0, [r0]
cmp r0, 1h ; Otherwise check if the current player character is Julius.
beq @DestroyBaloreBlocks ; Destroy blocks if it is.
b 02212E98h ; Didn't meet either condition, so return without destroying them.
@DestroyBaloreBlocks:
mov r0, r5
mov r1, r12
mov r2, r4
bl 021D5210h ; Call function to destroy blocks.
b 02212E98h ; Return
.pool
.close
|
Update patch to break balore blocks
|
Update patch to break balore blocks
|
Assembly
|
mit
|
LagoLunatic/DSVEdit
|
840952078824e3e8f5d9f276b519af2c9cd02aae
|
src/test/resources/kilobyte/simulator/exit_statement_mid_program.asm
|
src/test/resources/kilobyte/simulator/exit_statement_mid_program.asm
|
add $t0, $t1, $t2
sub $s0, $t0, $v0
exit
beq $3, $8, 3
nop
nop
|
add $t0, $t1, $t2
sub $s0, $t0, $v0
exit
add $t0, $t1, $t2
nop
nop
|
Remove the branch for clarity
|
Remove the branch for clarity
|
Assembly
|
mit
|
leksak/kilobyte,leksak/kilobyte,leksak/kilobyte
|
4da4a74a25100e2092e85edea693d5cbb7dbccad
|
asm/por_allow_changing_starting_room.asm
|
asm/por_allow_changing_starting_room.asm
|
.nds
.relativeinclude on
.erroronwarning on
.open "ftc/arm9.bin", 02000000h
.org 0x02051F90 ; Where the original game's code for loading area/sector/room indexes is.
b 020BFC00h ; Jump to some free space, where we will put our own code for loading the area/sector/room indexes.
.org 0x020BFC00 ; Free space.
mov r5,0h ; Load the area index into r5.
strb r5,[r0,515h] ; Store the area index to the ram address where r0 will read it later. (0x02111785)
mov r5,0h ; Load the sector index into r5.
mov r4,0h ; Load the room index into r4.
b 02051F94h ; Return to where we came from.
.close
|
.nds
.relativeinclude on
.erroronwarning on
.open "ftc/arm9.bin", 02000000h
.org 0x02051F90 ; Where the original game's code for loading area/sector/room indexes is.
b 020BFC00h ; Jump to some free space, where we will put our own code for loading the area/sector/room indexes.
.org 0x020BFC00 ; Free space.
mov r5,0h ; Load the area index into r5.
strb r5,[r0,515h] ; Store the area index to the ram address where r0 will read it later. (0x02111785)
mov r5,0h ; Load the sector index into r5.
mov r4,0h ; Load the room index into r4.
b 02051F94h ; Return to where we came from.
.org 0x02051F80 ; The case statement for Old Axe Armor mode's starting room initialization.
b 0x02051F88 ; Change it to take the same branch as the other three modes.
.close
|
Fix changing starting room in PoR not changing Old Axe Armor mode's starting room
|
Fix changing starting room in PoR not changing Old Axe Armor mode's starting room
|
Assembly
|
mit
|
LagoLunatic/DSVEdit
|
0819e3b9a726c8ff905670409504b15d0f569cbf
|
test/jmp64.asm
|
test/jmp64.asm
|
bits 64
jmp rcx
call [rax]
call qword [rdx]
|
;Testname=test; Arguments=-fbin -ojmp64.bin; Files=.stdout .stderr jmp64.bin
bits 64
jmp rcx
jmp [rax]
jmp qword [rax]
jmp far [rax]
jmp far dword [rax]
jmp far qword [rax]
call rcx
call [rax]
call qword [rax]
call far [rax]
call far dword [rax]
call far qword [rax]
|
Add more 64-bit jump tests
|
Add more 64-bit jump tests
|
Assembly
|
bsd-2-clause
|
projedi/nasm,turingstudio/nasm,projedi/nasm,Distrotech/nasm,techkey/nasm,Distrotech/nasm,projedi/nasm,letolabs/nasm,techkey/nasm,turingstudio/nasm,Distrotech/nasm,techkey/nasm,turingstudio/nasm,letolabs/nasm,projedi/nasm,turingstudio/nasm,techkey/nasm,letolabs/nasm,Distrotech/nasm,projedi/nasm,techkey/nasm
|
75eb05dd95b29cae3bc5ea08997eecb681f5bc48
|
Assembly/textbox/menu_items_effect.asm
|
Assembly/textbox/menu_items_effect.asm
|
;;----------------------------------------------------------------------------;;
;; Align the position of the textbox in the effect of items
;; Copyright 2014 Benito Palacios (aka pleonex)
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;----------------------------------------------------------------------------;;
.thumb
;; Item effect
.org 0x02117D4E
MOV R1, #0x60 ; X POS -> Original 0x62
;; Slot color
.org 0x021170DE
MOV R1, #0x9E - 4 ; X POS
.thumb
;; Increase the size of the item name textbox
.org 0x02116E90
MOV R0, #0x14 + 1 ; Width / 8
|
;;----------------------------------------------------------------------------;;
;; Align the position of the textbox in the effect of items
;; Copyright 2014 Benito Palacios (aka pleonex)
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;----------------------------------------------------------------------------;;
.thumb
;; Item effect
.org 0x02117D4E
MOV R1, #0x60 ; X POS -> Original 0x62
;; Slot color
.org 0x021170DE
MOV R1, #0x9E - 4 ; X POS
.thumb
;; Increase the size of the item name textbox
.org 0x02116E90
MOV R0, #0x14 + 2 ; Width / 8
|
Increase items name textbox size
|
Increase items name textbox size
|
Assembly
|
apache-2.0
|
pleonex/Ninokuni,pleonex/Ninokuni,pleonex/Ninokuni
|
8fea62d712e73b4f8d853fd6f6b360941c5d13b5
|
print/print_string.asm
|
print/print_string.asm
|
; =============================================================================
; Copyright (C) 2015 Manolis Fragkiskos Ragkousis -- see LICENSE.TXT
; =============================================================================
;;; Print routine
;;; I push all the register to the stack.
;;; Set the bios routine for printing in the screen
;;; Move to al the data that bx points
;;; Generate the interrupt.
;;; Pop all registers from the stack
;;; Return to where the pc pointed to before getting in here.
;;; bx contains routine argument
%ifndef PRINT_STRING_16BIT
%define PRINT_STRING_16BIT
print_string:
pusha
mov ah, 0x0e
compare:
cmp byte [bx], 0
je exit
jmp print
print:
mov al, [bx]
int 0x10
add bx, 1
jmp compare
exit:
popa
ret
%endif
|
; =============================================================================
; Copyright (C) 2015 Manolis Fragkiskos Ragkousis -- see LICENSE.TXT
; =============================================================================
;;; Print routine
;;; I push all the register to the stack.
;;; Set the bios routine for printing in the screen
;;; Move to al the data that bx points
;;; Generate the interrupt.
;;; Pop all registers from the stack
;;; Return to where the pc pointed to before getting in here.
;;; bx contains routine argument
%ifndef PRINT_STRING_16BIT
%define PRINT_STRING_16BIT
[bits 16]
print_string:
pusha
mov ah, 0x0e
print_loop:
mov al, [bx]
cmp al, 0
je print_exit
int 0x10
inc bx
jmp print_loop
print_exit:
popa
ret
%endif
|
Rewrite the 16bit print routine.
|
Rewrite the 16bit print routine.
* print/print_string.asm: Rewrite.
|
Assembly
|
mit
|
Phant0mas/MaRagOS
|
a926090cb9af5ffcd2dff7ff3659083fac23a5ed
|
resources/assets/ccl/asm/hooks.asm
|
resources/assets/ccl/asm/hooks.asm
|
list n_IItemRenderer
GETSTATIC net/minecraft/client/renderer/tileentity/TileEntityItemStackRenderer.instance : Lnet/minecraft/client/renderer/tileentity/TileEntityItemStackRenderer;
ALOAD 1
INVOKEVIRTUAL net/minecraft/client/renderer/tileentity/TileEntityItemStackRenderer.renderByItem (Lnet/minecraft/item/ItemStack;)V
GOTO LEND #end of if statement
list IItemRenderer
ALOAD 2
INSTANCEOF codechicken/lib/render/IItemRenderer
IFEQ LELSE
ALOAD 2
ALOAD 1
INVOKEINTERFACE codechicken/lib/render/IItemRenderer.renderItem (Lnet/minecraft/item/ItemStack;)V
GOTO LEND
LELSE
|
list n_IItemRenderer
GETSTATIC net/minecraft/client/renderer/tileentity/TileEntityItemStackRenderer.field_147719_a : Lnet/minecraft/client/renderer/tileentity/TileEntityItemStackRenderer;
ALOAD 1
INVOKEVIRTUAL net/minecraft/client/renderer/tileentity/TileEntityItemStackRenderer.func_179022_a (Lnet/minecraft/item/ItemStack;)V
GOTO LEND #end of if statement
list IItemRenderer
ALOAD 2
INSTANCEOF codechicken/lib/render/IItemRenderer
IFEQ LELSE
ALOAD 2
ALOAD 1
INVOKEINTERFACE codechicken/lib/render/IItemRenderer.renderItem (Lnet/minecraft/item/ItemStack;)V
GOTO LEND
LELSE
|
Fix srg mapping in hook (round 2)
|
Fix srg mapping in hook (round 2)
|
Assembly
|
lgpl-2.1
|
Chicken-Bones/CodeChickenLib,alexbegt/CodeChickenLib,TheCBProject/CodeChickenLib
|
81670f01dc6f1688fcecad1d810007ffbab58163
|
syzygy/pe/dos_stub.asm
|
syzygy/pe/dos_stub.asm
|
; Copyright 2011 Google Inc.
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
;
.286
.MODEL TINY, C
.CODE
PUBLIC end_dos_stub
begin_dos_stub PROC
; Fold the code and data segments, as our data is in this function.
; Note that begin_dos_stub is implicitly the start of the data segment.
push cs
pop ds
; Compute the distance to the string through this subtraction instead
; of e.g. a lea instruction to avoid the need for relocation entries
mov dx, message - begin_dos_stub
; Print the message to the console
mov ah, 09h
int 21h
; Terminate the program
mov ah, 00h
int 21h
message DB 'This is a Windows program, you cannot run it in DOS.\r\n$'
; Expose the end of the DOS stub as a function to make it easy to
; calculate its length.
end_dos_stub LABEL PROC
begin_dos_stub ENDP
END
|
; Copyright 2012 Google Inc.
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
;
.386
.MODEL TINY, C
.CODE
PUBLIC end_dos_stub
begin_dos_stub PROC
; Fold the code and data segments, as our data is in this function.
; Note that begin_dos_stub is implicitly the start of the data segment.
push cs
pop ds
; Compute the distance to the string through this subtraction instead
; of e.g. a lea instruction to avoid the need for relocation entries
mov dx, message - begin_dos_stub
; Print the message to the console
mov ah, 09h
int 21h
; Terminate the program
mov ah, 00h
int 21h
message DB 'This is a Windows program, you cannot run it in DOS.\r\n$'
; Expose the end of the DOS stub as a function to make it easy to
; calculate its length.
end_dos_stub LABEL PROC
begin_dos_stub ENDP
END
|
Switch dos stub processor spec to 386.
|
Switch dos stub processor spec to 386.
286 support is removed from the MASM that ships with VS2010.
BUG=
TEST=
Review URL: https://codereview.appspot.com/6223063
git-svn-id: db59699583a60be9a535cd09cdc9132301867226@834 15e8cca8-e42c-11de-a347-f34a4f72eb7d
|
Assembly
|
apache-2.0
|
sebmarchand/syzygy,ericmckean/syzygy,pombreda/syzygy,pombreda/syzygy,sebmarchand/syzygy,pombreda/syzygy,supriyantomaftuh/syzygy,wangming28/syzygy,sebmarchand/syzygy,ericmckean/syzygy,wangming28/syzygy,ericmckean/syzygy,pombreda/syzygy,supriyantomaftuh/syzygy,google/syzygy,ericmckean/syzygy,ericmckean/syzygy,supriyantomaftuh/syzygy,Eloston/syzygy,wangming28/syzygy,wangming28/syzygy,google/syzygy,google/syzygy,sebmarchand/syzygy,google/syzygy,supriyantomaftuh/syzygy,Eloston/syzygy,sebmarchand/syzygy,pombreda/syzygy
|
d1e06fa9f0d59da5583a290dd88ab2c470a85dc2
|
SATS/eeprom.sats
|
SATS/eeprom.sats
|
%{#
#include <avr/eeprom.h>
%}
fun eeprom_read_byte (address: int): uint8 = "mac#"
fun eeprom_write_byte (address: int, value: uint8): void = "mac#"
|
%{#
#include <avr/eeprom.h>
%}
fun eeprom_read_byte {n:nat} (address: int n): uint8 = "mac#"
fun eeprom_write_byte {n:nat} (address: int n, value: uint8): void = "mac#"
|
Add dependent types into EEPROM API
|
Add dependent types into EEPROM API
|
ATS
|
mit
|
Proclivis/arduino-ats,Proclivis/arduino-ats,fpiot/arduino-ats,fpiot/arduino-ats
|
44b76f434e557f631a1568f86798f00701720313
|
demos/blink_ats/main.dats
|
demos/blink_ats/main.dats
|
implement main0 () = ()
|
%{^
#include "LPC17xx.h"
%}
%{
volatile int g_LoopDummy;
void c_blink(void)
{
LPC_GPIO1->FIODIR |= 1 << 18; // P1.18 connected to LED1
while(1)
{
int i;
LPC_GPIO1->FIOPIN ^= 1 << 18; // Toggle P1.18
for (i = 0 ; i < 5000000 && !g_LoopDummy ; i++)
{
}
}
}
%}
extern fun c_blink (): void = "mac#"
implement main0 () = c_blink ()
|
Include C raw source code
|
Include C raw source code
|
ATS
|
apache-2.0
|
fpiot/mbed-ats,fpiot/mbed-ats,fpiot/mbed-ats,fpiot/mbed-ats,fpiot/mbed-ats,fpiot/mbed-ats
|
acb6181298f9a23c643c82a8d6f282e595ba91a1
|
lenses/hostname.aug
|
lenses/hostname.aug
|
(*
Module: Hostname
Parses /etc/hostname and /etc/mailname
Author: Raphael Pinson <[email protected]>
About: License
This file is licenced under the LGPL v2+, like the rest of Augeas.
*)
module Hostname =
autoload xfm
(* View: lns *)
let lns = [ label "hostname" . store Rx.word . Util.eol ]
(* View: filter *)
let filter = incl "/etc/hostname"
. incl "/etc/mailname"
let xfm = transform lns filter
|
(*
Module: Hostname
Parses /etc/hostname and /etc/mailname
Author: Raphael Pinson <[email protected]>
About: License
This file is licenced under the LGPL v2+, like the rest of Augeas.
*)
module Hostname =
autoload xfm
(* View: lns *)
let lns = [ label "hostname" . store Rx.word . Util.eol ] | Util.empty
(* View: filter *)
let filter = incl "/etc/hostname"
. incl "/etc/mailname"
let xfm = transform lns filter
|
Allow Creation of Hostname When File is Missing
|
Allow Creation of Hostname When File is Missing
Within augtool, the current `hostname` lens does not allow you to create a hostname entry under the following circumstances:
* /etc/hostname file is empty
* /etc/hostname file does not exist
:: /etc/hostname file is empty
There is no augtool command(s) that will allow you to add a hostname entry to an existing, but empty, file. Example:
```
$ sudo rm /etc/hostname
$ sudo touch /etc/hostname
$ sudo augtool
augtool> set /files/etc/hostname/hostname myhostname
augtool> save
error: Failed to execute command
saving failed (run 'errors' for details)
augtool> errors
Error in /etc/hostname:1.0 (parse_skel_failed)
Input string does not match at all
Lens: /usr/share/augeas/lenses/dist/hostname.aug:16.10-.57:
```
Additionally, you cannot remove the empty file using augtool:
```
$ sudo rm /etc/hostname
$ sudo touch /etc/hostname
$ sudo augtool rm /files/etc/hostname
$ ls -l /etc/hostname
-rw-r--r-- 1 root root 0 Feb 19 12:39 /etc/hostname
```
:: /etc/hostname does not exist
Similar to the empty file case, you cannot create a hostname entry if the file does not already exist.
You can, however, create an empty file:
```
$ sudo rm /etc/hostname
# You can create an empty file with clear or touch
$ sudo augtool touch /files/etc/hostname
$ ls -l /etc/hostname
-rw-r--r-- 1 root root 0 Feb 19 12:34 /etc/hostname
```
Of course, now that you have an empty file, you cannot create a hostname entry for it :(
This proposed change will allow you to at least create a hostname entry when the file does not already exist.
It also enables you to remove file, allowing for a deterministic approach:
```
$ sudo rm /etc/hostname
$ sudo touch /etc/hostname
$ sudo augtool rm /files/etc/hostname
$ ls -l /etc/hostname
ls: cannot access '/etc/hostname': No such file or directory
$ sudo augtool set /files/etc/hostname/hostname myhostname
$ ls -l /etc/hostname
-rw-r--r-- 1 root root 11 Feb 19 12:44 /etc/hostname
$ cat /etc/hostname
myhostname
```
NOTE: Its probably very possible to fix the lens to deal more of the edge cases, but this quick fix at least gives deterministic behavior if a rm/set each time I want to configure the hostname.
Thank you for your consideration.
-David Farrell
|
Augeas
|
lgpl-2.1
|
mlichvar/augeas,ptoscano/augeas,ptoscano/augeas,hercules-team/augeas,mlichvar/augeas,kunkku/augeas,kunkku/augeas,hercules-team/augeas,mlichvar/augeas,ptoscano/augeas,kunkku/augeas
|
c55e6647654e0a8e5ca11d196f905227f7311b23
|
spec/inittab.aug
|
spec/inittab.aug
|
# Parsing /etc/inittab
#map
# grammar inittab
# include '/etc/inittab' '/system/config/inittab'
#end
grammar inittab
token SEP ':'
token EOL '\n'
file: ( comment | record ) *
comment: ( /#.*?\n/ | /[ \t]*\n/ )
record: counter 'record' .
[ seq 'record' .
[ label 'id' . store ..? ] .
SEP .
[ label 'runlevels' . store ..? ] .
SEP .
[ label 'action' . store ..? ] .
SEP .
[ label 'process' . store ..? ] .
EOL
]
end
|
# Parsing /etc/inittab
map
grammar inittab
include '/etc/inittab' '/system/config/inittab'
end
grammar inittab
token SEP ':'
token EOL '\n'
file: ( comment | record ) *
comment: ( /#.*?\n/ | /[ \t]*\n/ )
record: [ seq 'record' .
[ label 'id' . store ..? ] .
SEP .
[ label 'runlevels' . store ..? ] .
SEP .
[ label 'action' . store ..? ] .
SEP .
[ label 'process' . store ..? ] .
EOL
]
end
|
Remove bogus reset of 'record' counter
|
Remove bogus reset of 'record' counter
|
Augeas
|
lgpl-2.1
|
hercules-team/augeas-do-not-use,hercules-team/augeas-do-not-use,manandbytes/augeas,raphink/augeas,dafugg/augeas,domcleal/augeas,GeoffWilliams/augeas,manandbytes/augeas,raphink/augeas,jtopjian/augeas,kunkku/augeas,MikaelSmith/augeas,hercules-team/augeas-do-not-use,bkearney/augeas,lutter/augeas,jtopjian/augeas,kumy/augeas,bkearney/augeas,domcleal/augeas,mchf/augeas,kumy/augeas,kunkku/augeas,camptocamp/augeas,mlichvar/augeas,camptocamp/augeas,jjlin/augeas,pevalme/augeas,bkearney/augeas,ptoscano/augeas,lutter/augeas,kunkku/augeas,jasperla/augeas,mlichvar/augeas,hercules-team/augeas,GeoffWilliams/augeas,jjlin/augeas,pevalme/augeas,domcleal/augeas,mlichvar/augeas,dafugg/augeas,camptocamp/augeas,kumy/augeas,MikaelSmith/augeas,camptocamp/augeas,jjlin/augeas,kumy/augeas,hercules-team/augeas,pevalme/augeas,ptoscano/augeas,lutter/augeas,dafugg/augeas,jasperla/augeas,bkearney/augeas,ptoscano/augeas,mchf/augeas
|
5c2fa611519dd609b36123a36aca60ef00a03c79
|
lenses/tests/test_puppetfileserver.aug
|
lenses/tests/test_puppetfileserver.aug
|
(* Tests for the PuppetFileserver module *)
module Test_puppetfileserver =
let fileserver = "# This a comment
[mount1]
# Mount1 options
path /etc/puppet/files/%h
allow host.domain1.com
allow *.domain2.com
deny badhost.domain2.com
[mount2]
allow *
deny *.evil.example.com
deny badhost.domain2.com
[mount3]
allow * # Puppet #6026: same line comment
# And trailing whitespace
allow *
"
test PuppetFileserver.lns get fileserver =
{ "#comment" = "This a comment" }
{ }
{ "mount1"
{ "#comment" = "Mount1 options" }
{ "path" = "/etc/puppet/files/%h" }
{ "allow" = "host.domain1.com" }
{ "allow" = "*.domain2.com" }
{ "deny" = "badhost.domain2.com" }
}
{ "mount2"
{ "allow" = "*" }
{ "deny" = "*.evil.example.com" }
{ "deny" = "badhost.domain2.com" }
}
{ "mount3"
{ "allow" = "*"
{ "#comment" = "Puppet #6026: same line comment" } }
{ "#comment" = "And trailing whitespace" }
{ "allow" = "*" }
}
|
(* Tests for the PuppetFileserver module *)
module Test_puppetfileserver =
let fileserver = "# This a comment
[mount1]
# Mount1 options
path /etc/puppet/files/%h
allow host.domain1.com
allow *.domain2.com
deny badhost.domain2.com
[mount2]
allow *
deny *.evil.example.com
deny badhost.domain2.com
[mount3]
allow * # Puppet #6026: same line comment
# And trailing whitespace
allow *
"
test PuppetFileserver.lns get fileserver =
{ "#comment" = "This a comment" }
{ }
{ "mount1"
{ "#comment" = "Mount1 options" }
{ "path" = "/etc/puppet/files/%h" }
{ "allow" = "host.domain1.com" }
{ "allow" = "*.domain2.com" }
{ "deny" = "badhost.domain2.com" }
}
{ "mount2"
{ "allow" = "*" }
{ "deny" = "*.evil.example.com" }
{ "deny" = "badhost.domain2.com" }
}
{ "mount3"
{ "allow" = "*"
{ "#comment" = "Puppet #6026: same line comment" } }
{ "#comment" = "And trailing whitespace" }
{ "allow" = "*" }
}
|
Remove trailing white spaces from puppet test
|
Remove trailing white spaces from puppet test
Trailing white lines are valid in a puppet file, but the test is rejected when
pushing to master git repository.
remote: lenses/tests/test_puppetfileserver.aug:20: trailing whitespace.
remote: +allow *
remote: error: hook declined to update refs/heads/master
! [remote rejected] master -> master (hook declined)
Removing white space for now.
|
Augeas
|
lgpl-2.1
|
ptoscano/augeas,lutter/augeas,jasperla/augeas,domcleal/augeas,kunkku/augeas,lutter/augeas,jjlin/augeas,dafugg/augeas,manandbytes/augeas,dafugg/augeas,hercules-team/augeas-do-not-use,hercules-team/augeas,pevalme/augeas,raphink/augeas,dafugg/augeas,jtopjian/augeas,jjlin/augeas,GeoffWilliams/augeas,MikaelSmith/augeas,ptoscano/augeas,pevalme/augeas,MikaelSmith/augeas,kumy/augeas,lutter/augeas,jasperla/augeas,kumy/augeas,kunkku/augeas,manandbytes/augeas,jjlin/augeas,mlichvar/augeas,kumy/augeas,mchf/augeas,mlichvar/augeas,kunkku/augeas,kumy/augeas,jtopjian/augeas,hercules-team/augeas-do-not-use,mchf/augeas,hercules-team/augeas-do-not-use,domcleal/augeas,pevalme/augeas,GeoffWilliams/augeas,mlichvar/augeas,hercules-team/augeas,ptoscano/augeas,domcleal/augeas,raphink/augeas
|
dc80208efcc59c2fa3b207318e99da65b4ea61bb
|
lenses/tests/test_updatedb.aug
|
lenses/tests/test_updatedb.aug
|
(*
Module: Test_UpdateDB
Provides unit tests and examples for the <UpdateDB> lens.
*)
module Test_UpdateDB =
(* Test: UpdateDB.lns
Simple get test *)
test UpdateDB.lns get "# A comment
PRUNEPATHS=\"/tmp /var/spool /media /home/.ecryptfs\"
PRUNEFS=\"NFS nfs nfs4 rpc_pipefs\"
PRUNE_BIND_MOUNTS=\"yes\"\n" =
{ "#comment" = "A comment" }
{ "PRUNEPATHS"
{ "entry" = "/tmp" }
{ "entry" = "/var/spool" }
{ "entry" = "/media" }
{ "entry" = "/home/.ecryptfs" }
}
{ "PRUNEFS"
{ "entry" = "NFS" }
{ "entry" = "nfs" }
{ "entry" = "nfs4" }
{ "entry" = "rpc_pipefs" }
}
{ "PRUNE_BIND_MOUNTS" = "yes" }
(* Test: UpdateDB.lns
Adding to a list *)
test UpdateDB.lns put "PRUNEFS=\"NFS nfs nfs4 rpc_pipefs\"\n"
after set "/PRUNEFS/entry[last()+1]" "ecryptfs" =
"PRUNEFS=\"NFS nfs nfs4 rpc_pipefs ecryptfs\"\n"
|
(*
Module: Test_UpdateDB
Provides unit tests and examples for the <UpdateDB> lens.
*)
module Test_UpdateDB =
(* Test: UpdateDB.lns
Simple get test *)
test UpdateDB.lns get "# A comment
PRUNEPATHS=\"/tmp /var/spool /media /home/.ecryptfs\"
PRUNEFS= \"NFS nfs nfs4 rpc_pipefs\"
PRUNE_BIND_MOUNTS = \"yes\"\n" =
{ "#comment" = "A comment" }
{ "PRUNEPATHS"
{ "entry" = "/tmp" }
{ "entry" = "/var/spool" }
{ "entry" = "/media" }
{ "entry" = "/home/.ecryptfs" }
}
{ "PRUNEFS"
{ "entry" = "NFS" }
{ "entry" = "nfs" }
{ "entry" = "nfs4" }
{ "entry" = "rpc_pipefs" }
}
{ "PRUNE_BIND_MOUNTS" = "yes" }
(* Test: UpdateDB.lns
Adding to a list *)
test UpdateDB.lns put "PRUNEFS=\"NFS nfs nfs4 rpc_pipefs\"\n"
after set "/PRUNEFS/entry[last()+1]" "ecryptfs" =
"PRUNEFS=\"NFS nfs nfs4 rpc_pipefs ecryptfs\"\n"
|
Update tests to ensure spaces around = are OK
|
UpdateDB: Update tests to ensure spaces around = are OK
|
Augeas
|
lgpl-2.1
|
raphink/augeas,jjlin/augeas,ptoscano/augeas,jtopjian/augeas,mchf/augeas,kunkku/augeas,MikaelSmith/augeas,lutter/augeas,dafugg/augeas,mlichvar/augeas,kunkku/augeas,mlichvar/augeas,manandbytes/augeas,GeoffWilliams/augeas,pevalme/augeas,jasperla/augeas,ptoscano/augeas,jjlin/augeas,mlichvar/augeas,hercules-team/augeas,mchf/augeas,pevalme/augeas,dafugg/augeas,pevalme/augeas,MikaelSmith/augeas,manandbytes/augeas,lutter/augeas,GeoffWilliams/augeas,jjlin/augeas,jasperla/augeas,hercules-team/augeas,dafugg/augeas,jtopjian/augeas,lutter/augeas,kunkku/augeas,ptoscano/augeas,raphink/augeas
|
d6defcdd21090434fdc2b52088834102217f7e1b
|
lenses/sep.aug
|
lenses/sep.aug
|
(*
Module: Sep
Generic separators to build lenses
Author: Raphael Pinson <[email protected]>
About: License
This file is licensed under the LGPLv2+, like the rest of Augeas.
*)
module Sep =
let colon = Util.del_str ":"
let comma = Util.del_str ","
let space = del Rx.space " "
let tab = del Rx.space "\t"
let opt_space = del Rx.opt_space ""
let opt_tab = del Rx.opt_space "\t"
|
(*
Module: Sep
Generic separators to build lenses
Author: Raphael Pinson <[email protected]>
About: License
This file is licensed under the LGPLv2+, like the rest of Augeas.
*)
module Sep =
let colon = Util.del_str ":"
let comma = Util.del_str ","
let equal = Util.del_str "="
let space = del Rx.space " "
let tab = del Rx.space "\t"
let opt_space = del Rx.opt_space ""
let opt_tab = del Rx.opt_space "\t"
|
Add Sep.equal, used in nrpe.aug
|
Add Sep.equal, used in nrpe.aug
|
Augeas
|
lgpl-2.1
|
hercules-team/augeas-do-not-use,mchf/augeas,lutter/augeas,dafugg/augeas,ptoscano/augeas,jjlin/augeas,dafugg/augeas,GeoffWilliams/augeas,hercules-team/augeas-do-not-use,jjlin/augeas,jasperla/augeas,GeoffWilliams/augeas,jtopjian/augeas,hercules-team/augeas,kumy/augeas,jtopjian/augeas,kumy/augeas,hercules-team/augeas,domcleal/augeas,MikaelSmith/augeas,kunkku/augeas,manandbytes/augeas,raphink/augeas,kunkku/augeas,lutter/augeas,dafugg/augeas,kunkku/augeas,mlichvar/augeas,domcleal/augeas,kumy/augeas,hercules-team/augeas-do-not-use,ptoscano/augeas,raphink/augeas,pevalme/augeas,jasperla/augeas,mchf/augeas,lutter/augeas,MikaelSmith/augeas,mlichvar/augeas,kumy/augeas,domcleal/augeas,pevalme/augeas,pevalme/augeas,manandbytes/augeas,mlichvar/augeas,jjlin/augeas,ptoscano/augeas
|
b740b0a14d469f57b50a4a258c275a53ddbe3953
|
tests/modules/fail_union_atype.aug
|
tests/modules/fail_union_atype.aug
|
module Fail_union_atype =
(* This is illegal, otherwise we don't know which alternative *)
(* to take for a tree { "a" = "?" } *)
let del_str (s:string) = del s s
let lns = [ key /a/ . store /b/ . del_str " (l)"
| [ key /a/ . store /c/ . del_str " (r)" ]
(* To make this a passing test, make sure that this also works: *)
(* test lns put "ac (r)" after set "a" "b" = "ab (l)" *)
(* Local Variables: *)
(* mode: caml *)
(* End: *)
|
module Fail_union_atype =
(* This is illegal, otherwise we don't know which alternative *)
(* to take for a tree { "a" = "?" } *)
let del_str (s:string) = del s s
let lns = [ key /a/ . store /b/ . del_str " (l)" ]
| [ key /a/ . store /c/ . del_str " (r)" ]
(* To make this a passing test, make sure that this also works: *)
(* test lns put "ac (r)" after set "a" "b" = "ab (l)" *)
(* Local Variables: *)
(* mode: caml *)
(* End: *)
|
Fix syntax error in test
|
Fix syntax error in test
|
Augeas
|
lgpl-2.1
|
jasperla/augeas,GeoffWilliams/augeas,kumy/augeas,MikaelSmith/augeas,kunkku/augeas,jjlin/augeas,mchf/augeas,MikaelSmith/augeas,domcleal/augeas,ptoscano/augeas,pevalme/augeas,camptocamp/augeas,manandbytes/augeas,camptocamp/augeas,kumy/augeas,ptoscano/augeas,raphink/augeas,bkearney/augeas,lutter/augeas,hercules-team/augeas-do-not-use,camptocamp/augeas,kunkku/augeas,ptoscano/augeas,bkearney/augeas,jtopjian/augeas,lutter/augeas,jasperla/augeas,camptocamp/augeas,pevalme/augeas,jtopjian/augeas,dafugg/augeas,GeoffWilliams/augeas,mlichvar/augeas,pevalme/augeas,domcleal/augeas,raphink/augeas,hercules-team/augeas-do-not-use,domcleal/augeas,manandbytes/augeas,bkearney/augeas,jjlin/augeas,kumy/augeas,jjlin/augeas,hercules-team/augeas,mlichvar/augeas,mchf/augeas,dafugg/augeas,hercules-team/augeas,lutter/augeas,bkearney/augeas,mlichvar/augeas,hercules-team/augeas-do-not-use,kumy/augeas,dafugg/augeas,kunkku/augeas
|
b6943ab317767f21f820459d75bbb0ebc7c20ebd
|
tests/modules/pass_subtree_growth.aug
|
tests/modules/pass_subtree_growth.aug
|
module Pass_subtree_growth =
(* Make sure that a subtree that is not the lowest one does indeed *)
(* grow the tree, instead of just setting the label of an enclosed *)
(* subtree. This is only a problem if the enclosed subtree does *)
(* not have a label *)
let lns = [ label "outer" . [ store /a/ ] ]
(* The improper result is { "outer" = "a" } *)
test lns get "a" = { "outer" { = "a" } }
test lns put "a" after set "outer" "b" = "b"
(* Local Variables: *)
(* mode: caml *)
(* End: *)
|
module Pass_subtree_growth =
(* Make sure that a subtree that is not the lowest one does indeed *)
(* grow the tree, instead of just setting the label of an enclosed *)
(* subtree. This is only a problem if the enclosed subtree does *)
(* not have a label *)
let lns = [ label "outer" . [ store /a/ ] ]
(* The improper result is { "outer" = "a" } *)
test lns get "a" = { "outer" { = "a" } }
(* This produces a tree { "outer" = "b" { = "a" } } *)
(* but the value for "outer" is never used in put *)
(* (That should probably be flagged as an error separately) *)
test lns put "a" after set "outer" "b" = "a"
(* Local Variables: *)
(* mode: caml *)
(* End: *)
|
Fix put test - it was checking for hte wrong result
|
Fix put test - it was checking for hte wrong result
|
Augeas
|
lgpl-2.1
|
pevalme/augeas,dafugg/augeas,GeoffWilliams/augeas,jjlin/augeas,mchf/augeas,jtopjian/augeas,dafugg/augeas,mlichvar/augeas,kunkku/augeas,ptoscano/augeas,camptocamp/augeas,jasperla/augeas,MikaelSmith/augeas,lutter/augeas,bkearney/augeas,hercules-team/augeas-do-not-use,dafugg/augeas,kumy/augeas,hercules-team/augeas-do-not-use,kunkku/augeas,camptocamp/augeas,ptoscano/augeas,mlichvar/augeas,domcleal/augeas,hercules-team/augeas-do-not-use,camptocamp/augeas,manandbytes/augeas,jasperla/augeas,mchf/augeas,ptoscano/augeas,bkearney/augeas,kumy/augeas,kumy/augeas,lutter/augeas,bkearney/augeas,manandbytes/augeas,pevalme/augeas,hercules-team/augeas,bkearney/augeas,jjlin/augeas,raphink/augeas,kunkku/augeas,domcleal/augeas,domcleal/augeas,MikaelSmith/augeas,mlichvar/augeas,pevalme/augeas,kumy/augeas,jtopjian/augeas,jjlin/augeas,raphink/augeas,GeoffWilliams/augeas,lutter/augeas,camptocamp/augeas,hercules-team/augeas
|
c3bd786d9a17bcdb2334740eca06abf1345762cf
|
lenses/fstab.aug
|
lenses/fstab.aug
|
(* Parsing /etc/fstab *)
module Fstab =
autoload xfm
let sep_tab = Sep.tab
let sep_spc = Sep.space
let comma = Sep.comma
let eol = Util.eol
let comment = Util.comment
let empty = Util.empty
let word = Rx.neg1
let spec = /[^,# \n\t][^ \n\t]*/
let comma_sep_list (l:string) =
let lns = [ label l . store word ] in
Build.opt_list lns comma
let record = [ seq "mntent" .
[ label "spec" . store spec ] . sep_tab .
[ label "file" . store word ] . sep_tab .
comma_sep_list "vfstype" . sep_tab .
comma_sep_list "opt" .
(sep_tab . [ label "dump" . store /[0-9]+/ ] .
( sep_spc . [ label "passno" . store /[0-9]+/ ])? )?
. eol ]
let lns = ( empty | comment | record ) *
let xfm = transform lns (incl "/etc/fstab")
(* Local Variables: *)
(* mode: caml *)
(* End: *)
|
(* Parsing /etc/fstab *)
module Fstab =
autoload xfm
let sep_tab = Sep.tab
let sep_spc = Sep.space
let comma = Sep.comma
let eol = Util.eol
let comment = Util.comment
let empty = Util.empty
let word = Rx.neg1
let spec = /[^,# \n\t][^ \n\t]*/
let comma_sep_list (l:string) =
let lns = [ label l . store word ] in
Build.opt_list lns comma
let record = [ seq "mntent" .
[ label "spec" . store spec ] . sep_tab .
[ label "file" . store word ] . sep_tab .
comma_sep_list "vfstype" . sep_tab .
comma_sep_list "opt" .
(sep_tab . [ label "dump" . store /[0-9]+/ ] .
( sep_spc . [ label "passno" . store /[0-9]+/ ])? )?
. eol ]
let lns = ( empty | comment | record ) *
let filter = (incl "/etc/fstab")
. (incl "/etc/mtab")
let xfm = transform lns filter
(* Local Variables: *)
(* mode: caml *)
(* End: *)
|
Add /etc/mtab to known files
|
Add /etc/mtab to known files
|
Augeas
|
lgpl-2.1
|
jjlin/augeas,lutter/augeas,hercules-team/augeas-do-not-use,dafugg/augeas,jjlin/augeas,manandbytes/augeas,dafugg/augeas,MikaelSmith/augeas,jjlin/augeas,mchf/augeas,jtopjian/augeas,lutter/augeas,raphink/augeas,domcleal/augeas,hercules-team/augeas,dafugg/augeas,hercules-team/augeas-do-not-use,ptoscano/augeas,domcleal/augeas,jtopjian/augeas,hercules-team/augeas,hercules-team/augeas-do-not-use,kumy/augeas,kunkku/augeas,MikaelSmith/augeas,ptoscano/augeas,jasperla/augeas,kunkku/augeas,mlichvar/augeas,domcleal/augeas,pevalme/augeas,pevalme/augeas,kumy/augeas,GeoffWilliams/augeas,ptoscano/augeas,manandbytes/augeas,lutter/augeas,mlichvar/augeas,mchf/augeas,GeoffWilliams/augeas,kumy/augeas,kumy/augeas,pevalme/augeas,jasperla/augeas,mlichvar/augeas,raphink/augeas,kunkku/augeas
|
417e094dd53932acfc6465238f96afb4d914cd24
|
spec/pam.aug
|
spec/pam.aug
|
# Parsing /etc/inittab
map
grammar pam
# We really need to be able to exclude some files, like
# backup files and .rpmsave files
include '/etc/pam.d/*' '/system/config/pam' $basename
end
grammar pam
token SEP /[ \t]+/ = '\t'
token EOL '\n'
token CONTROL /(\[[^\]]*\]|[^ \t]+)/ = 'none'
token POUND_TO_EOL /#.*\n/ = '# '
file: ( comment | record ) *
comment: ( /#.*?\n/ | /[ \t]*\n/ )
record: [ seq 'record' .
[ label 'type' . store ... ] .
SEP .
[ label 'control' . store CONTROL] .
SEP .
[ label 'module' . store ... ] .
( [ SEP . label 'opts' . store ... ] )? .
EOL
]
end
|
# Parsing /etc/inittab
map
grammar pam
# We really need to be able to exclude some files, like
# backup files and .rpmsave files
include '/etc/pam.d/*' '/system/config/pam' $basename
end
grammar pam
token SEP /[ \t]+/ = '\t'
token EOL '\n'
token CONTROL /(\[[^\]]*\]|[^ \t]+)/ = 'none'
token POUND_TO_EOL /#.*\n/ = '# '
file: ( comment | record ) *
comment: [ ( /#.*?\n/ | /[ \t]*\n/ ) ]
record: [ seq 'record' .
[ label 'type' . store ... ] .
SEP .
[ label 'control' . store CONTROL] .
SEP .
[ label 'module' . store ... ] .
( [ SEP . label 'opts' . store ... ] )? .
EOL
]
end
|
Store comments in subtrees so they are restored properly
|
Store comments in subtrees so they are restored properly
|
Augeas
|
lgpl-2.1
|
kumy/augeas,dafugg/augeas,MikaelSmith/augeas,hercules-team/augeas-do-not-use,jjlin/augeas,pevalme/augeas,mchf/augeas,jtopjian/augeas,lutter/augeas,domcleal/augeas,hercules-team/augeas,ptoscano/augeas,dafugg/augeas,bkearney/augeas,raphink/augeas,ptoscano/augeas,GeoffWilliams/augeas,mlichvar/augeas,ptoscano/augeas,camptocamp/augeas,kumy/augeas,GeoffWilliams/augeas,kumy/augeas,camptocamp/augeas,kunkku/augeas,camptocamp/augeas,kunkku/augeas,jasperla/augeas,bkearney/augeas,kumy/augeas,lutter/augeas,bkearney/augeas,camptocamp/augeas,jjlin/augeas,kunkku/augeas,hercules-team/augeas-do-not-use,pevalme/augeas,mlichvar/augeas,domcleal/augeas,pevalme/augeas,lutter/augeas,hercules-team/augeas,MikaelSmith/augeas,mchf/augeas,hercules-team/augeas-do-not-use,bkearney/augeas,mlichvar/augeas,jasperla/augeas,manandbytes/augeas,jtopjian/augeas,domcleal/augeas,manandbytes/augeas,dafugg/augeas,raphink/augeas,jjlin/augeas
|
ce90a9959965de8ecf3935090d0f16b18716a216
|
autohotkey/shortcuts_compilation.ahk
|
autohotkey/shortcuts_compilation.ahk
|
#NoTrayIcon
#Persistent
#SingleInstance force
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;;*******************************************************
; CUSTOM SHORTCUTS
;*******************************************************
;-------------------------------------------------------
; Keep window on top
;-------------------------------------------------------
!+^T:: Winset, Alwaysontop, , A
;-------------------------------------------------------
;-------------------------------------------------------
; Replace default calculator
;-------------------------------------------------------
^NumpadEnter::Run "C:\Program Files (x86)\Moffsoft FreeCalc\MoffFreeCalc.exe"
;-------------------------------------------------------
;-------------------------------------------------------
; Call Listary
;-------------------------------------------------------
; With Alt + Space
!Space::Send !+^{=}
; With the down button of the mouse
XButton1::Send !+^{)}
;-------------------------------------------------------
;-------------------------------------------------------
; Switch between the desktops
;-------------------------------------------------------
; With the up button of the mouse
^XButton1:: switchDesktop() ;
XButton2:: switchDesktop() ;
; Function to switch between the desktops
switchedDesktop := false
switchDesktop()
{
global switchedDesktop
if switchedDesktop
{
SendEvent ^#{Right}
switchedDesktop := false
}
else
{
SendEvent ^#{Left}
switchedDesktop := true
}
}
;-------------------------------------------------------
|
#NoTrayIcon
#Persistent
#SingleInstance force
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;;*******************************************************
; CUSTOM SHORTCUTS
;*******************************************************
;-------------------------------------------------------
; Keep window on top
;-------------------------------------------------------
!+^T:: Winset, Alwaysontop, , A
;-------------------------------------------------------
;-------------------------------------------------------
; Replace default calculator
;-------------------------------------------------------
^NumpadEnter::Run "C:\Program Files (x86)\Moffsoft FreeCalc\MoffFreeCalc.exe"
;-------------------------------------------------------
;-------------------------------------------------------
; Call Listary
;-------------------------------------------------------
; With Alt + Space
!Space::Send !+^{=}
; With the down button of the mouse
XButton1::Send !+^{)}
^RButton::Send !+^{)}
;-------------------------------------------------------
;-------------------------------------------------------
; Switch between the desktops
;-------------------------------------------------------
; With the up button of the mouse
^XButton1:: switchDesktop() ;
XButton2:: switchDesktop() ;
; Function to switch between the desktops
switchedDesktop := false
switchDesktop()
{
global switchedDesktop
if switchedDesktop
{
SendEvent ^#{Right}
switchedDesktop := false
}
else
{
SendEvent ^#{Left}
switchedDesktop := true
}
}
;-------------------------------------------------------
|
Add another shortcut for Listary
|
Add another shortcut for Listary
|
AutoHotkey
|
mit
|
teddy-gustiaux/scripts,teddy-gustiaux/scripts
|
0f447ba1140fb2991bdd1a4de8a6d135d9f4dcc5
|
main.ahk
|
main.ahk
|
email = %1%
passwrd = %2%
Checkd()
{
WinWait Blizzard App Login, ,3
WinMove 0, 0
WinActivate
IfWinNotActive
{
Checkd()
}
if ErrorLevel
{
MsgBox unable to find Battle.net login window. Please record trying to login and report it at j20.pw/bnethelp
exit
}
}
Checkd()
Sleep 2000
Checkd()
WinActivate
Checkd()
ClickFromTopRight(42,200)
Send ^a
Send {BS}
send %email%
sleep 20
Sleep 100
ClickFromTopRight(42,250)
Sleep 20
ClickFromTopRight(42,250)
Send ^a
Send {BS}
send %passwrd%
Send {Enter}
exit
ClickFromTopRight(_X,_Y){
CoordMode, mouse, Relative
WinGetActiveStats, Title, width, height, x,y
_X := width - _X
Click %_X%, %_Y%
}
|
email = %1%
passwrd = %2%
Checkd()
{
WinWait Blizzard Battle.net Login, ,3
WinMove 0, 0
WinActivate
IfWinNotActive
{
Checkd()
}
if ErrorLevel
{
MsgBox unable to find Battle.net login window. Please record trying to login and report it at j20.pw/bnethelp
exit
}
}
Checkd()
Sleep 2000
Checkd()
WinActivate
Checkd()
ClickFromTopRight(42,200)
Send ^a
Send {BS}
send %email%
sleep 20
Sleep 100
ClickFromTopRight(42,250)
Sleep 20
ClickFromTopRight(42,250)
Send ^a
Send {BS}
send %passwrd%
Send {Enter}
exit
ClickFromTopRight(_X,_Y){
CoordMode, mouse, Relative
WinGetActiveStats, Title, width, height, x,y
_X := width - _X
Click %_X%, %_Y%
}
|
Update for new bnet title scheme
|
Update for new bnet title scheme
|
AutoHotkey
|
mit
|
judge2020/Battle.net-Switcher
|
1fba5bc9c7987bab764c59df54707aac76f03e76
|
AutoHotkeyScript.ahk
|
AutoHotkeyScript.ahk
|
; ahk_class PotPlayer
#SC01F::Send {Media_Play_Pause}
$+1::Send {!}
$+2::Send {@}
$+3::Send {#}
$+4::Send {$}
$+5::Send {`%}
$+6::Send {^}
;$+7::Send {&}
$+8::Send {*}
|
#InstallKeybdHook
#SingleInstance Force
; ahk_class PotPlayer
#SC01F::Send {Media_Play_Pause}
$+1::Send {!}
$+2::Send {@}
$+3::Send {#}
$+4::Send {$}
$+5::Send {`%}
$+6::Send {^}
;$+7::Send {&}
$+8::Send {*}
GetKeyboardLayout()
{
HKL := DllCall("GetKeyboardLayout", "UInt", 0, "Ptr")
Return HKL
}
GetKeyboardLayoutName()
{
VarSetCapacity(Str, 1000)
DllCall("GetKeyboardLayoutName", "Str", Str, "Int")
Return Str
}
ActivateKeyboardLayout(HKL) ; This does not work.
{
; For initialization, necessary to run only once.
DllCall("Ole32.dll\OleInitialize", "Ptr", 0, "Int")
DllCall("LoadKeyboardLayout", "Str", "00020409", "Int")
T := DllCall("ActivateKeyboardLayout", "UInt", HKL, "UInt", 0x00000000, "PTR")
If (!T)
{
MsgBox, Error
}
}
Capslock::
SetCapsLockState, Off
If (Lang = 0)
{
PostMessage, 0x50, 0, 0xF0020409,, A
Lang := 1
}
Else
{
PostMessage, 0x50, 0, 0xF03A0429,, A
Lang := 0
}
Return
<^Capslock::
SetCapsLockState, Off
PostMessage, 0x50, 0, 0xF01A0409,, A
Return
>^Capslock::
SetCapsLockState, Off
PostMessage, 0x50, 0, 0xF01B0409,, A
Return
!Capslock::
T := GetKeyboardLayout()
H := Format("{1:X}", T)
MsgBox, %T% %H%
Return
Temp()
{
;^1:: ; This line is commented out.
T := GetKeyboardLayout()
H := Format("{1:X}", T)
MsgBox, %T% %H%
Return
;^2:: ; This line is commented out.
;ActivateKeyboardLayout(0xF0020409)
PostMessage, 0x50, 0, 0xF0020409,, A
MsgBox, Done.
Return
}
|
Add hotkeys for changing keyboard language.
|
Add hotkeys for changing keyboard language.
|
AutoHotkey
|
mit
|
Shayan-To/AutoHotkeyScripts
|
610930bc76facbcd851bc50ffff05e39a3b91646
|
AutoHotkeyScript.ahk
|
AutoHotkeyScript.ahk
|
; ahk_class PotPlayer
#SC01F::Send {Media_Play_Pause}
|
; ahk_class PotPlayer
#SC01F::Send {Media_Play_Pause}
$+1::Send {!}
$+2::Send {@}
$+3::Send {#}
$+4::Send {$}
$+5::Send {`%}
$+6::Send {^}
;$+7::Send {&}
$+8::Send {*}
|
Add special characters for Persian keyboard.
|
Add special characters for Persian keyboard.
|
AutoHotkey
|
mit
|
Shayan-To/AutoHotkeyScripts
|
cc4e9cb7ab374fd7462f291930e33c412ee6652c
|
autohotkey.ahk
|
autohotkey.ahk
|
FileEncoding, UTF-8 ; This file needs to be saved/encoded with "UTF-8 with BOM"
; Use Swedish characters on US-English keyboard
![:: Send, å
!+{:: Send, Å
!':: Send, ä
!+':: Send, Ä
!;:: Send, ö
!+;:: Send, Ö ; does not work
; HHKB settings to mimic macOS behavior on Windows
; Lwin = <^
LWin::LCtrl
<^Right:: Send, {End}
<^Left:: Send, {Home}
<^Up:: Send, {PgUp}
<^Down:: Send, {PgDn}
<^Tab::Send {LWin down}{Tab}{LWin up}
|
FileEncoding, UTF-8 ; This file needs to be saved/encoded with "UTF-8 with BOM"
; Use Swedish characters on US-English keyboard
![:: Send, å
!+{:: Send, Å
!':: Send, ä
!+':: Send, Ä
!;:: Send, ö
!+;:: Send, Ö ; does not work
; HHKB settings to mimic macOS behavior on Windows
LWin::LCtrl ; this one is better to use SharpKeys for, as it is unreliable here
<^Right:: Send, {End}
<^Left:: Send, {Home}
<^Up:: Send, {PgUp}
<^Down:: Send, {PgDn}
<+^Up:: Send, {LShift down}{PgUp}{LShift up}
<+^Down:: Send, {LShift down}{PgDn}{LShift up}
<^Tab::Send {LWin down}{Tab}{LWin up}
|
Add reliable setup in conjunction with SharpKeys
|
Add reliable setup in conjunction with SharpKeys
|
AutoHotkey
|
mit
|
fredrikaverpil/dotfiles,fredrikaverpil/dotfiles,fredrikaverpil/dotfiles
|
6a67773a950a9b9e2cfe9215f470bef903173864
|
autohotkey.ahk
|
autohotkey.ahk
|
FileEncoding, UTF-8 ; This file needs to be saved/encoded with "UTF-8 with BOM"
; Use Swedish characters on US-English keyboard
![:: Send, å
!+{:: Send, Å
!':: Send, ä
!+':: Send, Ä
!;:: Send, ö
!+;:: Send, Ö
; HHKB settings to mimic macOS behavior on Windows
LWin::LCtrl ; this one is better to use SharpKeys for, as it is unreliable here
<^Right:: Send, {End}
<^Left:: Send, {Home}
<^Up:: Send, {PgUp}
<^Down:: Send, {PgDn}
<+^Right:: Send, {LShift down}{End}{LShift up}
<+^Left:: Send, {LShift down}{Home}{LShift up}
<+^Up:: Send, {LShift down}{PgUp}{LShift up}
<+^Down:: Send, {LShift down}{PgDn}{LShift up}
; Windows laptop
AppsKey:: Send, {RWin}
|
; Put this file in
; %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup
FileEncoding, UTF-8 ; This file needs to be saved/encoded with "UTF-8 with BOM"
; Use Swedish characters on US-English keyboard
![:: Send, å
!+{:: Send, Å
!':: Send, ä
!+':: Send, Ä
!;:: Send, ö
!+;:: Send, Ö
; HHKB settings to mimic macOS behavior on Windows
LWin::LCtrl ; this one is better to use SharpKeys for, as it is unreliable here
<^Right:: Send, {End}
<^Left:: Send, {Home}
<^Up:: Send, {PgUp}
<^Down:: Send, {PgDn}
<+^Right:: Send, {LShift down}{End}{LShift up}
<+^Left:: Send, {LShift down}{Home}{LShift up}
<+^Up:: Send, {LShift down}{PgUp}{LShift up}
<+^Down:: Send, {LShift down}{PgDn}{LShift up}
; Windows laptop
AppsKey:: Send, {RWin}
|
Add path onto which to store this file
|
Add path onto which to store this file
|
AutoHotkey
|
mit
|
fredrikaverpil/dotfiles,fredrikaverpil/dotfiles,fredrikaverpil/dotfiles
|
4877a3d516f1d1580a0d3912b0178be777ccad7f
|
changelog.awk
|
changelog.awk
|
#!/usr/bin/awk -f
BEGIN {
# Determines whether to print 'Unreleased' banner at top
UNRELEASED_COMMITS = 1
# Prefixes that determine whether a commit will be printed
CHANGELOG_REGEX = "^(changelog|fix|docs|chore|feat): "
FS="|"
while ("git log --pretty='%D|%s|%H'" | getline) {
IS_GIT_TAG = length($1) && match($1, /tag:/)
if (IS_GIT_TAG) {
UNRELEASED_COMMITS = 0
# Cut out text up to tag
sub(/.*tag: /, "", $1)
# Cut out text after tag
sub(/,.*/, "", $1)
print $1
} else {
if ( UNRELEASED_COMMITS ) {
print "Unreleased"
UNRELEASED_COMMITS = 0
}
if ( match($2, CHANGELOG_REGEX) ) {
sub(CHANGELOG_REGEX, "", $2)
printf("\t- %s\n", $2)
}
}
}
}
|
#!/usr/bin/awk -f
BEGIN {
# Determines whether to print 'Unreleased' banner at top
UNRELEASED_COMMITS = 1
# Prefixes that determine whether a commit will be printed
CHANGELOG_REGEX = "^(changelog|fix|docs|chore|feat|feature|refactor|update): "
FS="|"
while ("git log --pretty='%D|%s|%H'" | getline) {
IS_GIT_TAG = length($1) && match($1, /tag:/)
if (IS_GIT_TAG) {
UNRELEASED_COMMITS = 0
# Cut out text up to tag
sub(/.*tag: /, "", $1)
# Cut out text after tag
sub(/,.*/, "", $1)
print $1
} else {
if ( UNRELEASED_COMMITS ) {
print "Unreleased"
UNRELEASED_COMMITS = 0
}
if ( match($2, CHANGELOG_REGEX) ) {
sub(CHANGELOG_REGEX, "", $2)
printf("\t- %s\n", $2)
}
}
}
}
|
Add new prefixes: feature, refactor and update
|
feature: Add new prefixes: feature, refactor and update
|
Awk
|
mit
|
ianhenderson/simple-git-changelog
|
1b7afe9dca60a1bee2f52612eedec9e199e20142
|
lib/defexp.awk
|
lib/defexp.awk
|
# awk script to convert symbol export table formats
# converts an msvc .def file to an darwin ld export-symbols-list file
# we only support the most basic module definition syntax
# skip comments
/^\w*#.*/ {next}
/^\w*;.*/ {next}
# remember and propagate the library name
/LIBRARY/ {name = $2; print "\# export list for", name; next}
# skip various other lines
/^\w*NAME/ ||
/^\w*VERSION/ ||
/^\w*EXPORTS/ ||
/^\w*HEAPSIZE/ ||
/^\w*STACKSIZE/ ||
/^\w*STUB/ {next}
# todo: handle SECTIONS
# for symbols, strip the semicolon and mangle the name
/[a-zA-Z]+/ {sub(/\;/, ""); print "_" $1}
# todo: warn if we see publicname=privatename mappings
# which other linkers don't support
|
# awk script to convert symbol export table formats
# converts an msvc .def file to an darwin ld export-symbols-list file
# we only support the most basic module definition syntax
# skip comments
/^\w*#.*/ {next}
/^\w*;.*/ {next}
# remember and propagate the library name
/LIBRARY/ {name = $2; print "# export list for", name; next}
# skip various other lines
/^\w*NAME/ ||
/^\w*VERSION/ ||
/^\w*EXPORTS/ ||
/^\w*HEAPSIZE/ ||
/^\w*STACKSIZE/ ||
/^\w*STUB/ {next}
# todo: handle SECTIONS
# for symbols, strip the semicolon and mangle the name
/[a-zA-Z]+/ {sub(/\;/, ""); print "_" $1}
# todo: warn if we see publicname=privatename mappings
# which other linkers don't support
|
Remove a redundant escape character.
|
Remove a redundant escape character.
Some awks warn about it having no effect.
git-svn-id: 8dbf393e6e9ab8d4979d29f9a341a98016792aa6@16492 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
Awk
|
bsd-3-clause
|
KTXSoftware/theora,Distrotech/libtheora,Distrotech/libtheora,Distrotech/libtheora,KTXSoftware/theora,KTXSoftware/theora,Distrotech/libtheora,KTXSoftware/theora,Distrotech/libtheora,KTXSoftware/theora
|
b9043343f3d6881e4d013c5d62a7d886ec41ee9d
|
fixExtraLinesFrom-webscraper.awk
|
fixExtraLinesFrom-webscraper.awk
|
# Print lines from a WebScraper csv file after joining extra newlines
# INVOCATION:
# awk -f fixExtraLinesFrom-webscraper.awk BritBoxPrograms.csv
{
if (/^"/)
printf ("\n" $0)
else
printf
}
|
# Print lines from a WebScraper csv file after joining extra newlines
# INVOCATION:
# awk -f fixExtraLinesFrom-webscraper.awk BritBoxPrograms.csv
{
if (/^"/)
printf ("\n" $0)
else
printf
}
END {
printf ("\n")
}
|
Make sure newline at end of file
|
Make sure newline at end of file
|
Awk
|
mit
|
Monty/WhatsStreamingToday,Monty/WhatsStreamingToday
|
8bd3e890fcdef23f61840c00d2acd9fa7efe073b
|
recipes-core/systemd/systemd-units/candump.awk
|
recipes-core/systemd/systemd-units/candump.awk
|
{
if (1==NR)
{
startTimestamp = substr($1, 2, length($1) - 2)
printf(";$FILEVERSION=1.3\n")
printf(";$STARTTIME=%u.%u\n", mktime(strftime("%Y %m %d 0 0 0", startTimestamp)) / 86400 + 25569, \
10000000000 / 86400 * (mktime(strftime("%Y %m %d %H %M %S", startTimestamp)) - mktime(strftime("%Y %m %d 0 0 0", startTimestamp))))
currentTimeOffset = 0.0
}
else
{
previousTimeOffset = currentTimeOffset
currentTimestamp = substr($1, 2, length($1) - 2)
currentTimeOffset = currentTimestamp - startTimestamp
if (currentTimeOffset < 0)
{
startTimestamp = currentTimestamp + currentTimeOffset
currentTimeOffset = previousTimeOffset
}
}
printf("%u) %.3f 1 Rx %s - %s", NR, currentTimeOffset * 1000, $3, substr($4, 2, length($4) - 2))
if (5<=NF)
{
for(i=5;i<=NF;i++)
{
printf " "$i
}
}
printf "\n"
}
|
{
if (1==NR)
{
startTimestamp = substr($1, 2, length($1) - 2)
printf(";$FILEVERSION=1.3\n")
printf(";$STARTTIME=%u.%.0f\n", mktime(strftime("%Y %m %d 0 0 0", startTimestamp)) / 86400 + 25569, \
10000000000.0 / 86400.0 * (mktime(strftime("%Y %m %d %H %M %S", startTimestamp)) - mktime(strftime("%Y %m %d 0 0 0", startTimestamp))))
printf(";\n; Start time: %s\n", startTimestamp)
printf("; %u\n", mktime(strftime("%Y %m %d %H %M %S", startTimestamp)))
printf("; %s\n;\n", strftime("%Y-%m-%dT%H:%M:%S%z (%Z)", startTimestamp))
currentTimeOffset = 0.0
}
else
{
previousTimeOffset = currentTimeOffset
currentTimestamp = substr($1, 2, length($1) - 2)
currentTimeOffset = currentTimestamp - startTimestamp
if (currentTimeOffset < 0)
{
startTimestamp = currentTimestamp + currentTimeOffset
currentTimeOffset = previousTimeOffset
}
}
printf("%u) %.3f 1 Rx %s - %s", NR, currentTimeOffset * 1000, $3, substr($4, 2, length($4) - 2))
if (5<=NF)
{
for(i=5;i<=NF;i++)
{
printf " "$i
}
}
printf "\n"
}
|
Use float for calculating fractional part of STARTTIME to support busybox awk. Also print used start time is various representations.
|
Use float for calculating fractional part of STARTTIME to support busybox awk.
Also print used start time is various representations.
Compared to gawk, busybox awk does only support 32 bit integers.
|
Awk
|
mit
|
tramseyer/meta-medusa-dist,tramseyer/meta-medusa-dist,tramseyer/meta-medusa-dist,tramseyer/meta-medusa-dist
|
d7f0c1f819f5892e124041ecbe535500e773da0d
|
changelog.awk
|
changelog.awk
|
#!/usr/bin/awk -f
BEGIN {
# Determines whether to print 'Unreleased' banner at top
UNRELEASED_COMMITS = 1
# Prefixes that determine whether a commit will be printed
CHANGELOG_REGEX = "^(changelog|fix|docs|chore|feat|feature|refactor|update): "
FS="|"
while ("git log --pretty='%D|%s|%H'" | getline) {
IS_GIT_TAG = length($1) && match($1, /tag:/)
if (IS_GIT_TAG) {
UNRELEASED_COMMITS = 0
# Cut out text up to tag
sub(/.*tag: /, "", $1)
# Cut out text after tag
sub(/,.*/, "", $1)
print $1
} else {
if ( UNRELEASED_COMMITS ) {
print "Unreleased"
UNRELEASED_COMMITS = 0
}
if ( match($2, CHANGELOG_REGEX) ) {
sub(CHANGELOG_REGEX, "", $2)
printf("\t- %s\n", $2)
}
}
}
}
|
#!/usr/bin/awk -f
BEGIN {
REPO_URL = getRepoURL()
# Prefixes that determine whether a commit will be printed
CHANGELOG_REGEX = "^(changelog|fix|docs|chore|feat|feature|refactor|update): "
FS="|"
# %D: tags
# %s: commit message
# %H: long hash
# %h: short hash
while ("git log --pretty='%D|%s|%H|%h'" | getline) {
IS_GIT_TAG = length($1) && match($1, /tag:/)
if (IS_GIT_TAG) {
printTag($1)
} else {
printCommit($2, $3, $4)
}
}
}
function printTag(input) {
# Cut out text up to tag
sub(/.*tag: /, "", input)
# Cut out text after tag
sub(/,.*/, "", input)
printf("## %s\n", input)
}
function printCommit(input, longHash, shortHash) {
if ( match(input, CHANGELOG_REGEX) ) {
sub(CHANGELOG_REGEX, "", input)
printf("- %s (%s)\n", input, makeCommitLink(REPO_URL, shortHash, longHash) )
}
}
function makeCommitLink(repoUrl, shortHash, longHash) {
return ("[" shortHash "](" repoUrl "/commit/" longHash ")")
}
# Get Git repo URL
function getRepoURL() {
"git config --get remote.upstream.url || git config --get remote.origin.url || git config --get remote.dev.url" | getline REPO_URL
sub(/:/, "/", REPO_URL)
sub(/git@/, "https://", REPO_URL)
sub(/\.git/, "", REPO_URL)
return REPO_URL
}
|
Update to output in markdown format
|
feat: Update to output in markdown format
|
Awk
|
mit
|
ianhenderson/simple-git-changelog
|
c2aad25b36a875cf3e04e5db93945a4e30c8f85e
|
tools/awk/median.awk
|
tools/awk/median.awk
|
#!/usr/bin/env awk -f
#
# Computes the median.
#
# Usage: median
#
# Input:
# - a column of numbers
#
# Output:
# - median value
BEGIN {
i = 0
}
{
a[i++] = $1
}
END {
j = i/2
if ( i%2 == 1 ) {
median = a[int(j)]
} else {
median = (a[j] + a[j-1])/2
}
print median
}
|
#!/usr/bin/env awk -f
#
# Computes the median.
#
# Usage: median
#
# Input:
# - a sorted column of numbers
#
# Output:
# - median value
BEGIN {
i = 0
}
{
a[i++] = $1
}
END {
j = i/2
if ( i%2 == 1 ) {
median = a[int(j)]
} else {
median = (a[j] + a[j-1])/2
}
print median
}
|
Clarify that input must be sorted
|
Clarify that input must be sorted
|
Awk
|
apache-2.0
|
stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib
|
6a20e40655814dc20449ef1ae90a4e4ee9c42689
|
targets.awk
|
targets.awk
|
BEGIN {
FS = "\n";
}
/Targets:/ {
while (getline && $0 != "") {
if ($0 ~ /Tests/) continue;
sub(/^ +/, "");
print;
}
}
|
BEGIN {
FS = "\n";
}
/Targets:/ {
while (getline && $0 != "") {
if ($0 ~ /Test/) continue;
sub(/^ +/, "");
print;
}
}
|
Exclude any target with "Test" in the name
|
Exclude any target with "Test" in the name
|
Awk
|
mit
|
hsavit1/objc-build-scripts,jspahrsummers/objc-build-scripts
|
ff5ad7ffc3e1cbed1f8c2b0ecbef64dd32ee9921
|
Gtk-3.0.awk
|
Gtk-3.0.awk
|
#!/usr/bin/awk
#
# Patch the generated wrapper Swift code to handle special cases
#
BEGIN { depr_init = 0 }
/open .* ColorSelection/ { depr_init = 1 }
/public .* ColorSelection/ { depr_init = 1 }
/public .* HSV/ { depr_init = 1 }
/open .* HSV/ { depr_init = 1 }
/ init.. {/ {
if (depr_init) {
printf("@available(*, deprecated) ")
depr_init = 0
}
}
/ init. title:/ {
if (depr_init) {
printf("@available(*, deprecated) ")
depr_init = 0
}
}
// { print }
|
#!/usr/bin/awk
#
# Patch the generated wrapper Swift code to handle special cases
#
BEGIN { depr_init = 0 ; comment = 0 }
/open .* ColorSelection/ { depr_init = 1 }
/public .* ColorSelection/ { depr_init = 1 }
/public .* HSV/ { depr_init = 1 }
/open .* HSV/ { depr_init = 1 }
/open .* HSV/ { depr_init = 1 }
/func getColumnHeaderCells/ { comment = 1 }
/func getRowHeaderCells/ { comment = 1 }
/ init.. {/ {
if (depr_init) {
printf("@available(*, deprecated) ")
depr_init = 0
}
}
/ init. title:/ {
if (depr_init) {
printf("@available(*, deprecated) ")
depr_init = 0
}
}
// {
if (comment) {
printf("// ")
}
print
}
/^ }$/ { comment = 0 }
|
Make this link against gtk+-3.24.4
|
Make this link against gtk+-3.24.4
|
Awk
|
bsd-2-clause
|
rhx/SwiftGtk,rhx/SwiftGtk,rhx/SwiftGtk
|
e65dcb5321a86f0d4e1cee92e2f36f8c84013904
|
generateversionscript.awk
|
generateversionscript.awk
|
BEGIN {
print "V1.0 {";
print " global:";
}
{
# Remove the CR character in case the sources are mapped from
# a Windows share and contain CRLF line endings
gsub(/\r/,"", $0);
# Skip empty lines and comment lines starting with semicolon
if (NF && !match($0, /^[[:space:]]*;/))
{
print " " $0 ";";
}
}
END {
print " local: *;"
print "};";
}
|
BEGIN {
print "V1.0 {";
print " global:";
}
{
# Remove the CR character in case the sources are mapped from
# a Windows share and contain CRLF line endings
gsub(/\r/,"", $0);
# Skip empty lines and comment lines starting with semicolon
if (NF && !match($0, /^[:space:]*;/))
{
print " " $0 ";";
}
}
END {
print " local: *;"
print "};";
}
|
Revert "Fix bracket expression matches a character at gawk"
|
Revert "Fix bracket expression matches a character at gawk"
|
Awk
|
mit
|
bartdesmet/coreclr,cmckinsey/coreclr,poizan42/coreclr,JosephTremoulet/coreclr,mskvortsov/coreclr,ragmani/coreclr,dpodder/coreclr,hseok-oh/coreclr,JosephTremoulet/coreclr,botaberg/coreclr,andschwa/coreclr,mmitche/coreclr,rartemev/coreclr,qiudesong/coreclr,yeaicc/coreclr,pgavlin/coreclr,wtgodbe/coreclr,pgavlin/coreclr,ruben-ayrapetyan/coreclr,jamesqo/coreclr,shahid-pk/coreclr,tijoytom/coreclr,ZhichengZhu/coreclr,bartonjs/coreclr,dasMulli/coreclr,James-Ko/coreclr,gkhanna79/coreclr,James-Ko/coreclr,shahid-pk/coreclr,ramarag/coreclr,kyulee1/coreclr,JonHanna/coreclr,russellhadley/coreclr,shahid-pk/coreclr,kyulee1/coreclr,dasMulli/coreclr,sejongoh/coreclr,russellhadley/coreclr,JonHanna/coreclr,ZhichengZhu/coreclr,JosephTremoulet/coreclr,manu-silicon/coreclr,alexperovich/coreclr,SlavaRa/coreclr,James-Ko/coreclr,dpodder/coreclr,krytarowski/coreclr,JonHanna/coreclr,neurospeech/coreclr,sjsinju/coreclr,sagood/coreclr,chuck-mitchell/coreclr,parjong/coreclr,KrzysztofCwalina/coreclr,yizhang82/coreclr,jhendrixMSFT/coreclr,dpodder/coreclr,gkhanna79/coreclr,pgavlin/coreclr,dasMulli/coreclr,dasMulli/coreclr,alexperovich/coreclr,martinwoodward/coreclr,sagood/coreclr,poizan42/coreclr,YongseopKim/coreclr,wateret/coreclr,sjsinju/coreclr,mmitche/coreclr,chuck-mitchell/coreclr,KrzysztofCwalina/coreclr,mskvortsov/coreclr,yizhang82/coreclr,mmitche/coreclr,roncain/coreclr,andschwa/coreclr,sjsinju/coreclr,jhendrixMSFT/coreclr,schellap/coreclr,parjong/coreclr,cydhaselton/coreclr,josteink/coreclr,krytarowski/coreclr,qiudesong/coreclr,sejongoh/coreclr,sjsinju/coreclr,sagood/coreclr,yizhang82/coreclr,botaberg/coreclr,bartonjs/coreclr,schellap/coreclr,JosephTremoulet/coreclr,jamesqo/coreclr,jamesqo/coreclr,ZhichengZhu/coreclr,dasMulli/coreclr,KrzysztofCwalina/coreclr,bartdesmet/coreclr,pgavlin/coreclr,jamesqo/coreclr,tijoytom/coreclr,alexperovich/coreclr,cmckinsey/coreclr,yeaicc/coreclr,andschwa/coreclr,LLITCHEV/coreclr,wtgodbe/coreclr,manu-silicon/coreclr,jhendrixMSFT/coreclr,AlexGhiondea/coreclr,yeaicc/coreclr,JonHanna/coreclr,Dmitry-Me/coreclr,vinnyrom/coreclr,manu-silicon/coreclr,wateret/coreclr,jhendrixMSFT/coreclr,cmckinsey/coreclr,bartdesmet/coreclr,ZhichengZhu/coreclr,naamunds/coreclr,shahid-pk/coreclr,shahid-pk/coreclr,dpodder/coreclr,parjong/coreclr,josteink/coreclr,James-Ko/coreclr,jhendrixMSFT/coreclr,alexperovich/coreclr,ruben-ayrapetyan/coreclr,James-Ko/coreclr,naamunds/coreclr,sejongoh/coreclr,YongseopKim/coreclr,cydhaselton/coreclr,krk/coreclr,schellap/coreclr,hseok-oh/coreclr,bartonjs/coreclr,andschwa/coreclr,wateret/coreclr,ruben-ayrapetyan/coreclr,parjong/coreclr,martinwoodward/coreclr,ZhichengZhu/coreclr,schellap/coreclr,kyulee1/coreclr,vinnyrom/coreclr,wateret/coreclr,Dmitry-Me/coreclr,sejongoh/coreclr,martinwoodward/coreclr,shahid-pk/coreclr,bartonjs/coreclr,yeaicc/coreclr,botaberg/coreclr,ramarag/coreclr,ramarag/coreclr,sejongoh/coreclr,sejongoh/coreclr,SlavaRa/coreclr,Dmitry-Me/coreclr,ragmani/coreclr,krytarowski/coreclr,krk/coreclr,ruben-ayrapetyan/coreclr,JonHanna/coreclr,krytarowski/coreclr,alexperovich/coreclr,russellhadley/coreclr,LLITCHEV/coreclr,AlexGhiondea/coreclr,bartdesmet/coreclr,shahid-pk/coreclr,LLITCHEV/coreclr,qiudesong/coreclr,ruben-ayrapetyan/coreclr,Dmitry-Me/coreclr,ragmani/coreclr,roncain/coreclr,mskvortsov/coreclr,martinwoodward/coreclr,mskvortsov/coreclr,James-Ko/coreclr,josteink/coreclr,hseok-oh/coreclr,ramarag/coreclr,SlavaRa/coreclr,martinwoodward/coreclr,andschwa/coreclr,KrzysztofCwalina/coreclr,cshung/coreclr,YongseopKim/coreclr,manu-silicon/coreclr,cydhaselton/coreclr,russellhadley/coreclr,roncain/coreclr,martinwoodward/coreclr,YongseopKim/coreclr,chuck-mitchell/coreclr,bartdesmet/coreclr,chuck-mitchell/coreclr,mskvortsov/coreclr,tijoytom/coreclr,cmckinsey/coreclr,KrzysztofCwalina/coreclr,parjong/coreclr,cydhaselton/coreclr,cmckinsey/coreclr,dpodder/coreclr,sagood/coreclr,pgavlin/coreclr,krytarowski/coreclr,naamunds/coreclr,ragmani/coreclr,bartonjs/coreclr,ruben-ayrapetyan/coreclr,YongseopKim/coreclr,AlexGhiondea/coreclr,wtgodbe/coreclr,Dmitry-Me/coreclr,cydhaselton/coreclr,dasMulli/coreclr,yeaicc/coreclr,roncain/coreclr,KrzysztofCwalina/coreclr,kyulee1/coreclr,josteink/coreclr,chuck-mitchell/coreclr,qiudesong/coreclr,qiudesong/coreclr,sagood/coreclr,naamunds/coreclr,JonHanna/coreclr,chuck-mitchell/coreclr,gkhanna79/coreclr,josteink/coreclr,jamesqo/coreclr,naamunds/coreclr,botaberg/coreclr,rartemev/coreclr,yizhang82/coreclr,JosephTremoulet/coreclr,yeaicc/coreclr,JosephTremoulet/coreclr,roncain/coreclr,alexperovich/coreclr,pgavlin/coreclr,bartdesmet/coreclr,chuck-mitchell/coreclr,cshung/coreclr,sagood/coreclr,AlexGhiondea/coreclr,krytarowski/coreclr,AlexGhiondea/coreclr,wateret/coreclr,YongseopKim/coreclr,vinnyrom/coreclr,cshung/coreclr,KrzysztofCwalina/coreclr,cmckinsey/coreclr,rartemev/coreclr,manu-silicon/coreclr,russellhadley/coreclr,roncain/coreclr,neurospeech/coreclr,botaberg/coreclr,krk/coreclr,neurospeech/coreclr,neurospeech/coreclr,wtgodbe/coreclr,bartonjs/coreclr,jhendrixMSFT/coreclr,schellap/coreclr,ZhichengZhu/coreclr,kyulee1/coreclr,neurospeech/coreclr,hseok-oh/coreclr,hseok-oh/coreclr,wtgodbe/coreclr,kyulee1/coreclr,cydhaselton/coreclr,bartdesmet/coreclr,hseok-oh/coreclr,ragmani/coreclr,krk/coreclr,naamunds/coreclr,vinnyrom/coreclr,mskvortsov/coreclr,parjong/coreclr,sejongoh/coreclr,martinwoodward/coreclr,LLITCHEV/coreclr,rartemev/coreclr,poizan42/coreclr,mmitche/coreclr,cshung/coreclr,vinnyrom/coreclr,manu-silicon/coreclr,tijoytom/coreclr,LLITCHEV/coreclr,mmitche/coreclr,jamesqo/coreclr,bartonjs/coreclr,rartemev/coreclr,neurospeech/coreclr,rartemev/coreclr,SlavaRa/coreclr,yeaicc/coreclr,SlavaRa/coreclr,yizhang82/coreclr,dasMulli/coreclr,schellap/coreclr,vinnyrom/coreclr,andschwa/coreclr,mmitche/coreclr,wtgodbe/coreclr,poizan42/coreclr,wateret/coreclr,qiudesong/coreclr,gkhanna79/coreclr,Dmitry-Me/coreclr,yizhang82/coreclr,LLITCHEV/coreclr,botaberg/coreclr,russellhadley/coreclr,dpodder/coreclr,ZhichengZhu/coreclr,AlexGhiondea/coreclr,gkhanna79/coreclr,vinnyrom/coreclr,schellap/coreclr,poizan42/coreclr,tijoytom/coreclr,cmckinsey/coreclr,cshung/coreclr,manu-silicon/coreclr,naamunds/coreclr,gkhanna79/coreclr,ragmani/coreclr,Dmitry-Me/coreclr,ramarag/coreclr,sjsinju/coreclr,roncain/coreclr,poizan42/coreclr,cshung/coreclr,andschwa/coreclr,LLITCHEV/coreclr,josteink/coreclr,krk/coreclr,tijoytom/coreclr,krk/coreclr,ramarag/coreclr,sjsinju/coreclr,ramarag/coreclr,josteink/coreclr,SlavaRa/coreclr,jhendrixMSFT/coreclr
|
95f0985e4aa0c96d77cb3287f5c9c34c946e0124
|
q3/dep.awk
|
q3/dep.awk
|
#!/bin/awk
#
# $Id$
{
if (NR == 1) {
print
}
else {
for (i = 1; i <= NF; i++) {
if ($i ~ /^include\// ||
$i ~ /^src\// ||
$i ~ /^obj\// ||
$i == "\\")
printf " " $i
}
print ""
}
}
|
#!/bin/awk
#
# $Id$
{
if (NR == 1) {
print
}
else {
for (i = 1; i <= NF; i++) {
if ($i ~ /^include\// ||
$i ~ /^src\// ||
$i ~ /^obj\// ||
$i ~ /^\.\.\// ||
$i == "\\")
printf " " $i
}
print ""
}
}
|
Include header files whose path begins with ../ .
|
Include header files whose path begins with ../ .
git-svn-id: 12ae5aeef08fd453d75833463da4cc20df82a94e@2159 8af8166b-12a6-a448-a533-9086ace3f9f6
|
Awk
|
mit
|
snakamura/q3,snakamura/q3,snakamura/q3,snakamura/q3,snakamura/q3,snakamura/q3,snakamura/q3,snakamura/q3,snakamura/q3
|
86e0f63ada393327a76f1ba5bdfc1e4ff633aa1b
|
log_rewriter.awk
|
log_rewriter.awk
|
BEGIN{
now = systime()
format = "%Y/%m/%d %H:%M:%S"
}
{
split($1, DATE, "/")
split($2, TIME, ":")
$1 = ""
$2 = ""
t = mktime(DATE[1] " " DATE[2] " " DATE[3] " " TIME[1] " " TIME[2] " " TIME[3])
if (delta == "") {
delta = now - t
}
print strftime(format, t + delta) $0
}
|
BEGIN{
now = systime()
format = "%Y/%m/%d %H:%M:%S"
}
{
split($1, DATE, "/")
split($2, TIME, ":")
t = mktime(DATE[1] " " DATE[2] " " DATE[3] " " TIME[1] " " TIME[2] " " TIME[3])
if (delta == "") {
delta = now - t
}
out = strftime(format, t + delta)
for (i = 3; i <= NF; i++) {
out = out OFS $i
}
print out
}
|
Fix an output formatting bug in the rewriter script.
|
Fix an output formatting bug in the rewriter script.
|
Awk
|
apache-2.0
|
4honor/mtail,google/mtail,SuperQ/mtail,4honor/mtail,SuperQ/mtail,google/mtail
|
d67bae61d2d09bd96a593087ed0135313298da07
|
rtest/strps.awk
|
rtest/strps.awk
|
BEGIN{doit = 0}
{ if (doit) print $0 }
$0 == "%%EndSetup" { doit = 1 }
|
BEGIN{doit = 0}
{ if (doit) print $0 }
$0 = /%%End.*Setup/ { doit = 1 }
|
Fix awk script to work with cairo generated postscript
|
Fix awk script to work with cairo generated postscript
|
Awk
|
epl-1.0
|
pixelglow/graphviz,jho1965us/graphviz,BMJHayward/graphviz,MjAbuz/graphviz,tkelman/graphviz,pixelglow/graphviz,ellson/graphviz,BMJHayward/graphviz,BMJHayward/graphviz,jho1965us/graphviz,MjAbuz/graphviz,ellson/graphviz,BMJHayward/graphviz,pixelglow/graphviz,kbrock/graphviz,jho1965us/graphviz,MjAbuz/graphviz,MjAbuz/graphviz,tkelman/graphviz,jho1965us/graphviz,BMJHayward/graphviz,jho1965us/graphviz,BMJHayward/graphviz,kbrock/graphviz,BMJHayward/graphviz,ellson/graphviz,MjAbuz/graphviz,kbrock/graphviz,BMJHayward/graphviz,tkelman/graphviz,tkelman/graphviz,pixelglow/graphviz,tkelman/graphviz,tkelman/graphviz,ellson/graphviz,jho1965us/graphviz,jho1965us/graphviz,BMJHayward/graphviz,MjAbuz/graphviz,ellson/graphviz,pixelglow/graphviz,ellson/graphviz,MjAbuz/graphviz,tkelman/graphviz,kbrock/graphviz,ellson/graphviz,MjAbuz/graphviz,kbrock/graphviz,ellson/graphviz,kbrock/graphviz,pixelglow/graphviz,kbrock/graphviz,tkelman/graphviz,ellson/graphviz,tkelman/graphviz,MjAbuz/graphviz,tkelman/graphviz,BMJHayward/graphviz,jho1965us/graphviz,pixelglow/graphviz,BMJHayward/graphviz,pixelglow/graphviz,ellson/graphviz,jho1965us/graphviz,pixelglow/graphviz,kbrock/graphviz,tkelman/graphviz,MjAbuz/graphviz,pixelglow/graphviz,kbrock/graphviz,kbrock/graphviz,MjAbuz/graphviz,pixelglow/graphviz,jho1965us/graphviz,ellson/graphviz,kbrock/graphviz,jho1965us/graphviz
|
37fe110620923d519b6b6d3336c12429d6f3b755
|
debts.awk
|
debts.awk
|
#!/usr/bin/awk -f
BEGIN { FS = "," }
$1 == "pld" { p += $2 }
$1 == "val" { v += $2 }
{ "date -d "$3" +%B" | getline month
monthly[month][$1] += $2
categorically[$1][$4] += $2 }
END { print "Val spent "v"€"
print "PLD spent "p"€"
if ( p < v )
print "PLD owe "v - p"€ to val."
else if ( p > v )
print "Val owe "p - v"€ to PLD."
else
print "Accounts are balanced."
print ""
if ( verbose == 1 ) {
print "Here's the detail:"
print " Spendings per month:"
for ( month in monthly ) {
print " In "month":"
for ( who in monthly[month] ) {
print " "who" spent "monthly[month][who]"€."
}
}
print " Spendings by category:"
for ( who in categorically ) {
print " By "who":"
for ( category in categorically[who] ) {
print " "categorically[who][category]"€ in "category"."
}
}
}
}
|
#!/usr/bin/awk -f
BEGIN { FS = "," }
$1 == "pld" { p += $2 }
$1 == "val" { v += $2 }
{ "date -d "$3" '+%B %Y'" | getline month_and_year
monthly[month_and_year][$1] += $2
categorically[$1][$4] += $2 }
END { print "Val spent "v"€"
print "PLD spent "p"€"
if ( p < v )
print "PLD owe "v - p"€ to val."
else if ( p > v )
print "Val owe "p - v"€ to PLD."
else
print "Accounts are balanced."
print ""
if ( verbose == 1 ) {
print "Here's the detail:"
print " Spendings per month:"
for ( month_and_year in monthly ) {
print " In "month_and_year":"
total_for_month = 0
for ( who in monthly[month_and_year] ) {
spent = monthly[month_and_year][who]
print " "who" spent "spent"€."
total_for_month += spent
}
print " Total: "total_for_month"€."
}
print " Spendings by category:"
for ( who in categorically ) {
print " By "who":"
for ( category in categorically[who] ) {
print " "categorically[who][category]"€ in "category"."
}
}
}
}
|
Add year differentation into monthly report
|
Add year differentation into monthly report
|
Awk
|
unlicense
|
pldiiw/debts
|
a97463f6c90434039bcd550ae2c103993c376561
|
files/accounting/quota.awk
|
files/accounting/quota.awk
|
#
# Parsing output of:
#
# hdfs dfs -du -s '/user/*'
#
function dbstr(s) {
if (s) { return "'" s "'" }
else { return "NULL" }
}
function dbi(i) {
if (i >= 0) { return i }
else { return "NULL" }
}
BEGIN {
FS="[ \t/]+"
print "INSERT INTO measure (name) VALUES ('quota');";
}
{
used=$1
user=$4
print "INSERT INTO quota (id_measure, user, used) VALUES (last_insert_id(), " dbstr(user) ", " dbi(used) ");"
}
|
#
# Parsing output of:
#
# hdfs dfs -du -s '/user/*'
#
function dbstr(s) {
if (s) { return "'" s "'" }
else { return "NULL" }
}
function dbi(i) {
if (i >= 0) { return i }
else { return "NULL" }
}
BEGIN {
FS="[ \t/]+"
print "INSERT INTO measure (name) VALUES ('quota');";
}
/^[0-9]+[ ]+[0-9]+[ ]+\/.*/ {
used=$1
user=$4
print "INSERT INTO quota (id_measure, user, used) VALUES (last_insert_id(), " dbstr(user) ", " dbi(used) ");"
}
/^[0-9]+[ ]+\/.*/ {
used=$1
user=$3
print "INSERT INTO quota (id_measure, user, used) VALUES (last_insert_id(), " dbstr(user) ", " dbi(used) ");"
}
|
Support also different version of Hadoop (=Fedora).
|
Support also different version of Hadoop (=Fedora).
|
Awk
|
mit
|
MetaCenterCloudPuppet/cesnet-site_hadoop,MetaCenterCloudPuppet/cesnet-site_hadoop,MetaCenterCloudPuppet/cesnet-site_hadoop,MetaCenterCloudPuppet/cesnet-site_hadoop
|
ca1ade1571f27a86fc8a559a8b179024d07f0a7b
|
generateIMDbScriptsFrom-titles.awk
|
generateIMDbScriptsFrom-titles.awk
|
{
title = $0
if (match (title, /, The"$/)) {
sub (/^"/,"\"The ", title)
sub (/, The"$/,"\"", title)
}
printf ("echo ==\\> %3d: %s\n",NR,title) >> TITLES_SCRIPT
printf ("./getIMDbInfoFrom-titles.py %s\n",title) >> TITLES_SCRIPT
printf ("echo \n\n") >> TITLES_SCRIPT
printf ("echo ==\\> %3d: %s\n",NR,title) >> ID_SCRIPT
printf ("./getIMDb_IDsFrom-titles.py %s | head -7\n",title) >> ID_SCRIPT
printf ("echo \n\n") >> ID_SCRIPT
}
|
{
title = $0
if (match (title, /, The"$/)) {
sub (/^"/,"\"The ", title)
sub (/, The"$/,"\"", title)
}
if (FILENAME ~ /Acorn/)
KEY = "A"
if (FILENAME ~ /BBox/)
KEY = "B"
if (FILENAME ~ /MHz/)
KEY = "M"
if (FILENAME ~ /Watched/)
KEY = "W"
printf ("echo ==\\> %sT %3d: %s\n", KEY, NR, title) >> TITLES_SCRIPT
printf ("./getIMDbInfoFrom-titles.py %s\n",title) >> TITLES_SCRIPT
printf ("echo \n\n") >> TITLES_SCRIPT
printf ("echo ==\\> %sI %3d: %s\n", KEY, NR, title) >> ID_SCRIPT
printf ("./getIMDb_IDsFrom-titles.py %s | head -7\n",title) >> ID_SCRIPT
printf ("echo \n\n") >> ID_SCRIPT
}
|
Add identifier KEY so we can see where we are in -v script
|
Add identifier KEY so we can see where we are in -v script
|
Awk
|
mit
|
Monty/WhatsStreamingToday,Monty/WhatsStreamingToday
|
9c65c5b741b341fa0a689e91a0cc4ff15d8e53a6
|
scripts/marksession.awk
|
scripts/marksession.awk
|
BEGIN {
session_count = 0;
FS="|"
OFS="|"
}
{
if ($3 ~ "[0-9]+") {
# See if the current line is already in the table
frame_file = destDir "/frames/Frame"$3".html"
session_line = ""
"grep -i \"" session_token "\" " frame_file | getline session_line
if (session_line == "" ) {
$6 = "{0}"
print $0
} else {
found = 0;
split(session_line, array, " ")
session = array[2]
for (i=0; i < session_count; i++) {
if (sessions[i] == session) {
found = 1
$6 = "{" i+1 "}"
print $0
break
}
}
if (found == 0) {
$6 = "{" session_count+1 "}"
sessions[session_count++] = session
print $0
s = sprintf("echo '%2d: new session in frame %4s: %s' >&2", session_count, $3, session)
system(s)
}
}
} else {
# Comment line, line starting with "#".
# Requires no processing, just print it
print $0
}
}
|
BEGIN {
session_count = 0;
FS="|"
OFS="|"
}
{
if ($3 ~ "[0-9]+") {
# See if the current line is already in the table
frame_file = destDir "/frames/Frame"$3".html"
session_line = ""
"grep -i \"" session_token "\" " frame_file | getline session_line
close(grep)
if (session_line == "" ) {
$6 = "{0}"
print $0
} else {
found = 0;
split(session_line, array, " ")
session = array[2]
for (i=0; i < session_count; i++) {
if (sessions[i] == session) {
found = 1
$6 = "{" i+1 "}"
print $0
break
}
}
if (found == 0) {
$6 = "{" session_count+1 "}"
sessions[session_count++] = session
print $0
s = sprintf("echo '%2d: new session in frame %4s: %s' >&2", session_count, $3, session)
system(s)
}
}
} else {
# Comment line, line starting with "#".
# Requires no processing, just print it
print $0
}
}
|
Add a close command to avoid too many files opened problems (encountered with large libpcap file)
|
Add a close command to avoid too many files opened problems (encountered with large libpcap file)
git-svn-id: 392d0e5ce652024192c571322d40dcc23d6d83b0@118 8a65f31f-a56f-4bd6-98e8-2755f64920ec
|
Awk
|
bsd-3-clause
|
pol51/callflow,pol51/callflow
|
38b5a93ee539af40d8d12c22163057d2b337acf1
|
Programs/brlapi.awk
|
Programs/brlapi.awk
|
###############################################################################
# BRLTTY - A background process providing access to the console screen (when in
# text mode) for a blind person using a refreshable braille display.
#
# Copyright (C) 1995-2006 by The BRLTTY Developers.
#
# BRLTTY comes with ABSOLUTELY NO WARRANTY.
#
# This is free software, placed under the terms of the
# GNU General Public License, as published by the Free Software
# Foundation. Please see the file COPYING for details.
#
# Web Page: http://mielke.cc/brltty/
#
# This software is maintained by Dave Mielke <[email protected]>.
###############################################################################
/#define[ \t]*BRLAPI_KEY_[A-Z_]+_MASK/ {
apiMask(substr($2, 12), $2, getDefineValue(), "")
next
}
/#define[ \t]*BRLAPI_KEY_[A-Z_]+_SHIFT/ {
apiShift(substr($2, 12), $2, getDefineValue(), "")
next
}
/#define[ \t]*BRLAPI_KEY_TYPE_/ {
apiType(substr($2, 17), $2, getDefineValue(), "")
next
}
/#define[ \t]*BRLAPI_KEY_SYM_/ {
apiKey(substr($2, 16), $2, getDefineValue(), "")
next
}
|
###############################################################################
# BRLTTY - A background process providing access to the console screen (when in
# text mode) for a blind person using a refreshable braille display.
#
# Copyright (C) 1995-2006 by The BRLTTY Developers.
#
# BRLTTY comes with ABSOLUTELY NO WARRANTY.
#
# This is free software, placed under the terms of the
# GNU General Public License, as published by the Free Software
# Foundation. Please see the file COPYING for details.
#
# Web Page: http://mielke.cc/brltty/
#
# This software is maintained by Dave Mielke <[email protected]>.
###############################################################################
/#define[ \t]*BRLAPI_KEY_MAX/ {
apiMask(substr($2, 12), $2, getDefineValue(), "")
next
}
/#define[ \t]*BRLAPI_KEY_[A-Z_]+_MASK/ {
apiMask(substr($2, 12), $2, getDefineValue(), "")
next
}
/#define[ \t]*BRLAPI_KEY_[A-Z_]+_SHIFT/ {
apiShift(substr($2, 12), $2, getDefineValue(), "")
next
}
/#define[ \t]*BRLAPI_KEY_TYPE_/ {
apiType(substr($2, 17), $2, getDefineValue(), "")
next
}
/#define[ \t]*BRLAPI_KEY_SYM_/ {
apiKey(substr($2, 16), $2, getDefineValue(), "")
next
}
|
Define KEY_MAX for Python. (dm)
|
Define KEY_MAX for Python. (dm)
git-svn-id: 30a5f035a20f1bc647618dbad7eea2a951b61b7c@2776 91a5dbb7-01b9-0310-9b5f-b28072856b6e
|
Awk
|
lgpl-2.1
|
brltty/brltty,brltty/brltty,brltty/brltty,brltty/brltty,brltty/brltty,brltty/brltty
|
feb107421f91c5001dc3c580aa3a4ea237865f99
|
doxy/githublabels.awk
|
doxy/githublabels.awk
|
#!/usr/bin/awk -f
#
# Adds github compatible labels to level 1 and 2 markdown headings
# in underline style.
#
#
# Substitute github references with doxygen references.
#
/\(#[_a-z0-9-]*\)/ {
gsub(/\(#[_a-z0-9-]*\)/, "<__REF__&__REF__>")
gsub(/<__REF__\(#/, "(@ref ")
gsub(/\)__REF__>/, ")")
}
#
# If this line is underlining a heading, add a label to the previous
# line.
#
line && (/^===*$/ || /^---*$/) {
id = tolower(line)
gsub(/[^_a-z0-9]+/, "-", id)
line = line " {#" id "}"
}
#
# Print the previous line, after a label might have been added.
#
{print line}
#
# Remember this line when scanning the next one for underlining.
#
{line = $0}
#
# Print the last line.
#
END { print }
|
#!/usr/bin/awk -f
#
# Adds github compatible labels to level 1 and 2 markdown headings
# in underline style.
#
#
# Get file name prefix for references.
#
filename != FILENAME {
filename = FILENAME
# strip path
"pwd" | getline path
path = path "/"
prefix = substr(filename, 1, length(path)) == path \
? substr(filename, length(path) + 1) \
: filename
sub(/\.[^.]*$/, "", prefix)
gsub(/[^_a-z0-9]+/, "-", prefix)
prefix = "md_" prefix "_"
}
#
# Substitute github references with doxygen references.
#
/\(#[_a-z0-9-]*\)/ {
gsub(/\(#[_a-z0-9-]*\)/, "<__REF__&__REF__>")
gsub(/<__REF__\(#/, "(@ref " prefix)
gsub(/\)__REF__>/, ")")
}
#
# If this line is underlining a heading, add a label to the previous
# line.
#
line && (/^===*$/ || /^---*$/) {
id = tolower(line)
gsub(/[^_a-z0-9]+/, "-", id)
line = line " {#" prefix id "}"
}
#
# Print the previous line, after a label might have been added.
#
{print line}
#
# Remember this line when scanning the next one for underlining.
#
{line = $0}
#
# Print the last line.
#
END { print }
|
Use a file name prefix for generated labels
|
Use a file name prefix for generated labels
This ensures labels are unique within the wider context of the doxygen
documentation.
|
Awk
|
isc
|
lonkamikaze/powerdxx,lonkamikaze/powerdxx
|
e3be4fe3c6be4dcdffb98f060eaf0422a0775fc2
|
bin/stats-aggregate.awk
|
bin/stats-aggregate.awk
|
BEGIN {
}
function extension(str){
n = split(str, parts, ".")
if (n == 1){
return "<NO EXTENSION>"
} else {
return parts[n]
}
}
$2 != "total" {
by_type[extension($2)] += $1
}
$2 ~ "CMakeLists.txt" {
#cmake should not count as text
by_type["txt"] -= $1
by_type["cmake"] += $1
}
$2 ~ "test" {
by_type[extension($2)] -= $1
by_type["TEST"] += $1
}
END {
# join up cpp types
by_type["cpp"] += by_type["hpp"]
delete by_type["hpp"]
#get rid of some filetypes I dont care about
delete by_type["gitignore"]
delete by_type["jpg"]
delete by_type["png"]
delete by_type["ttf"]
delete by_type["pdf"]
#print each extension, collect the total
total=0
for (x in by_type) {
if (by_type[x] > 0) {
total += by_type[x]
print (x, by_type[x])
}
}
print("Total:", total)
}
|
BEGIN {
}
function getExtension(str){
n = split(str, parts, ".")
if (n == 1){
return "<NO EXTENSION>"
} else {
return parts[n]
}
}
$2 != "total" {
by_type[getExtension($2)] += $1
}
$2 ~ "CMakeLists.txt" {
#cmake should not count as text
by_type["txt"] -= $1
by_type["cmake"] += $1
}
$2 ~ "test" {
by_type[getExtension($2)] -= $1
by_type["TEST"] += $1
}
END {
# join up cpp types
by_type["cpp"] += by_type["hpp"]
delete by_type["hpp"]
#get rid of some filetypes I dont care about
delete by_type["gitignore"]
delete by_type["jpg"]
delete by_type["png"]
delete by_type["ttf"]
delete by_type["pdf"]
#print each getExtension, collect the total
total=0
for (x in by_type) {
if (by_type[x] > 0) {
total += by_type[x]
print (x, by_type[x])
}
}
print("Total:", total)
}
|
Fix an awk script that doesn't seem to be very portable
|
Fix an awk script that doesn't seem to be very portable
|
Awk
|
mit
|
jargv/dotfiles,jargv/dotfiles,jargv/dotfiles
|
2422c97e6126bfb3415660d0e5a005002d73bce4
|
common/process_manifest.awk
|
common/process_manifest.awk
|
{ content = $1 ~ /^(content|skin|locale)$/ }
content && $NF ~ /^[a-z]/ { $NF = "/" name "/" $NF }
content {
sub(/^\.\./, "", $NF);
$NF = "jar:chrome/" name ".jar!" $NF
}
{
sub("^\\.\\./liberator/", "", $NF)
print
}
|
{ content = $1 ~ /^(content|skin|locale)$/ }
content && $NF ~ /^[a-z]/ { $NF = "/" name "/" $NF }
content {
sub(/^\.\./, "", $NF);
$NF = "jar:chrome/" name ".jar!" $NF
}
{
sub("^\\.\\./common/", "", $NF)
print
}
|
Fix the modules path in the xpi chrome.manifests
|
Fix the modules path in the xpi chrome.manifests
|
Awk
|
mit
|
moonshadow/dactyl,5digits/dactyl,madand/pentadactyl-pm,5digits/dactyl,madand/pentadactyl-pm,airodactyl/dactyl,derenio/vimperator-labs,zklinger/vimperator-labs,5digits/dactyl,Kjwon15/dactyl,nathyong/dactyl,Evidlo/vimperator-labs,moonshadow/dactyl,airodactyl/dactyl,nullren/vimperator-labs,invl/dactyl,stemar94/vimperator-labs,nathyong/dactyl,invl/dactyl,Kjwon15/dactyl,invl/dactyl,moonshadow/dactyl,airodactyl/dactyl,invl/dactyl,5digits/dactyl,madand/pentadactyl-pm,moonshadow/dactyl,Sheile/vimperator-labs,mcarton/vimperator-labs,airodactyl/airodactyl,paretje/vimperator-labs,Quicksaver/vimperator-labs,Kjwon15/dactyl,derenio/vimperator-labs,seanmorton/vimperator-labs,moonshadow/dactyl,Sheile/vimperator-labs,Quicksaver/vimperator-labs,Kjwon15/dactyl,nathyong/dactyl,nathyong/dactyl,seanmorton/vimperator-labs,paretje/vimperator-labs,Evidlo/vimperator-labs,invl/dactyl,invl/dactyl,mcarton/vimperator-labs,nullren/vimperator-labs,nathyong/dactyl,airodactyl/airodactyl,Kjwon15/dactyl,madand/pentadactyl-pm,moonshadow/dactyl,airodactyl/dactyl,5digits/dactyl,stemar94/vimperator-labs,madand/pentadactyl-pm,madand/pentadactyl-pm,5digits/dactyl,Kjwon15/dactyl,nathyong/dactyl,airodactyl/dactyl,zklinger/vimperator-labs,airodactyl/dactyl
|
c08fde42c507af04f6d4f506cff6379be42ecfe6
|
getAvg.awk
|
getAvg.awk
|
# Generate MHz_TV_Shows_minutes.csv by processing SHORT_SPREADSHEET to figure
# average episode length
#
BEGIN {
FS = "\t"
}
/^Title/ {
printf ("%s\t%s\t%s\t%s\tAvg Len\t%s\t%s\t%s\t%s\t%s\n",
$1,$2,$3,$4,$5,$6,$7,$8,$9)
}
/=HYPERLINK/ {
dur=$4
sub (/h/,"",dur)
sub (/m/,"",dur)
split (dur,fld," ")
eplen = (fld[1]*60+fld[2])/$3
printf ("%s\t%s\t%s\t%s\t%d\t%s\t%s\t%s\t%s\t%s\n",
$1,$2,$3,$4,eplen,$5,$6,$7,$8,$9)
}
|
# Generate MHz_TV_Shows_minutes.csv by processing SHORT_SPREADSHEET to figure
# average episode length
#
BEGIN {
FS = "\t"
}
/^Title/ {
printf ("%s\t%s\t%s\t%s\tAvg Len\t%s\t%s\t%s\t%s\t%s\n",
$1,$2,$3,$4,$5,$6,$7,$8,$9)
}
/=HYPERLINK/ {
dur=$4
sub (/h/,"",dur)
sub (/m/,"",dur)
split (dur,fld," ")
eplen = (fld[1]*60+fld[2])/$3
printf ("%s\t%s\t%s\t%s\t%d\t%s\t%s\t%s\t%s\t%s\n",
$1,$2,$3,$4,eplen,$5,$6,$7,$8,$9)
}
/^Non-blank values/ || /^Total seasons & episodes/ { print }
|
Print last two lines in Avg
|
Print last two lines in Avg
|
Awk
|
mit
|
Monty/WhatsStreamingToday,Monty/WhatsStreamingToday
|
6d7701c198590f8d727f038e1ba40b1e57c95ef6
|
generateversionscript.awk
|
generateversionscript.awk
|
BEGIN {
print "V1.0 {";
print " global:";
}
{
# Remove the CR character in case the sources are mapped from
# a Windows share and contain CRLF line endings
gsub(/\r/,"", $0);
# Skip empty lines and comment lines starting with semicolon
if (NF && !match($0, /^[:space:]*;/))
{
print " " $0 ";";
}
}
END {
print " local: *;"
print "};";
}
|
BEGIN {
print "V1.0 {";
print " global:";
}
{
# Remove the CR character in case the sources are mapped from
# a Windows share and contain CRLF line endings
gsub(/\r/,"", $0);
# Skip empty lines and comment lines starting with semicolon
if (NF && !match($0, /^[ \t]*;/))
{
print " " $0 ";";
}
}
END {
print " local: *;"
print "};";
}
|
Handle mscorwks_unixexports.src with better regexp operator for compatibility
|
Handle mscorwks_unixexports.src with better regexp operator for compatibility
ver3:
According to the gawk manual, The '\S' operator (as shorthand for '[^[:space:]]')
matches any character that is not whitespace. However, '[ \t]' is better than
'\S' for Mac OSX.
(source - https://www.gnu.org/software/gawk/manual/html_node/GNU-Regexp-Operators.html )
ver2:
With ver1, the build-break is caused by different awk versions (by @jkotas).
(Revert PR - https://github.com/dotnet/coreclr/pull/4005)
To resolve the limitation of the ver1, @janvorli proposed that the
\S expression is better than [:space:] for the most compatible solution.
There are a lot of different AWK software (e.g. awk, gawk, mawk, nawk, etc)
and versions among the popular Linux distributions. This patch is a simply
way to handle 'mscorwks_unixexports.src' file with \S operator for more
compatibility amon the different awk versions.
ver1:
It's must be modified by gawk implementation that check it exactly
as a plain character (e.g., space, alnum) within the bracket expression
at ./coreclr/generateversionscript.awk. The [[:space:]] is more appropriate than
the [:space:]]. (PR - https://github.com/dotnet/coreclr/pull/3943)
Signed-off-by: Geunsik Lim <[email protected]>
Signed-off-by: MyungJoo Ham <[email protected]>
Signed-off-by: Prajwal A N <[email protected]>
|
Awk
|
mit
|
Dmitry-Me/coreclr,jhendrixMSFT/coreclr,LLITCHEV/coreclr,pgavlin/coreclr,mmitche/coreclr,naamunds/coreclr,James-Ko/coreclr,alexperovich/coreclr,jhendrixMSFT/coreclr,naamunds/coreclr,alexperovich/coreclr,ramarag/coreclr,gkhanna79/coreclr,bartdesmet/coreclr,martinwoodward/coreclr,botaberg/coreclr,wtgodbe/coreclr,krytarowski/coreclr,ruben-ayrapetyan/coreclr,rartemev/coreclr,ruben-ayrapetyan/coreclr,sejongoh/coreclr,schellap/coreclr,wateret/coreclr,mmitche/coreclr,tijoytom/coreclr,yizhang82/coreclr,botaberg/coreclr,cshung/coreclr,ZhichengZhu/coreclr,sagood/coreclr,botaberg/coreclr,krk/coreclr,sejongoh/coreclr,cshung/coreclr,jhendrixMSFT/coreclr,sagood/coreclr,russellhadley/coreclr,cydhaselton/coreclr,mskvortsov/coreclr,AlexGhiondea/coreclr,ramarag/coreclr,JosephTremoulet/coreclr,vinnyrom/coreclr,yizhang82/coreclr,hseok-oh/coreclr,pgavlin/coreclr,vinnyrom/coreclr,LLITCHEV/coreclr,alexperovich/coreclr,KrzysztofCwalina/coreclr,qiudesong/coreclr,ramarag/coreclr,Dmitry-Me/coreclr,ramarag/coreclr,wtgodbe/coreclr,wtgodbe/coreclr,shahid-pk/coreclr,LLITCHEV/coreclr,martinwoodward/coreclr,manu-silicon/coreclr,bartonjs/coreclr,KrzysztofCwalina/coreclr,dasMulli/coreclr,botaberg/coreclr,manu-silicon/coreclr,poizan42/coreclr,kyulee1/coreclr,neurospeech/coreclr,yizhang82/coreclr,ruben-ayrapetyan/coreclr,krk/coreclr,krytarowski/coreclr,poizan42/coreclr,wateret/coreclr,SlavaRa/coreclr,kyulee1/coreclr,botaberg/coreclr,mskvortsov/coreclr,schellap/coreclr,wtgodbe/coreclr,poizan42/coreclr,pgavlin/coreclr,YongseopKim/coreclr,roncain/coreclr,martinwoodward/coreclr,shahid-pk/coreclr,russellhadley/coreclr,ramarag/coreclr,parjong/coreclr,jhendrixMSFT/coreclr,dpodder/coreclr,SlavaRa/coreclr,AlexGhiondea/coreclr,ragmani/coreclr,neurospeech/coreclr,russellhadley/coreclr,schellap/coreclr,pgavlin/coreclr,alexperovich/coreclr,cydhaselton/coreclr,dasMulli/coreclr,jamesqo/coreclr,LLITCHEV/coreclr,Dmitry-Me/coreclr,roncain/coreclr,roncain/coreclr,shahid-pk/coreclr,mmitche/coreclr,cshung/coreclr,SlavaRa/coreclr,rartemev/coreclr,andschwa/coreclr,andschwa/coreclr,alexperovich/coreclr,neurospeech/coreclr,jhendrixMSFT/coreclr,cshung/coreclr,shahid-pk/coreclr,yeaicc/coreclr,roncain/coreclr,cshung/coreclr,bartdesmet/coreclr,naamunds/coreclr,cydhaselton/coreclr,cmckinsey/coreclr,cmckinsey/coreclr,neurospeech/coreclr,andschwa/coreclr,naamunds/coreclr,JonHanna/coreclr,ZhichengZhu/coreclr,JosephTremoulet/coreclr,YongseopKim/coreclr,krk/coreclr,sagood/coreclr,naamunds/coreclr,qiudesong/coreclr,dpodder/coreclr,qiudesong/coreclr,bartonjs/coreclr,schellap/coreclr,bartdesmet/coreclr,mmitche/coreclr,JosephTremoulet/coreclr,botaberg/coreclr,rartemev/coreclr,neurospeech/coreclr,wateret/coreclr,wtgodbe/coreclr,sjsinju/coreclr,AlexGhiondea/coreclr,schellap/coreclr,hseok-oh/coreclr,shahid-pk/coreclr,sjsinju/coreclr,mskvortsov/coreclr,ZhichengZhu/coreclr,naamunds/coreclr,hseok-oh/coreclr,YongseopKim/coreclr,wateret/coreclr,Dmitry-Me/coreclr,krytarowski/coreclr,kyulee1/coreclr,mskvortsov/coreclr,pgavlin/coreclr,tijoytom/coreclr,cmckinsey/coreclr,jhendrixMSFT/coreclr,krytarowski/coreclr,josteink/coreclr,dasMulli/coreclr,James-Ko/coreclr,ZhichengZhu/coreclr,JonHanna/coreclr,josteink/coreclr,manu-silicon/coreclr,gkhanna79/coreclr,Dmitry-Me/coreclr,schellap/coreclr,parjong/coreclr,cmckinsey/coreclr,martinwoodward/coreclr,jamesqo/coreclr,sjsinju/coreclr,jamesqo/coreclr,tijoytom/coreclr,JosephTremoulet/coreclr,KrzysztofCwalina/coreclr,sejongoh/coreclr,jhendrixMSFT/coreclr,shahid-pk/coreclr,dasMulli/coreclr,parjong/coreclr,tijoytom/coreclr,manu-silicon/coreclr,JonHanna/coreclr,James-Ko/coreclr,qiudesong/coreclr,mmitche/coreclr,bartdesmet/coreclr,martinwoodward/coreclr,yizhang82/coreclr,gkhanna79/coreclr,JonHanna/coreclr,bartonjs/coreclr,sejongoh/coreclr,mskvortsov/coreclr,cydhaselton/coreclr,russellhadley/coreclr,bartonjs/coreclr,andschwa/coreclr,dasMulli/coreclr,neurospeech/coreclr,martinwoodward/coreclr,wtgodbe/coreclr,andschwa/coreclr,manu-silicon/coreclr,mskvortsov/coreclr,wateret/coreclr,manu-silicon/coreclr,krytarowski/coreclr,russellhadley/coreclr,dpodder/coreclr,LLITCHEV/coreclr,cshung/coreclr,gkhanna79/coreclr,pgavlin/coreclr,ragmani/coreclr,roncain/coreclr,parjong/coreclr,schellap/coreclr,YongseopKim/coreclr,ragmani/coreclr,yeaicc/coreclr,josteink/coreclr,cmckinsey/coreclr,dpodder/coreclr,hseok-oh/coreclr,vinnyrom/coreclr,manu-silicon/coreclr,KrzysztofCwalina/coreclr,jamesqo/coreclr,krk/coreclr,ramarag/coreclr,sejongoh/coreclr,cmckinsey/coreclr,dpodder/coreclr,cydhaselton/coreclr,roncain/coreclr,bartonjs/coreclr,gkhanna79/coreclr,poizan42/coreclr,James-Ko/coreclr,sagood/coreclr,sejongoh/coreclr,krk/coreclr,cmckinsey/coreclr,ZhichengZhu/coreclr,krk/coreclr,dpodder/coreclr,rartemev/coreclr,YongseopKim/coreclr,andschwa/coreclr,rartemev/coreclr,LLITCHEV/coreclr,poizan42/coreclr,James-Ko/coreclr,Dmitry-Me/coreclr,yeaicc/coreclr,KrzysztofCwalina/coreclr,hseok-oh/coreclr,yizhang82/coreclr,yeaicc/coreclr,josteink/coreclr,sagood/coreclr,bartdesmet/coreclr,AlexGhiondea/coreclr,yizhang82/coreclr,LLITCHEV/coreclr,roncain/coreclr,KrzysztofCwalina/coreclr,Dmitry-Me/coreclr,cydhaselton/coreclr,bartdesmet/coreclr,gkhanna79/coreclr,AlexGhiondea/coreclr,mmitche/coreclr,bartdesmet/coreclr,josteink/coreclr,KrzysztofCwalina/coreclr,AlexGhiondea/coreclr,ZhichengZhu/coreclr,vinnyrom/coreclr,tijoytom/coreclr,ragmani/coreclr,dasMulli/coreclr,jamesqo/coreclr,andschwa/coreclr,yeaicc/coreclr,bartonjs/coreclr,yeaicc/coreclr,yeaicc/coreclr,parjong/coreclr,ramarag/coreclr,hseok-oh/coreclr,vinnyrom/coreclr,SlavaRa/coreclr,parjong/coreclr,shahid-pk/coreclr,alexperovich/coreclr,sjsinju/coreclr,krytarowski/coreclr,SlavaRa/coreclr,sejongoh/coreclr,martinwoodward/coreclr,dasMulli/coreclr,kyulee1/coreclr,poizan42/coreclr,wateret/coreclr,JonHanna/coreclr,tijoytom/coreclr,JonHanna/coreclr,bartonjs/coreclr,SlavaRa/coreclr,qiudesong/coreclr,sagood/coreclr,ragmani/coreclr,ragmani/coreclr,ruben-ayrapetyan/coreclr,ZhichengZhu/coreclr,ruben-ayrapetyan/coreclr,YongseopKim/coreclr,kyulee1/coreclr,vinnyrom/coreclr,josteink/coreclr,rartemev/coreclr,ruben-ayrapetyan/coreclr,James-Ko/coreclr,vinnyrom/coreclr,JosephTremoulet/coreclr,sjsinju/coreclr,qiudesong/coreclr,jamesqo/coreclr,josteink/coreclr,russellhadley/coreclr,naamunds/coreclr,kyulee1/coreclr,JosephTremoulet/coreclr,sjsinju/coreclr
|
ff1695e8ee05a0a584e451f076ecec31b007487e
|
mk/script/nm2c.awk
|
mk/script/nm2c.awk
|
#
# Converts the output of 'nm' into a C source containing an array of symbols
# that correspond to functions (t and T in terms of 'nm').
#
# Usage:
# nm -n image | awk -f nm2c.awk
#
# Date: Aug 28, 2012
# Author: Eldar Abusalimov
#
BEGIN {
print "/* Auto-generated file. Do not edit. */";
print "";
print "#include <debug/symbol.h>";
print "#include <stddef.h>";
print "";
print "const struct symbol __symbol_table[] = {";
}
/^[0-9a-fA-F]* [tT]/ {
printf "\t{ (void *) 0x%s, \"%s\" },\n", $1, $3;
}
END {
print "};";
print "const size_t __symbol_table_size =";
print "\tsizeof(__symbol_table) / sizeof(__symbol_table[0]);";
print "";
}
|
#
# Converts the output of 'nm' into a C source containing an array of symbols
# that correspond to functions (t and T in terms of 'nm').
#
# Usage:
# nm -n image | awk -f nm2c.awk
#
# Date: Aug 28, 2012
# Author: Eldar Abusalimov
#
BEGIN {
print "/* Auto-generated file. Do not edit. */";
print "";
print "#include <debug/symbol.h>";
print "#include <stddef.h>";
print "";
print "const struct symbol __symbol_table[] = {";
}
/^[0-9a-fA-F]* [tT]/ {
split($0,a," [tT] ");
printf "\t{ (void *) 0x%s, \"%s\" },\n", $1, a[2];
}
END {
print "};";
print "const size_t __symbol_table_size =";
print "\tsizeof(__symbol_table) / sizeof(__symbol_table[0]);";
print "";
}
|
Fix for symbol table demangled names with spaces
|
c++: Fix for symbol table demangled names with spaces
|
Awk
|
bsd-2-clause
|
gzoom13/embox,abusalimov/embox,embox/embox,Kefir0192/embox,Kefir0192/embox,abusalimov/embox,Kakadu/embox,vrxfile/embox-trik,abusalimov/embox,Kefir0192/embox,mike2390/embox,mike2390/embox,embox/embox,mike2390/embox,mike2390/embox,gzoom13/embox,vrxfile/embox-trik,Kefir0192/embox,Kakadu/embox,Kakadu/embox,abusalimov/embox,Kakadu/embox,vrxfile/embox-trik,vrxfile/embox-trik,gzoom13/embox,Kefir0192/embox,gzoom13/embox,Kakadu/embox,gzoom13/embox,Kakadu/embox,abusalimov/embox,gzoom13/embox,gzoom13/embox,Kefir0192/embox,Kefir0192/embox,embox/embox,embox/embox,embox/embox,vrxfile/embox-trik,embox/embox,vrxfile/embox-trik,Kakadu/embox,abusalimov/embox,mike2390/embox,mike2390/embox,mike2390/embox,vrxfile/embox-trik
|
c9be6e5fdea9ffb5ad3572a1d0e778ae8176ea8f
|
caldaily.awk
|
caldaily.awk
|
BEGIN {
FS="\n"
OFS=""
ORS="\n"
print "#!/bin/sh"
print " "
}
# blank lines
/^$/ { next }
# record header
$1 ~ /^\*\*\*\*/ {
next
}
# summary field
$1 ~ /^[ ]*summary\:/ {
gsub(/\r/,"");
idx = match($1, /summary\:(.*)/)
print "SUMMARY=\"" substr($1, idx + 9) "\""
next
}
# startdate field
$1 ~ /^[ ]*startdate\: / {
match($1, /startdate\: /)
print "STARTDATE=\"`date -d '" substr($1, RSTART + RLENGTH) "-000' '+%a %e %b %R'`\""
next
}
# vcalendar start tag
$1 ~ /^[ ]*calendardata\: / {
gsub(/\r/,"");
match($1, /calendardata\: /)
print "echo \"" substr($1, RSTART + RLENGTH) "\" >event.ics"
next
}
# vcalendar end tag
$1 ~ /^END\:VCALENDAR/ {
gsub(/\r/,"");
print "echo \"" $1 "\" >>event.ics"
print "mpack -s \"$SUMMARY - $STARTDATE\" event.ics $1"
print ""
next
}
# vcalendar body
{
gsub(/\r/,"");
print "echo \"" $0 "\" >> event.ics"
}
|
BEGIN {
FS="\n";
OFS="";
ORS="\n";
print "#!/bin/sh";
print "#";
}
# blank lines
/^$/ {
next;
}
# record header
$1 ~ /^\*\*\*\*/ {
next;
}
# summary field
$1 ~ /^[ ]*summary\:/ {
gsub(/\r/,"");
idx = match($1, /summary\:(.*)/);
print "SUMMARY=\"" substr($1, idx + 9) "\"";
next;
}
# startdate field
$1 ~ /^[ ]*startdate\: / {
match($1, /startdate\: /);
print "STARTDATE=\"`date -d '" substr($1, RSTART + RLENGTH) "-000' '+%a %e %b %R'`\"";
next;
}
# vcalendar start tag
$1 ~ /^[ ]*calendardata\: / {
gsub(/\r/,"");
match($1, /calendardata\: /);
print "ICS=$(mktemp --suffix=.ics)";
print "cat > \"${ICS}\" <<EOF";
print substr($1, RSTART + RLENGTH);
next;
}
# vcalendar end tag
$1 ~ /^END\:VCALENDAR/ {
gsub(/\r/,"");
print $1;
print "EOF";
print "mpack -s \"$SUMMARY - $STARTDATE\" \"${ICS}\" $1";
print "#";
next;
}
# vcalendar body
{
gsub(/\r/,"");
print $0;
}
|
Improve shell script (thx 'Barmic')
|
Improve shell script (thx 'Barmic')
|
Awk
|
bsd-3-clause
|
kianby/owncloud_calremind
|
ed88c7b23be0ad22af0f5504c3d447c75c8a2773
|
pairs.awk
|
pairs.awk
|
#!/usr/bin/awk -f
BEGIN {
FS = OFS = "\t";
}
{
len = split($3, words, ", ");
if (length(N) > 0 && len >= N) next;
for (i = 1; i <= len - 1; i++) {
for (j = i + 1; j <= len; j++) {
print words[i], words[j], ORS, words[j], words[i] | "sort --parallel=$(nproc) -us";
}
}
}
|
#!/usr/bin/awk -f
BEGIN {
FS = "\t";
OFS = "";
}
{
len = split($3, words, ", ");
if (length(N) > 0 && len >= N) next;
for (i = 1; i <= len - 1; i++) {
for (j = i + 1; j <= len; j++) {
print words[i], FS, words[j], ORS, words[j], FS, words[i] | "sort --parallel=$(nproc) -S1G -us";
}
}
}
|
Fix the pair generation and also speed up the sorting
|
Fix the pair generation and also speed up the sorting
|
Awk
|
mit
|
dustalov/watset,dustalov/watset
|
c8c7573342d2576a1a1a00e8960eef5bbb1904df
|
recipes-core/systemd/systemd-units/candump.awk
|
recipes-core/systemd/systemd-units/candump.awk
|
{
if (1==NR)
{
startTimestamp = substr($1, 2, length($1) - 2)
printf(";$FILEVERSION=1.3\n")
printf(";$STARTTIME=%u.%u\n", mktime(strftime("%Y %m %d 0 0 0", startTimestamp)) / 86400 + 25569, \
10000000000 / 86400 * (mktime(strftime("%Y %m %d %H %M %S", startTimestamp)) - mktime(strftime("%Y %m %d 0 0 0", startTimestamp))))
}
printf("%u) %.3f 1 Rx %s - %s", NR, (substr($1, 2, length($1) - 2) - startTimestamp) * 1000, $3, substr($4, 2, length($4) - 2))
if (5<=NF)
{
for(i=5;i<=NF;i++)
{
printf " "$i
}
}
printf "\n"
}
|
{
if (1==NR)
{
startTimestamp = substr($1, 2, length($1) - 2)
printf(";$FILEVERSION=1.3\n")
printf(";$STARTTIME=%u.%u\n", mktime(strftime("%Y %m %d 0 0 0", startTimestamp)) / 86400 + 25569, \
10000000000 / 86400 * (mktime(strftime("%Y %m %d %H %M %S", startTimestamp)) - mktime(strftime("%Y %m %d 0 0 0", startTimestamp))))
currentTimeOffset = 0.0
}
else
{
previousTimeOffset = currentTimeOffset
currentTimestamp = substr($1, 2, length($1) - 2)
currentTimeOffset = currentTimestamp - startTimestamp
if (currentTimeOffset < 0)
{
startTimestamp = currentTimestamp + currentTimeOffset
currentTimeOffset = previousTimeOffset
}
}
printf("%u) %.3f 1 Rx %s - %s", NR, currentTimeOffset * 1000, $3, substr($4, 2, length($4) - 2))
if (5<=NF)
{
for(i=5;i<=NF;i++)
{
printf " "$i
}
}
printf "\n"
}
|
Handle cases where system time is adjusted backwards (e.g. by NTP).
|
Handle cases where system time is adjusted backwards (e.g. by NTP).
|
Awk
|
mit
|
tramseyer/meta-medusa-dist,tramseyer/meta-medusa-dist,tramseyer/meta-medusa-dist,tramseyer/meta-medusa-dist
|
5aebe46edd0d6a35fb6ef94f6b7720e6dc19442a
|
GLib-2.0.awk
|
GLib-2.0.awk
|
#!/usr/bin/awk
#
# Patch the generated wrapper Swift code to handle special cases
#
BEGIN { etpInit = 0 }
/public convenience init.T: ErrorTypeProtocol./ {
etpInit = 1
print " /// Convenience copy constructor, creating a unique copy"
print " /// of the passed in Error. Needs to be freed using free()"
print " /// (automatically done in deinit if you use ErrorType)."
}
/self.init.other.ptr./ {
if (etpInit) {
print " self.init(g_error_copy(other.ptr))"
etpInit = 0
next
}
}
/no reference counting for GError, cannot ref/ { next }
/no reference counting for GError, cannot unref/ {
print " g_error_free(error_ptr)"
next
}
/ -> GIConv {/, /^}/ {
sub(/GIConv {/,"GIConv? {")
sub(/return rv/,"return rv == unsafeBitCast(-1, to: GIConv.self) ? nil : rv")
}
// { print }
|
#!/usr/bin/awk
#
# Patch the generated wrapper Swift code to handle special cases
#
BEGIN { etpInit = 0 ; vaptrptr = 0 }
/public convenience init.T: ErrorTypeProtocol./ {
etpInit = 1
print " /// Convenience copy constructor, creating a unique copy"
print " /// of the passed in Error. Needs to be freed using free()"
print " /// (automatically done in deinit if you use ErrorType)."
}
/self.init.other.ptr./ {
if (etpInit) {
print " self.init(g_error_copy(other.ptr))"
etpInit = 0
next
}
}
/no reference counting for GError, cannot ref/ { next }
/no reference counting for GError, cannot unref/ {
print " g_error_free(error_ptr)"
next
}
/ -> GIConv {/, /^}/ {
sub(/GIConv {/,"GIConv? {")
sub(/return rv/,"return rv == unsafeBitCast(-1, to: GIConv.self) ? nil : rv")
}
/UnsafeMutablePointer.CVaListPointer/ {
vaptrptr = 1
print "#if !os(Linux)"
}
/^$/ {
if (vaptrptr) {
print "#endif"
vaptrptr = 0
}
}
/\/\/\// {
if (vaptrptr) {
print "#endif"
vaptrptr = 0
}
}
// { print }
|
Mark CVaListPointer array generators as unavailable on Linux
|
Mark CVaListPointer array generators as unavailable on Linux
|
Awk
|
bsd-2-clause
|
rhx/SwiftGLib,rhx/SwiftGLib,rhx/SwiftGLib
|
11e41c0eef91d9b8fdbd8fb25795be915b29414f
|
usr.sbin/ndc/ndcedit.awk
|
usr.sbin/ndc/ndcedit.awk
|
# $Id: ndcedit.awk,v 1.4 1997/02/22 16:08:19 peter Exp $
NR == 3 {
print "#"
print "# This file is generated automatically, do not edit it here!"
print "# Please change src/usr.sbin/ndc/ndcedit.awk instead"
print "#"
print ""
print "# If there is a global system configuration file, suck it in."
print "if [ -f /etc/rc.conf ]; then"
print "\t. /etc/rc.conf"
print "fi\n"
}
{
if ($1 == "named") {
printf "\t\t# $namedflags is imported from /etc/rc.conf\n"
printf "\t\tif [ \"X${named_flags}\" != X\"NO\" ]; then\n"
printf "\t\t\tnamed ${named_flags} && {\n"
getline
printf "\t%s\n", $0
getline
printf "\t%s\n", $0
getline
printf "\t%s\n", $0
printf "\t\tfi\n"
} else {
if (/PATH=/) {
gsub(":/usr/ucb:", ":", $0);
if (!/export/) {
$0=$0"\nexport PATH";
}
}
print;
}
}
|
# $Id: ndcedit.awk,v 1.5 1997/05/27 07:19:57 jkh Exp $
NR == 3 {
print "#"
print "# This file is generated automatically, do not edit it here!"
print "# Please change src/usr.sbin/ndc/ndcedit.awk instead"
print "#"
print ""
print "# If there is a global system configuration file, suck it in."
print "if [ -f /etc/rc.conf ]; then"
print "\t. /etc/rc.conf"
print "fi\n"
}
{
if ($1 == "named") {
printf "\t\t# $named_flags is imported from /etc/rc.conf\n"
printf "\t\tif [ \"X${named_enable}\" = X\"YES\" ]; then\n"
printf "\t\t\tnamed ${named_flags} && {\n"
getline
printf "\t%s\n", $0
getline
printf "\t%s\n", $0
getline
printf "\t%s\n", $0
printf "\t\tfi\n"
} else {
if (/PATH=/) {
gsub(":/usr/ucb:", ":", $0);
if (!/export/) {
$0=$0"\nexport PATH";
}
}
print;
}
}
|
Check named_enable rather than just named_flags. PR: 3893 (sort of)
|
Check named_enable rather than just named_flags.
PR: 3893 (sort of)
|
Awk
|
bsd-3-clause
|
jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase
|
c0ee463cc53b2bfa9c7b3f45e1b2dca4a45df93a
|
buildBBoxScrapersFrom-webscraper.awk
|
buildBBoxScrapersFrom-webscraper.awk
|
BEGIN {
FS = "\""
}
/\/us\/movie\// {
numMovies += 1
shortURL = $6
printf ("%s \"https://www.britbox.com%s\"", trailingComma, shortURL) >> EPISODES_JSON_FILE
trailingComma = ",\n"
}
/\/us\/show\// {
numShows += 1
shortURL = $6
printf ("%s \"https://www.britbox.com%s\"", trailingComma, shortURL) >> EPISODES_JSON_FILE
printf ("%s \"https://www.britbox.com%s\"", trailingComma, shortURL) >> SEASONS_JSON_FILE
trailingComma = ",\n"
}
END {
print "" >> EPISODES_JSON_FILE
print "" >> SEASONS_JSON_FILE
print "==> Found " numMovies " movies"
print "==> Found " numShows " shows"
}
|
BEGIN {
FS = "\""
}
/\/us\/movie\// {
numMovies += 1
shortURL = $6
printf ("%s \"https://www.britbox.com%s\"", trailingEpisodesComma, shortURL) \
>> EPISODES_JSON_FILE
trailingEpisodesComma = ",\n"
}
/\/us\/show\// {
numShows += 1
shortURL = $6
printf ("%s \"https://www.britbox.com%s\"", trailingEpisodesComma, shortURL) \
>> EPISODES_JSON_FILE
trailingEpisodesComma = ",\n"
printf ("%s \"https://www.britbox.com%s\"", trailingSeasonsComma, shortURL) \
>> SEASONS_JSON_FILE
trailingSeasonsComma = ",\n"
}
END {
print "" >> EPISODES_JSON_FILE
print "" >> SEASONS_JSON_FILE
print "==> Found " numMovies " movies"
print "==> Found " numShows " shows"
}
|
Fix extra comma in json file
|
Fix extra comma in json file
|
Awk
|
mit
|
Monty/WhatsStreamingToday,Monty/WhatsStreamingToday
|
1dbeb18b49407a0bcc466390f0c54ec44b80a1a2
|
release/SuperTMXMerge.bat
|
release/SuperTMXMerge.bat
|
@echo off
start /min java -jar %~dp0SuperTMXMerge.jar %*
|
@echo off
start /b /wait java -jar %~dp0SuperTMXMerge.jar %*
|
Improve Windows .bat launcher: waits for close, no console
|
Improve Windows .bat launcher: waits for close, no console
|
Batchfile
|
lgpl-2.1
|
amake/SuperTMXMerge
|
7f528b24dd1fa50f1983d557531b82e66d295eb8
|
build.bat
|
build.bat
|
SET PATH=C:\Qt\5.5\mingw492_32\bin;%PATH%
SET PATH=C:\Qt\Tools\mingw492_32\bin;%PATH%
qmake.exe -makefile -win32 FLViz.pro
mingw32-make.exe clean
mingw32-make.exe mocclean
mingw32-make.exe
mingw32-make.exe distclean
|
SET PATH=C:\Qt\5.5\mingw492_32\bin;%PATH%
SET PATH=C:\Qt\Tools\mingw492_32\bin;%PATH%
qmake.exe -makefile -win32 FLViz.pro
mingw32-make.exe clean
mingw32-make.exe mocclean
mingw32-make.exe
REM mingw32-make.exe distclean
|
Comment out removing stuff for now.
|
Comment out removing stuff for now.
|
Batchfile
|
bsd-2-clause
|
wkoszek/flviz,wkoszek/flviz,wkoszek/flviz
|
6c29b18d928c0792b907313a98e404d986e2a4a5
|
recipes/openblas/bld.bat
|
recipes/openblas/bld.bat
|
:: Set $HOME to the current dir so msys runs here
set HOME=%cd%
:: Configure, build, test, and install using `nmake`.
bash -lc "make"
if errorlevel 1 exit 1
bash -lc "make PREFIX=$LIBRARY_PREFIX install"
if errorlevel 1 exit 1
|
:: Set $HOME to the current dir so msys runs here
set HOME=%cd%
:: Configure, build, test, and install using `nmake`.
bash -lc "make"
if errorlevel 1 exit 1
bash -lc "make DYNAMIC_ARCH=1 BINARY=$ARCH NO_LAPACK=0 NO_AFFINITY=1 USE_THREAD=1 PREFIX=$LIBRARY_PREFIX install"
if errorlevel 1 exit 1
|
Use the same arguments on Windows.
|
openblas: Use the same arguments on Windows.
|
Batchfile
|
bsd-3-clause
|
blowekamp/staged-recipes,dfroger/staged-recipes,sodre/staged-recipes,sodre/staged-recipes,isuruf/staged-recipes,ocefpaf/staged-recipes,chohner/staged-recipes,ocefpaf/staged-recipes,OpenPIV/staged-recipes,glemaitre/staged-recipes,stuertz/staged-recipes,stuertz/staged-recipes,ceholden/staged-recipes,pstjohn/staged-recipes,barkls/staged-recipes,blowekamp/staged-recipes,mariusvniekerk/staged-recipes,kwilcox/staged-recipes,NOAA-ORR-ERD/staged-recipes,shadowwalkersb/staged-recipes,ceholden/staged-recipes,benvandyke/staged-recipes,hadim/staged-recipes,guillochon/staged-recipes,rolando-contrib/staged-recipes,jakirkham/staged-recipes,ericdill/staged-recipes,johannesring/staged-recipes,dschreij/staged-recipes,nicoddemus/staged-recipes,rolando-contrib/staged-recipes,chrisburr/staged-recipes,conda-forge/staged-recipes,NOAA-ORR-ERD/staged-recipes,shadowwalkersb/staged-recipes,kwilcox/staged-recipes,jerowe/staged-recipes,johanneskoester/staged-recipes,johannesring/staged-recipes,cpaulik/staged-recipes,benvandyke/staged-recipes,patricksnape/staged-recipes,JohnGreeley/staged-recipes,SylvainCorlay/staged-recipes,synapticarbors/staged-recipes,mcs07/staged-recipes,jcb91/staged-recipes,atedstone/staged-recipes,Cashalow/staged-recipes,Juanlu001/staged-recipes,jcb91/staged-recipes,OpenPIV/staged-recipes,scopatz/staged-recipes,arokem/staged-recipes,koverholt/staged-recipes,caspervdw/staged-recipes,vamega/staged-recipes,rvalieris/staged-recipes,goanpeca/staged-recipes,ericdill/staged-recipes,gqmelo/staged-recipes,Savvysherpa/staged-recipes,jochym/staged-recipes,Savvysherpa/staged-recipes,basnijholt/staged-recipes,birdsarah/staged-recipes,igortg/staged-recipes,pmlandwehr/staged-recipes,grlee77/staged-recipes,JohnGreeley/staged-recipes,richardotis/staged-recipes,grlee77/staged-recipes,vamega/staged-recipes,koverholt/staged-recipes,mcernak/staged-recipes,rmcgibbo/staged-recipes,larray-project/staged-recipes,jjhelmus/staged-recipes,hadim/staged-recipes,ReimarBauer/staged-recipes,khallock/staged-recipes,dschreij/staged-recipes,caspervdw/staged-recipes,data-exp-lab/staged-recipes,pstjohn/staged-recipes,isuruf/staged-recipes,bmabey/staged-recipes,SylvainCorlay/staged-recipes,jochym/staged-recipes,chohner/staged-recipes,rmcgibbo/staged-recipes,jerowe/staged-recipes,gqmelo/staged-recipes,jakirkham/staged-recipes,atedstone/staged-recipes,nicoddemus/staged-recipes,ReimarBauer/staged-recipes,tylere/staged-recipes,patricksnape/staged-recipes,goanpeca/staged-recipes,dharhas/staged-recipes,richardotis/staged-recipes,basnijholt/staged-recipes,tylere/staged-recipes,hajapy/staged-recipes,Cashalow/staged-recipes,planetarypy/staged-recipes,bmabey/staged-recipes,arokem/staged-recipes,igortg/staged-recipes,larray-project/staged-recipes,scopatz/staged-recipes,petrushy/staged-recipes,asmeurer/staged-recipes,sodre/staged-recipes,petrushy/staged-recipes,sannykr/staged-recipes,Juanlu001/staged-recipes,hbredin/staged-recipes,hbredin/staged-recipes,mcernak/staged-recipes,rvalieris/staged-recipes,conda-forge/staged-recipes,valgur/staged-recipes,data-exp-lab/staged-recipes,khallock/staged-recipes,barkls/staged-recipes,sannykr/staged-recipes,pmlandwehr/staged-recipes,dfroger/staged-recipes,johanneskoester/staged-recipes,valgur/staged-recipes,glemaitre/staged-recipes,chrisburr/staged-recipes,dharhas/staged-recipes,birdsarah/staged-recipes,guillochon/staged-recipes,hajapy/staged-recipes,mcs07/staged-recipes,asmeurer/staged-recipes,planetarypy/staged-recipes,cpaulik/staged-recipes,jjhelmus/staged-recipes,mariusvniekerk/staged-recipes,synapticarbors/staged-recipes
|
02308c83dca951c41052aa8fe9e66f1a0e786330
|
recipes/python-chromedriver-binary/bld.bat
|
recipes/python-chromedriver-binary/bld.bat
|
python %RECIPE_DIR%\download-chromedriver
if errorlevel 1 exit 1
7z x chromedriver.zip -ochromedriver
if errorlevel 1 exit 1
REM Add chromedriver to PATH so chromedriver_binary install can find it
set PATH=%PATH%:%CD%\chromedriver
python -m pip install --no-deps --ignore-installed .
|
python %RECIPE_DIR%\download-chromedriver.py
if errorlevel 1 exit 1
7z x chromedriver.zip -ochromedriver
if errorlevel 1 exit 1
REM Add chromedriver to PATH so chromedriver_binary install can find it
set PATH=%PATH%:%CD%\chromedriver
python -m pip install --no-deps --ignore-installed .
|
Fix script path in win
|
Fix script path in win
|
Batchfile
|
bsd-3-clause
|
jjhelmus/staged-recipes,sodre/staged-recipes,sodre/staged-recipes,basnijholt/staged-recipes,rmcgibbo/staged-recipes,hadim/staged-recipes,ceholden/staged-recipes,cpaulik/staged-recipes,ReimarBauer/staged-recipes,sodre/staged-recipes,birdsarah/staged-recipes,rvalieris/staged-recipes,petrushy/staged-recipes,barkls/staged-recipes,igortg/staged-recipes,barkls/staged-recipes,scopatz/staged-recipes,basnijholt/staged-recipes,birdsarah/staged-recipes,jjhelmus/staged-recipes,igortg/staged-recipes,chrisburr/staged-recipes,rmcgibbo/staged-recipes,Juanlu001/staged-recipes,synapticarbors/staged-recipes,kwilcox/staged-recipes,asmeurer/staged-recipes,SylvainCorlay/staged-recipes,isuruf/staged-recipes,mariusvniekerk/staged-recipes,jochym/staged-recipes,dschreij/staged-recipes,kwilcox/staged-recipes,jochym/staged-recipes,mcs07/staged-recipes,mariusvniekerk/staged-recipes,guillochon/staged-recipes,hadim/staged-recipes,johanneskoester/staged-recipes,Juanlu001/staged-recipes,dschreij/staged-recipes,cpaulik/staged-recipes,conda-forge/staged-recipes,jakirkham/staged-recipes,ocefpaf/staged-recipes,petrushy/staged-recipes,isuruf/staged-recipes,conda-forge/staged-recipes,goanpeca/staged-recipes,pmlandwehr/staged-recipes,patricksnape/staged-recipes,synapticarbors/staged-recipes,stuertz/staged-recipes,mcs07/staged-recipes,jakirkham/staged-recipes,ceholden/staged-recipes,shadowwalkersb/staged-recipes,patricksnape/staged-recipes,ReimarBauer/staged-recipes,guillochon/staged-recipes,goanpeca/staged-recipes,chrisburr/staged-recipes,ocefpaf/staged-recipes,shadowwalkersb/staged-recipes,SylvainCorlay/staged-recipes,rvalieris/staged-recipes,johanneskoester/staged-recipes,scopatz/staged-recipes,stuertz/staged-recipes,pmlandwehr/staged-recipes,asmeurer/staged-recipes
|
53172e7a9cc67b46070cf77c0d0c7bf027332449
|
tools/rails/bin/jruby.bat
|
tools/rails/bin/jruby.bat
|
@ECHO OFF
set GO_ROOT=%~dp0\..\..\..
set JRUBY_BASE=%GO_ROOT%\tools\jruby
set SERVER_ROOT=%GO_ROOT%\server
set RAILS_ROOT=%SERVER_ROOT%\webapp\WEB-INF\rails.new
set GEM_HOME=%RAILS_ROOT%\vendor\bundle\jruby\1.9
set GEM_PATH=%JRUBY_BASE%\lib\ruby\gems\shared;%GEM_HOME%
set PATH=%JRUBY_BASE%\bin;%PATH%
set JRUBY_OPTS="-J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-Djruby.compile.invokedynamic=false -J-Djruby.compile.mode=OFF %JRUBY_OPTS%"
%JRUBY_BASE%\bin\jruby.bat %*
|
@ECHO OFF
set GO_ROOT=%~dp0\..\..\..
set JRUBY_BASE=%GO_ROOT%\tools\jruby
set SERVER_ROOT=%GO_ROOT%\server
set RAILS_ROOT=%SERVER_ROOT%\webapp\WEB-INF\rails.new
set GEM_HOME=%RAILS_ROOT%\vendor\bundle\jruby\1.9
set GEM_PATH=%JRUBY_BASE%\lib\ruby\gems\shared;%GEM_HOME%
set PATH=%JRUBY_BASE%\bin;%PATH%
set JRUBY_OPTS="-J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-Djruby.compat.version=2.0 -J-Djruby.compile.invokedynamic=false -J-Djruby.compile.mode=OFF %JRUBY_OPTS%"
%JRUBY_BASE%\bin\jruby.bat %*
|
Move to Ruby 2.0 on windows.
|
Move to Ruby 2.0 on windows.
|
Batchfile
|
apache-2.0
|
sghill/gocd,Skarlso/gocd,ind9/gocd,arvindsv/gocd,bdpiparva/gocd,bdpiparva/gocd,varshavaradarajan/gocd,tomzo/gocd,GaneshSPatil/gocd,arvindsv/gocd,kyleolivo/gocd,gocd/gocd,naveenbhaskar/gocd,Skarlso/gocd,Skarlso/gocd,sghill/gocd,stephen-murby/gocd,sghill/gocd,MFAnderson/gocd,stephen-murby/gocd,jyotisingh/gocd,arvindsv/gocd,ibnc/gocd,marques-work/gocd,ketan/gocd,ind9/gocd,tomzo/gocd,MFAnderson/gocd,marques-work/gocd,gocd/gocd,GaneshSPatil/gocd,Skarlso/gocd,kyleolivo/gocd,MFAnderson/gocd,kyleolivo/gocd,bdpiparva/gocd,varshavaradarajan/gocd,ketan/gocd,kierarad/gocd,jyotisingh/gocd,marques-work/gocd,kierarad/gocd,stevem999/gocd,varshavaradarajan/gocd,ketan/gocd,ind9/gocd,bdpiparva/gocd,stevem999/gocd,naveenbhaskar/gocd,gocd/gocd,ibnc/gocd,varshavaradarajan/gocd,naveenbhaskar/gocd,MFAnderson/gocd,ibnc/gocd,gocd/gocd,kyleolivo/gocd,arvindsv/gocd,kierarad/gocd,tomzo/gocd,gocd/gocd,jyotisingh/gocd,GaneshSPatil/gocd,arvindsv/gocd,jyotisingh/gocd,tomzo/gocd,naveenbhaskar/gocd,stevem999/gocd,Skarlso/gocd,tomzo/gocd,jyotisingh/gocd,naveenbhaskar/gocd,arvindsv/gocd,sghill/gocd,kyleolivo/gocd,tomzo/gocd,stevem999/gocd,ketan/gocd,sghill/gocd,GaneshSPatil/gocd,ibnc/gocd,stephen-murby/gocd,marques-work/gocd,kierarad/gocd,GaneshSPatil/gocd,bdpiparva/gocd,MFAnderson/gocd,bdpiparva/gocd,ind9/gocd,ketan/gocd,stephen-murby/gocd,naveenbhaskar/gocd,stephen-murby/gocd,Skarlso/gocd,ketan/gocd,kierarad/gocd,GaneshSPatil/gocd,ind9/gocd,gocd/gocd,varshavaradarajan/gocd,ibnc/gocd,ibnc/gocd,kierarad/gocd,marques-work/gocd,jyotisingh/gocd,varshavaradarajan/gocd,stevem999/gocd,marques-work/gocd
|
275f093c41b26dd65f8d26de90e04073acdd5289
|
bintrayupload.bat
|
bintrayupload.bat
|
@echo off
setlocal EnableDelayedExpansion
REM Uploading all modules at once (with one gradle command) does not work any more, so a separate command for each module must be issued
SET username=%1
SET apikey=%2
SET modules="Spectaculum-Core" "Spectaculum-Camera" "Spectaculum-Image" "Spectaculum-MediaPlayer" "Spectaculum-MediaPlayerExtended" "Spectaculum-Effect-FloAwbs" "Spectaculum-Effect-Immersive" "Spectaculum-Effect-QrMarker"
FOR %%m in (%modules%) DO (
gradlew %%~m:clean %%~m:build %%~m:bintrayUpload -PbintrayUser=%username% -PbintrayKey=%apikey% -PdryRun=false -Pskippasswordprompts
)
|
@echo off
setlocal EnableDelayedExpansion
REM Uploading all modules at once (with one gradle command) does not work any more, so a separate command for each module must be issued
SET username=%1
SET apikey=%2
SET modules="Spectaculum-Core" "Spectaculum-Camera" "Spectaculum-Image" "Spectaculum-MediaPlayer" "Spectaculum-MediaPlayerExtended" "Spectaculum-Effect-FlowAbs" "Spectaculum-Effect-Immersive" "Spectaculum-Effect-QrMarker"
FOR %%m in (%modules%) DO (
gradlew %%~m:clean %%~m:build %%~m:bintrayUpload -PbintrayUser=%username% -PbintrayKey=%apikey% -PdryRun=false -Pskippasswordprompts
)
|
Fix typo in bintray upload script
|
Fix typo in bintray upload script
|
Batchfile
|
apache-2.0
|
protyposis/Spectaculum,protyposis/Spectaculum
|
ffb68ae60b2cac9584b0dd57dfb55b6bce018ca5
|
shell.bat
|
shell.bat
|
@set PATH="%PATH%;C:\Program Files\Java\jdk1.8.0_66\bin"
@c:\Windows\system32\cmd.exe /c %USERPROFILE%\Desktop\sh.exe -l
|
@set PATH="%PATH%;C:\Program Files\Java\jdk1.7.0_25\bin"
@c:\Windows\system32\cmd.exe /c %USERPROFILE%\Desktop\sh.exe -l
|
Set Java path for BMC
|
Set Java path for BMC
|
Batchfile
|
mit
|
coderdojobelfast/java
|
6cdb8a6f37a75815e97a682b09b95dffa24e6b5c
|
build/windows_c.cmd
|
build/windows_c.cmd
|
@REM Copyright (c) Microsoft. All rights reserved.
@REM Licensed under the MIT license. See LICENSE file in the project root for full license information.
setlocal
set build-root=%~dp0..
rem // resolve to fully qualified path
for %%i in ("%build-root%") do set build-root=%%~fi
REM -- C --
cd %build-root%\c\build_all\windows
call build.cmd
if errorlevel 1 goto :eof
cd %build-root%
|
@REM Copyright (c) Microsoft. All rights reserved.
@REM Licensed under the MIT license. See LICENSE file in the project root for full license information.
setlocal
set build-root=%~dp0..
rem // resolve to fully qualified path
for %%i in ("%build-root%") do set build-root=%%~fi
REM -- C --
cd %build-root%\c\build_all\windows
call build.cmd --run-e2e-tests
if errorlevel 1 goto :eof
cd %build-root%
|
Add --run-e2e-tests option to the script ran by Jenkins
|
Add --run-e2e-tests option to the script ran by Jenkins
|
Batchfile
|
mit
|
clemensv/azure-event-hubs,clemensv/azure-event-hubs,clemensv/azure-event-hubs,clemensv/azure-event-hubs,clemensv/azure-event-hubs,clemensv/azure-event-hubs
|
db9d3380c39284695added69edab46c2ddab2f48
|
build-distribution.cmd
|
build-distribution.cmd
|
:start
bin\nant\nant.exe -f:spark.build tools build package
pause
goto start
|
if "%1"=="" build-distribution 1
:start
bin\nant\nant.exe -f:spark.build tools build package -D:build.number=%1
pause
goto start
|
Allow number to be passed in to distribution build
|
Allow number to be passed in to distribution build
The build number is no longer automatically applied from source
control revision, so for release candidates it can be passed in as
appropriate. The values used will follow the CI build numbers.
|
Batchfile
|
apache-2.0
|
RobertTheGrey/spark,RobertTheGrey/spark,SparkViewEngine/spark,RobertTheGrey/spark,SparkViewEngine/spark,SparkViewEngine/spark,SparkViewEngine/spark,RobertTheGrey/spark,SparkViewEngine/spark,RobertTheGrey/spark,RobertTheGrey/spark,SparkViewEngine/spark,RobertTheGrey/spark,SparkViewEngine/spark
|
b6960c07ccbf148c35d73dfe224d8186dce447d1
|
generated/compile_protos.bat
|
generated/compile_protos.bat
|
@echo off
set PROTODIR=D:\GitHub\SteamKit\Resources\Protobufs
set PROTOBUFS=base_gcmessages gcsdk_gcmessages dota_gcmessages_client
for %%X in ( %PROTOBUFS% ) do (
protoc --descriptor_set_out=%%X.desc --include_imports --proto_path=%PROTODIR% --proto_path=%PROTODIR%\dota --proto_path=%PROTODIR%\steamclient %PROTODIR%\dota\%%X.proto
)
|
@echo off
set PROTODIR=D:\GitHub\SteamKit\Resources\Protobufs
set PROTOBUFS=base_gcmessages gcsdk_gcmessages cstrike15_gcmessages
for %%X in ( %PROTOBUFS% ) do (
protoc --descriptor_set_out=%%X.desc --include_imports %%X.proto
)
|
Update windows proto generation script to resemble the linux script more closely
|
Update windows proto generation script to resemble the linux script more closely
|
Batchfile
|
mit
|
TrueCarry/node-csgo,joshuaferrara/node-csgo,TrueCarry/node-csgo
|
183b1da86ea185455a33914a2ce36b798a6e4a88
|
popcorn.cmd
|
popcorn.cmd
|
@echo off
setlocal
set "output=nul"
set "times=1"
goto :parsePackage
:help
:: TODO: put something here.
goto :eof
:usage
call :help 1>&2
exit /b 1
:parsePackage
if "%~1" == "" goto usage
set "package=%~1"
shift
:parseArgs
if "%~1" == "" goto main
if /i "%~1" == "-?" goto help
if /i "%~1" == "-h" goto help
if /i "%~1" == "--help" goto help
if /i "%~1" == "-t" (
set "times=%~2"
shift
)
if /i "%~1" == "--times" (
set "times=%~2"
shift
)
if /i "%~1" == "-o" (
set "output=%~2"
shift
)
if /i "%~1" == "--output" (
set "output=%~2"
shift
)
shift
goto parseArgs
:curl
@powershell -NoProfile "iwr %~1 -OutFile %~2" 2> nul
goto :eof
:downloadPackage
set "url=https://www.nuget.org/api/v2/package/%~1"
call :curl "%url%" %2
goto :eof
:main
for /l %%i in (1, 1, %times%) do (
call :downloadPackage "%package%" "%output%"
)
|
@echo off
setlocal
set "output=nul"
set "times=1"
goto :parsePackage
:help
:: TODO: put something here.
goto :eof
:usage
call :help 1>&2
exit /b 1
:parsePackage
if "%~1" == "" goto usage
set "package=%~1"
shift
:parseArgs
if "%~1" == "" goto main
if /i %1 == "-?" goto help
if /i %1 == "-h" goto help
if /i %1 == "--help" goto help
if /i %1 == "-t" (
set "times=%~2"
shift
)
if /i %1 == "--times" (
set "times=%~2"
shift
)
if /i %1 == "-o" (
set "output=%~2"
shift
)
if /i %1 == "--output" (
set "output=%~2"
shift
)
shift
goto parseArgs
:curl
@powershell -NoProfile "iwr %~1 -OutFile %~2" 2> nul
goto :eof
:downloadPackage
set "url=https://www.nuget.org/api/v2/package/%~1"
call :curl "%url%" %2
goto :eof
:main
for /l %%i in (1, 1, %times%) do (
call :downloadPackage "%package%" "%output%"
)
|
Remove unnecessary uses of "%~1"
|
Remove unnecessary uses of "%~1"
|
Batchfile
|
mit
|
jamesqo/popcorn
|
9c4b02096b1f8580f9ab8b192958dd8f35dd0e23
|
scripts/test_native_code.bat
|
scripts/test_native_code.bat
|
@echo off
setlocal EnableDelayedExpansion
echo Test discovery started...
dir C:\projects\spectre\*Tests.exe /b /s | findstr /v obj > __tmp_gtest.txt
echo Testing (Google Test)...
set failures=0
FOR /F %%i IN (__tmp_gtest.txt) DO (
echo %%i
%%i --gtest_output="xml:%%i.xml"
powershell C:\projects\spectre\scripts\Upload-TestResult.ps1 -fileName %%i.xml
if errorlevel 1 (
set /A failures=%failures%+1
)
)
del __tmp_gtest.txt
EXIT /B %failures%
|
@echo off
setlocal EnableDelayedExpansion
echo Test discovery started...
dir C:\projects\spectre\*Tests.exe /b /s | findstr /v obj > __tmp_gtest.txt
echo Testing (Google Test)...
set failures=0
FOR /F %%i IN (__tmp_gtest.txt) DO (
echo %%i
%%i --gtest_output="xml:%%i.xml"
powershell C:\projects\spectre\scripts\Upload-TestResult.ps1 -fileName %%i.xml
IF %ERRORLEVEL% NEQ 0 (
set /A failures=%failures%+1
)
)
del __tmp_gtest.txt
EXIT /B %failures%
|
Make native tests fail the build
|
Make native tests fail the build
|
Batchfile
|
apache-2.0
|
mg6/spectre,spectre-team/spectre,mg6/spectre,mg6/spectre,spectre-team/spectre,spectre-team/spectre
|
8daaf743827b9706b8c01f7da8ab0b39a4b8135b
|
Source/BuildAllExes.bat
|
Source/BuildAllExes.bat
|
@echo off
REM Make sure to use 32 bit python for this so it runs on all machines
C:\Utils\Python\Python32-34\python ./BuildPrjExeSetup.py py2exe
C:\Utils\Python\Python32-34\python ./BuildEditorApiExeSetup.py py2exe
C:\Utils\Python\Python32-34\python ./BuildReleaseManifesterUpdaterExeSetup.py py2exe
C:\Utils\Python\Python32-34\python ./BuildOpenInVisualStudio.py py2exe
|
@echo off
REM Make sure to use 32 bit python for this so it runs on all machines
%PYTHONHOME%\python ./BuildPrjExeSetup.py py2exe
%PYTHONHOME%\python ./BuildEditorApiExeSetup.py py2exe
%PYTHONHOME%\python ./BuildReleaseManifesterUpdaterExeSetup.py py2exe
%PYTHONHOME%\python ./BuildOpenInVisualStudio.py py2exe
|
Replace absolute path to python with \%PYTHONHOME\%.
|
Replace absolute path to python with \%PYTHONHOME\%.
|
Batchfile
|
mit
|
modesttree/Projeny,modesttree/Projeny
|
b24b77fc69b989f5b1cf8a17d7442afb30d45f7e
|
Scripts/buildpackpush.bat
|
Scripts/buildpackpush.bat
|
SETLOCAL
SET VERSION=%1
CALL Scripts\buildpack %VERSION% || exit /B 1
ECHO this should not happen
exit /B 1
nuget push .\Artifacts\Mapsui.%VERSION%.nupkg -source nuget.org || exit /B 1
nuget push .\Artifacts\Mapsui.Forms.%VERSION%.nupkg -source nuget.org || exit /B 1
git commit -m %VERSION% -a || exit /B 1
git tag %VERSION% || exit /B 1
git push origin %VERSION% || exit /B 1
git push || exit /B 1
|
SETLOCAL
SET VERSION=%1
CALL Scripts\buildpack %VERSION% || exit /B 1
nuget push .\Artifacts\Mapsui.%VERSION%.nupkg -source nuget.org || exit /B 1
nuget push .\Artifacts\Mapsui.Forms.%VERSION%.nupkg -source nuget.org || exit /B 1
git commit -m %VERSION% -a || exit /B 1
git tag %VERSION% || exit /B 1
git push origin %VERSION% || exit /B 1
git push || exit /B 1
|
Revert test code in buidpackpush.bat
|
Revert test code in buidpackpush.bat
|
Batchfile
|
mit
|
pauldendulk/Mapsui,charlenni/Mapsui,charlenni/Mapsui
|
2a1b9d83177f9abbe4a71de43d62d37a603f7176
|
src/application.bat
|
src/application.bat
|
### application.bat - 2015 - HURTAUD ###
version ="2"
build_hour ="11H00"
echo "version${version}";
echo "Copyright company - 2015";
echo "Buil${build_hour";
pause;
|
### application.bat - 2015 - HURTAUD - Pasquier Rodolphe ###
version ="2"
build_hour ="11H00"
echo "version${version}";
echo "Copyright company - 2015";
echo "Buil${build_hour";
pause;
|
Update header for new member
|
Update header for new member
|
Batchfile
|
apache-2.0
|
HURTAUDClement/TP-git
|
36a65ff43cd27d2581668375e763d332befe4e6c
|
webkit/build/JSConfig/prebuild.bat
|
webkit/build/JSConfig/prebuild.bat
|
@echo off
setlocal
set OUTDIR=%1
set JSENG=%2
set CYGWIN_ROOT=%~dp0..\..\..\third_party\cygwin\
set GNU_ROOT=%~dp0..\..\..\third_party\gnu\files
set PATH=%CYGWIN_ROOT%bin;%GNU_ROOT%;%SystemRoot%;%SystemRoot%\system32
:: Ensure that the cygwin mount points are defined
CALL %CYGWIN_ROOT%setup_mount.bat > NUL
bash -x create-config.sh %OUTDIR% %JSENG%
|
@echo off
setlocal
set OUTDIR=%1
set JSENG=%2
set CYGWIN_ROOT=%~dp0..\..\..\third_party\cygwin\
set GNU_ROOT=%~dp0..\..\..\third_party\gnu\files
:: Fix cp.exe on vista: without this flag, the files that it creates are not accessible.
set CYGWIN=nontsec
set PATH=%CYGWIN_ROOT%bin;%GNU_ROOT%;%SystemRoot%;%SystemRoot%\system32
:: Ensure that the cygwin mount points are defined
CALL %CYGWIN_ROOT%setup_mount.bat > NUL
bash -x create-config.sh %OUTDIR% %JSENG%
|
Fix a build issue with Vista. Stop cp.exe from trying to emulate POSIX security on top of NTFS.
|
Fix a build issue with Vista. Stop cp.exe from trying to emulate POSIX security
on top of NTFS.
BUG=1157117
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@40 0039d316-1c4b-4281-b951-d872f2087c98
|
Batchfile
|
bsd-3-clause
|
dednal/chromium.src,mohamed--abdel-maksoud/chromium.src,anirudhSK/chromium,zcbenz/cefode-chromium,TheTypoMaster/chromium-crosswalk,Just-D/chromium-1,mogoweb/chromium-crosswalk,mogoweb/chromium-crosswalk,zcbenz/cefode-chromium,Jonekee/chromium.src,markYoungH/chromium.src,jaruba/chromium.src,ltilve/chromium,pozdnyakov/chromium-crosswalk,ltilve/chromium,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk-efl,ChromiumWebApps/chromium,fujunwei/chromium-crosswalk,Chilledheart/chromium,TheTypoMaster/chromium-crosswalk,pozdnyakov/chromium-crosswalk,dushu1203/chromium.src,jaruba/chromium.src,ltilve/chromium,Jonekee/chromium.src,hujiajie/pa-chromium,Fireblend/chromium-crosswalk,bright-sparks/chromium-spacewalk,hgl888/chromium-crosswalk-efl,Pluto-tv/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,jaruba/chromium.src,hujiajie/pa-chromium,jaruba/chromium.src,robclark/chromium,PeterWangIntel/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,keishi/chromium,nacl-webkit/chrome_deps,TheTypoMaster/chromium-crosswalk,ondra-novak/chromium.src,Jonekee/chromium.src,hujiajie/pa-chromium,M4sse/chromium.src,hgl888/chromium-crosswalk,bright-sparks/chromium-spacewalk,M4sse/chromium.src,zcbenz/cefode-chromium,ChromiumWebApps/chromium,Chilledheart/chromium,junmin-zhu/chromium-rivertrail,dednal/chromium.src,hgl888/chromium-crosswalk-efl,crosswalk-project/chromium-crosswalk-efl,krieger-od/nwjs_chromium.src,axinging/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,PeterWangIntel/chromium-crosswalk,dushu1203/chromium.src,Chilledheart/chromium,krieger-od/nwjs_chromium.src,bright-sparks/chromium-spacewalk,littlstar/chromium.src,chuan9/chromium-crosswalk,littlstar/chromium.src,keishi/chromium,dushu1203/chromium.src,Just-D/chromium-1,bright-sparks/chromium-spacewalk,crosswalk-project/chromium-crosswalk-efl,axinging/chromium-crosswalk,Just-D/chromium-1,zcbenz/cefode-chromium,mogoweb/chromium-crosswalk,junmin-zhu/chromium-rivertrail,M4sse/chromium.src,jaruba/chromium.src,dednal/chromium.src,keishi/chromium,zcbenz/cefode-chromium,ChromiumWebApps/chromium,Just-D/chromium-1,patrickm/chromium.src,axinging/chromium-crosswalk,rogerwang/chromium,hgl888/chromium-crosswalk-efl,jaruba/chromium.src,dednal/chromium.src,mohamed--abdel-maksoud/chromium.src,littlstar/chromium.src,anirudhSK/chromium,hgl888/chromium-crosswalk,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk,jaruba/chromium.src,mogoweb/chromium-crosswalk,bright-sparks/chromium-spacewalk,markYoungH/chromium.src,ChromiumWebApps/chromium,crosswalk-project/chromium-crosswalk-efl,PeterWangIntel/chromium-crosswalk,Pluto-tv/chromium-crosswalk,hgl888/chromium-crosswalk-efl,markYoungH/chromium.src,ondra-novak/chromium.src,Jonekee/chromium.src,axinging/chromium-crosswalk,hgl888/chromium-crosswalk-efl,timopulkkinen/BubbleFish,crosswalk-project/chromium-crosswalk-efl,anirudhSK/chromium,hujiajie/pa-chromium,axinging/chromium-crosswalk,krieger-od/nwjs_chromium.src,hujiajie/pa-chromium,ltilve/chromium,ChromiumWebApps/chromium,nacl-webkit/chrome_deps,hgl888/chromium-crosswalk-efl,Fireblend/chromium-crosswalk,keishi/chromium,Pluto-tv/chromium-crosswalk,rogerwang/chromium,keishi/chromium,jaruba/chromium.src,nacl-webkit/chrome_deps,patrickm/chromium.src,keishi/chromium,ltilve/chromium,rogerwang/chromium,dednal/chromium.src,littlstar/chromium.src,patrickm/chromium.src,krieger-od/nwjs_chromium.src,markYoungH/chromium.src,robclark/chromium,timopulkkinen/BubbleFish,timopulkkinen/BubbleFish,rogerwang/chromium,robclark/chromium,krieger-od/nwjs_chromium.src,mogoweb/chromium-crosswalk,keishi/chromium,mohamed--abdel-maksoud/chromium.src,anirudhSK/chromium,chuan9/chromium-crosswalk,Pluto-tv/chromium-crosswalk,pozdnyakov/chromium-crosswalk,dushu1203/chromium.src,hgl888/chromium-crosswalk-efl,PeterWangIntel/chromium-crosswalk,Just-D/chromium-1,anirudhSK/chromium,fujunwei/chromium-crosswalk,dednal/chromium.src,ltilve/chromium,nacl-webkit/chrome_deps,Fireblend/chromium-crosswalk,robclark/chromium,Chilledheart/chromium,M4sse/chromium.src,dushu1203/chromium.src,pozdnyakov/chromium-crosswalk,Chilledheart/chromium,TheTypoMaster/chromium-crosswalk,ChromiumWebApps/chromium,anirudhSK/chromium,dednal/chromium.src,ChromiumWebApps/chromium,chuan9/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,ondra-novak/chromium.src,hgl888/chromium-crosswalk,pozdnyakov/chromium-crosswalk,hgl888/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,bright-sparks/chromium-spacewalk,Just-D/chromium-1,mogoweb/chromium-crosswalk,axinging/chromium-crosswalk,M4sse/chromium.src,robclark/chromium,robclark/chromium,Chilledheart/chromium,fujunwei/chromium-crosswalk,pozdnyakov/chromium-crosswalk,krieger-od/nwjs_chromium.src,Chilledheart/chromium,axinging/chromium-crosswalk,zcbenz/cefode-chromium,zcbenz/cefode-chromium,timopulkkinen/BubbleFish,ltilve/chromium,timopulkkinen/BubbleFish,crosswalk-project/chromium-crosswalk-efl,ondra-novak/chromium.src,mohamed--abdel-maksoud/chromium.src,pozdnyakov/chromium-crosswalk,hgl888/chromium-crosswalk,dednal/chromium.src,krieger-od/nwjs_chromium.src,robclark/chromium,Jonekee/chromium.src,pozdnyakov/chromium-crosswalk,keishi/chromium,pozdnyakov/chromium-crosswalk,anirudhSK/chromium,mogoweb/chromium-crosswalk,Jonekee/chromium.src,zcbenz/cefode-chromium,ondra-novak/chromium.src,M4sse/chromium.src,PeterWangIntel/chromium-crosswalk,hgl888/chromium-crosswalk,krieger-od/nwjs_chromium.src,robclark/chromium,TheTypoMaster/chromium-crosswalk,timopulkkinen/BubbleFish,Fireblend/chromium-crosswalk,hujiajie/pa-chromium,patrickm/chromium.src,rogerwang/chromium,timopulkkinen/BubbleFish,Jonekee/chromium.src,dushu1203/chromium.src,nacl-webkit/chrome_deps,hujiajie/pa-chromium,markYoungH/chromium.src,nacl-webkit/chrome_deps,M4sse/chromium.src,mogoweb/chromium-crosswalk,ltilve/chromium,hujiajie/pa-chromium,ChromiumWebApps/chromium,Just-D/chromium-1,axinging/chromium-crosswalk,rogerwang/chromium,littlstar/chromium.src,axinging/chromium-crosswalk,zcbenz/cefode-chromium,patrickm/chromium.src,krieger-od/nwjs_chromium.src,dushu1203/chromium.src,hgl888/chromium-crosswalk,ondra-novak/chromium.src,Just-D/chromium-1,Fireblend/chromium-crosswalk,littlstar/chromium.src,jaruba/chromium.src,timopulkkinen/BubbleFish,Pluto-tv/chromium-crosswalk,patrickm/chromium.src,Jonekee/chromium.src,nacl-webkit/chrome_deps,Chilledheart/chromium,rogerwang/chromium,TheTypoMaster/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,hgl888/chromium-crosswalk-efl,nacl-webkit/chrome_deps,dushu1203/chromium.src,patrickm/chromium.src,junmin-zhu/chromium-rivertrail,axinging/chromium-crosswalk,robclark/chromium,Fireblend/chromium-crosswalk,anirudhSK/chromium,crosswalk-project/chromium-crosswalk-efl,junmin-zhu/chromium-rivertrail,ltilve/chromium,markYoungH/chromium.src,markYoungH/chromium.src,bright-sparks/chromium-spacewalk,ChromiumWebApps/chromium,dushu1203/chromium.src,chuan9/chromium-crosswalk,anirudhSK/chromium,Pluto-tv/chromium-crosswalk,M4sse/chromium.src,hujiajie/pa-chromium,chuan9/chromium-crosswalk,nacl-webkit/chrome_deps,ChromiumWebApps/chromium,dednal/chromium.src,keishi/chromium,fujunwei/chromium-crosswalk,fujunwei/chromium-crosswalk,rogerwang/chromium,pozdnyakov/chromium-crosswalk,junmin-zhu/chromium-rivertrail,pozdnyakov/chromium-crosswalk,Fireblend/chromium-crosswalk,junmin-zhu/chromium-rivertrail,Jonekee/chromium.src,mogoweb/chromium-crosswalk,Pluto-tv/chromium-crosswalk,chuan9/chromium-crosswalk,krieger-od/nwjs_chromium.src,junmin-zhu/chromium-rivertrail,zcbenz/cefode-chromium,Chilledheart/chromium,junmin-zhu/chromium-rivertrail,junmin-zhu/chromium-rivertrail,junmin-zhu/chromium-rivertrail,PeterWangIntel/chromium-crosswalk,dushu1203/chromium.src,bright-sparks/chromium-spacewalk,chuan9/chromium-crosswalk,M4sse/chromium.src,fujunwei/chromium-crosswalk,markYoungH/chromium.src,dednal/chromium.src,dushu1203/chromium.src,timopulkkinen/BubbleFish,ChromiumWebApps/chromium,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk,Pluto-tv/chromium-crosswalk,fujunwei/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,markYoungH/chromium.src,ondra-novak/chromium.src,hgl888/chromium-crosswalk,M4sse/chromium.src,axinging/chromium-crosswalk,patrickm/chromium.src,robclark/chromium,timopulkkinen/BubbleFish,Fireblend/chromium-crosswalk,bright-sparks/chromium-spacewalk,zcbenz/cefode-chromium,anirudhSK/chromium,ondra-novak/chromium.src,mohamed--abdel-maksoud/chromium.src,Jonekee/chromium.src,hujiajie/pa-chromium,mohamed--abdel-maksoud/chromium.src,Just-D/chromium-1,timopulkkinen/BubbleFish,PeterWangIntel/chromium-crosswalk,fujunwei/chromium-crosswalk,ChromiumWebApps/chromium,Fireblend/chromium-crosswalk,keishi/chromium,mohamed--abdel-maksoud/chromium.src,markYoungH/chromium.src,littlstar/chromium.src,keishi/chromium,anirudhSK/chromium,nacl-webkit/chrome_deps,ondra-novak/chromium.src,mohamed--abdel-maksoud/chromium.src,mogoweb/chromium-crosswalk,dednal/chromium.src,Pluto-tv/chromium-crosswalk,anirudhSK/chromium,patrickm/chromium.src,PeterWangIntel/chromium-crosswalk,rogerwang/chromium,fujunwei/chromium-crosswalk,littlstar/chromium.src,jaruba/chromium.src,markYoungH/chromium.src,junmin-zhu/chromium-rivertrail,Jonekee/chromium.src,hujiajie/pa-chromium,crosswalk-project/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,rogerwang/chromium,TheTypoMaster/chromium-crosswalk,jaruba/chromium.src,M4sse/chromium.src,nacl-webkit/chrome_deps
|
cb0894821bc5343fca8254d72a3098dd14b7d8d2
|
PSX_EXPORT_OVERLAYS.bat
|
PSX_EXPORT_OVERLAYS.bat
|
rem slink /psx /c /p /rmips=GAME/SETUP.REL @GAME/SETUP.LNK,GAME/SETUP.BIN
rem slink /psx /c /p /rmips=GAME/ANDY3.REL @GAME/ANDY3.LNK,GAME/ANDY3.BIN
rem slink /psx /c /p /rmips=GAME/JOBY5.REL @GAME/JOBY5.LNK,GAME/JOBY5.BIN
psylink /c /p /q /rmips=GAME/SETUP.REL @GAME/SETUP.LNK,GAME/SETUP.BIN
psylink /c /p /q /rmips=GAME/ANDY3.REL @GAME/ANDY3.LNK,GAME/ANDY3.BIN
psylink /c /p /q /rmips=GAME/JOBY5.REL @GAME/JOBY5.LNK,GAME/JOBY5.BIN
DEL2FAB /c+ GAME/SETUP
|
rem slink /psx /c /p /rmips=GAME/SETUP.REL @GAME/SETUP.LNK,GAME/SETUP.BIN
rem slink /psx /c /p /rmips=GAME/ANDY3.REL @GAME/ANDY3.LNK,GAME/ANDY3.BIN
rem slink /psx /c /p /rmips=GAME/JOBY5.REL @GAME/JOBY5.LNK,GAME/JOBY5.BIN
rem slink /psx /c /p /rmips=GAME/TITSEQ.REL @GAME/TITSEQ.LNK,GAME/TITSEQ.BIN
psylink /c /p /q /rmips=GAME/SETUP.REL @GAME/SETUP.LNK,GAME/SETUP.BIN
psylink /c /p /q /rmips=GAME/ANDY3.REL @GAME/ANDY3.LNK,GAME/ANDY3.BIN
psylink /c /p /q /rmips=GAME/JOBY5.REL @GAME/JOBY5.LNK,GAME/JOBY5.BIN
psylink /c /p /q /rmips=SPEC_PSX/TITSEQ.REL @SPEC_PSX/TITSEQ.LNK,SPEC_PSX/TITSEQ.BIN
DEL2FAB /c+ GAME/SETUP
|
Add TITSEQ to overlay exporting.
|
Add TITSEQ to overlay exporting.
|
Batchfile
|
mit
|
TOMB5/TOMB5,TOMB5/TOMB5,TOMB5/TOMB5,TOMB5/TOMB5
|
74bb86ab6a75192dc4f3678924ca04735eb3e4b8
|
install.bat
|
install.bat
|
::
:: Create output (Cordova) directory
::
mkdir www
::
:: Install client libraries
::
bower install
::
:: Add target platform
::
:: Comment out the platform(s) your system supports
::
grunt platform:add:ios
:: grunt platform:add:android
::
:: Install cordova plugins
:: There quickest option is to ask from Ionic
:: to restore the state of the app.
:: https://github.com/driftyco/ionic-cli::ionic-state-restore
:: If this process fails comment this line and uncomment the
:: "cordova plugin add ..." lines that follow.
::
ionic state restore
::
:: cordova plugin add cordova-plugin-device
:: cordova plugin add cordova-plugin-console
:: cordova plugin add com.ionic.keyboard
:: cordova plugin add cordova-plugin-inappbrowser
:: cordova plugin add cordova-plugin-geolocation
:: cordova plugin add https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.git
:: cordova plugin add cordova-plugin-network-information
:: cordova plugin add cordova-plugin-whitelist
:: cordova plugin add cordova-plugin-transport-security
::
:: Build the project and generate the cordova directory (www)
::
grunt build
|
::
:: Create output (Cordova) directory
::
mkdir www
::
:: Install client libraries
::
bower install
::
:: Add target platform
::
:: Comment out the platform(s) your system supports
::
grunt platform:add:ios
:: grunt platform:add:android
::
:: Install cordova plugins
:: There quickest option is to ask from Ionic
:: to restore the state of the app.
:: https://github.com/driftyco/ionic-cli::ionic-state-restore
:: If this process fails comment this line and uncomment the
:: "cordova plugin add ..." lines that follow.
::
ionic state restore
::
:: cordova plugin add cordova-plugin-device
:: cordova plugin add cordova-plugin-console
:: cordova plugin add com.ionic.keyboard
:: cordova plugin add cordova-plugin-inappbrowser
:: cordova plugin add cordova-plugin-geolocation
:: cordova plugin add https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.git
:: cordova plugin add de.appplant.cordova.plugin.email-composer
:: cordova plugin add cordova-plugin-network-information
:: cordova plugin add cordova-plugin-whitelist
:: cordova plugin add cordova-plugin-transport-security
::
:: Build the project and generate the cordova directory (www)
::
grunt build
|
Add email composer plugin in .bat file
|
Add email composer plugin in .bat file
|
Batchfile
|
mit
|
skounis/supermodular,skounis/supermodular,skounis/supermodular
|
7f17a6a9be9da902bd072de388c84c6d9ffb793d
|
UIforETW/build_static.bat
|
UIforETW/build_static.bat
|
@rem Copyright 2015 Google Inc. All Rights Reserved.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem http://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem Modify the UIforETW project to be statically linked and build that version
@rem so that it will run without any extra install requirements.
@setlocal
call "%VS120COMNTOOLS%..\..\VC\vcvarsall.bat"
sed "s/UseOfMfc>Dynamic/UseOfMfc>Static/" <UIforETW.vcxproj >UIforETWStatic.vcxproj
sed "s/UIforETW.vcxproj/UIforETWStatic.vcxproj/" <UIforETW.sln >UIforETWStatic.sln
rmdir Release /s/q
devenv /rebuild "release|Win32" UIforETWStatic.sln
del UIforETWStatic.vcxproj
del UIforETWStatic.sln
|
@rem Copyright 2015 Google Inc. All Rights Reserved.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem http://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem Modify the UIforETW project to be statically linked and build that version
@rem so that it will run without any extra install requirements.
@setlocal
call "%VS120COMNTOOLS%..\..\VC\vcvarsall.bat"
sed "s/UseOfMfc>Dynamic/UseOfMfc>Static/" <UIforETW.vcxproj >UIforETWStatic.vcxproj
sed "s/UIforETW.vcxproj/UIforETWStatic.vcxproj/" <UIforETW.sln >UIforETWStatic.sln
rmdir Release /s/q
devenv /rebuild "release|Win32" UIforETWStatic.sln
del UIforETWStatic.vcxproj
del UIforETWStatic.sln
@rem Clean up the build directory at the end to avoid subsequent build warnings.
rmdir Release /s/q
|
Clean the release directory after doing a static build.
|
Clean the release directory after doing a static build.
|
Batchfile
|
apache-2.0
|
ariccio/UIforETW,u-engine/UIforETW,OSVR/UIforETW,u-engine/UIforETW,MikeMarcin/UIforETW,mwinterb/UIforETW,google/UIforETW,mwinterb/UIforETW,ariccio/UIforETW,modulexcite/UIforETW,ariccio/UIforETW,mwinterb/UIforETW,OSVR/UIforETW,ariccio/UIforETW,u-engine/UIforETW,MikeMarcin/UIforETW,modulexcite/UIforETW,google/UIforETW,google/UIforETW,MikeMarcin/UIforETW,modulexcite/UIforETW,OSVR/UIforETW,google/UIforETW
|
b72e9eb50fc336b05d9e2a1612ea98c8041755cf
|
doc/reference/Build.cmd
|
doc/reference/Build.cmd
|
@echo off
@echo ...
@echo Running reference documentation Build Script, capturing output to buildlog.txt ...
@echo Start Time: %time%
..\..\build-support\tools\nant\bin\nant %1 %2 %3 %4 %5 %6 %7 %8 %9 > buildlog.txt
@echo ...
@echo ************************
@echo Build Complete!
@echo ************************
@echo End Time: %time%
@echo
|
@echo off
@echo ...
@echo Running reference documentation Build Script, capturing output to buildlog.txt ...
@echo Start Time: %time%
..\..\build-support\tools\nant\bin\nant %1 %2 %3 %4 %5 %6 %7 %8 %9 > buildlog.txt
type buildlog.txt
@echo ...
@echo ************************
@echo Build Complete!
@echo ************************
@echo End Time: %time%
@echo
|
Print out buildlog.txt to console
|
Print out buildlog.txt to console
|
Batchfile
|
apache-2.0
|
kvr000/spring-net,dreamofei/spring-net,yonglehou/spring-net,dreamofei/spring-net,zi1jing/spring-net,yonglehou/spring-net,likesea/spring-net,spring-projects/spring-net,yonglehou/spring-net,likesea/spring-net,spring-projects/spring-net,spring-projects/spring-net,djechelon/spring-net,likesea/spring-net,kvr000/spring-net,zi1jing/spring-net,kvr000/spring-net,djechelon/spring-net
|
5b1f733c45628ee64dacb3086a7844cc15da4b8c
|
preview.bat
|
preview.bat
|
@echo off
py25 setup.py --long-description | py25 web\rst2html.py --link-stylesheet --stylesheet=http://www.python.org/styles/styles.css > ~pypi.html
start ~pypi.html
|
@echo off
REM
REM Convert setup.py's long description to HTML and show it.
REM
py25 setup.py --long-description | py25 web\rst2html.py --link-stylesheet --stylesheet=http://www.python.org/styles/styles.css > ~pypi.html
start ~pypi.html
del ~pypi.html
|
Add comment and delete temporary file after use.
|
Add comment and delete temporary file after use.
--HG--
extra : convert_revision : svn%3Aa2f44796-8cc0-49ac-b43f-6a96d556d52d/trunk%40391
|
Batchfile
|
mit
|
denfromufa/comtypes,denfromufa/comtypes,denfromufa/comtypes,denfromufa/comtypes,denfromufa/comtypes
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.