This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def t1Resource(x): | |
| existCheckt1 = resource.count(x) | |
| if existCheckt1 > 0: | |
| T1.append(x) | |
| resource.remove(x) | |
| else: | |
| res = min(resource) | |
| T1.append(res) | |
| resource.remove(res) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def build_status = false | |
| def test_status = false | |
| pipeline { | |
| agent { | |
| node { | |
| label 'jslave' | |
| } | |
| } | |
| environment { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| workdir=$(pwd) | |
| tempFile=$HOME/temp.txt | |
| cd ${workdir} | |
| git branch -a | grep 'origin' | grep -v 'HEAD' | cut -d "/" -f3 -f4 > ${tempFile} | |
| for branch in `cat ${tempFile}`; | |
| do | |
| git checkout ${branch} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #--------------- Initial Variables ---------------# | |
| flagPos="$(cat /home/$USER/.record)" | |
| flagName="testflag.txt" | |
| # flag="${flagPos}${flagName}" | |
| userCommandHistory="/home/$USER/.bash_history" | |
| fileDestination="$(shuf -n 1 /home/$USER/directory)" | |
| #------------- End of Init Variables -------------# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pwn import * | |
| r = remote('192.168.3.100',6699) | |
| for i in range(1,11): | |
| r.recvuntil('No: (%d) ' % i) | |
| calc = r.recvuntil('=>', drop=True) | |
| print ('%d %s' % (i , str(eval(calc)))) | |
| r.send(str(eval(calc)) + '\n') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!usr/bin/python | |
| def countBits(n, carry): | |
| binNum = [] | |
| car0 = 0 | |
| car1 = 0 | |
| def decToBin(n): | |
| while(n>0): | |
| if n % 2 == 0: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def buildStatus = false | |
| def testStatus = false | |
| pipeline { | |
| agent any | |
| stages { | |
| stage('Checkout branch') { | |
| parallel { | |
| stage('Checkout branch') { | |
| steps { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def didTimeout = false | |
| def abortStatus = false | |
| pipeline { | |
| agent any | |
| stages { | |
| stage ('Deploy Application') { | |
| steps { | |
| script { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Code by rkalit | |
| */ | |
| package main | |
| import( | |
| "fmt" | |
| "bufio" | |
| "os" | |
| ) |