Skip to content

Commit

Permalink
Fixed naming convention of websites
Browse files Browse the repository at this point in the history
Signed-Off-By: Parth<[email protected]>
  • Loading branch information
parthyadav3105 committed Feb 25, 2020
1 parent 23f0567 commit 707c631
Show file tree
Hide file tree
Showing 46 changed files with 37 additions and 23 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,13 @@





### Rules:

0. All URL will end with ".in"
1. Name of a website can contain only alpha-numeric characters and hyphen '-'
2. All URL will follow lowercase syntax (Google.in is wrong| google.in is right)
3. replace '+' with 'plus' and append '-' in between for joining with other words, for example: for alt+F4 you have to specify URL 'alt-plus-F4'
4. If your URL starts with a number then add character 'n' in front of it. eg: for '2020' the URL will be 'n2020'
5. Should not container dot '.' or space ' '. Replace them with a hyphen '-'
5 changes: 2 additions & 3 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ do
url=${imagename##*/}
helm install $url webhunt-charts/ --set url=$url
done
echo("wait for 7sec....")
echo "wait for 7sec...."
sleep 7
bash generate_firefox_yml.sh > firefox.yml
kubectl apply -f firefox.yml
bash generate_firefox_yml.sh | kubectl apply -f -
2 changes: 1 addition & 1 deletion generate_firefox_yml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ do
ip=$(kubectl get svc $svc -o go-template={{.spec.clusterIP}})
echo " - ip: \"$ip\"
hostnames:
- \"$svc\""
- \"$svc.in\""
done
1 change: 0 additions & 1 deletion riddles/2013/conf

This file was deleted.

1 change: 0 additions & 1 deletion riddles/404/conf

This file was deleted.

1 change: 0 additions & 1 deletion riddles/8.8.8.8/conf

This file was deleted.

Binary file removed riddles/Great!/DoNotCheat.png
Binary file not shown.
1 change: 0 additions & 1 deletion riddles/Great!/conf

This file was deleted.

2 changes: 1 addition & 1 deletion riddles/c++/conf
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c++
c-plus-plus
2 changes: 1 addition & 1 deletion riddles/ctrl+s/conf
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ctrl+s
ctrl-plus-s
2 changes: 1 addition & 1 deletion riddles/ctrl+z/conf
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ctrl+z
ctrl-plus-z
Binary file added riddles/great/DoNotCheat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
1 change: 1 addition & 0 deletions riddles/great/conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
great
File renamed without changes.
8 changes: 4 additions & 4 deletions riddles/Great!/test.cpp → riddles/great/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@

void ChangeIt(char Text[])
{
for (int K = 1; Text[K] != '\0'; K++)
int K;
for (K = 1; Text[K] != '\0'; K++)
{
if (Text[K] >= 'b' && Text[K] <= 'd')
Text[K-1] = 'e';
else if (Text[K] == '!')
Text[K-1] = 't';
else
Text[K-1] = Text[K];
}
Text[K-1] = 't';
}

int main()
{
char oldText[] = "0Grca!";
char oldText[] = "0grca";
ChangeIt(oldText);
cout << oldText << endl;
}
Expand Down
2 changes: 2 additions & 0 deletions riddles/internetexplorer/conf
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
internetexplorer


Binary file removed riddles/kubernetes/DoNotCheat.png
Binary file not shown.
1 change: 0 additions & 1 deletion riddles/kubernetes/conf

This file was deleted.

File renamed without changes
File renamed without changes
1 change: 1 addition & 0 deletions riddles/n2013/conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
n2013
File renamed without changes.
File renamed without changes
File renamed without changes
1 change: 1 addition & 0 deletions riddles/n404/conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
n404
File renamed without changes.
File renamed without changes
File renamed without changes
1 change: 1 addition & 0 deletions riddles/n8-8-8-8/conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
n8-8-8-8
File renamed without changes.
2 changes: 1 addition & 1 deletion riddles/no1/conf
Original file line number Diff line number Diff line change
@@ -1 +1 @@
no
no1
2 changes: 1 addition & 1 deletion riddles/no2/conf
Original file line number Diff line number Diff line change
@@ -1 +1 @@
no
no2
2 changes: 1 addition & 1 deletion riddles/no3/conf
Original file line number Diff line number Diff line change
@@ -1 +1 @@
no
no3
Binary file added riddles/openstack/DoNotCheat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
1 change: 1 addition & 0 deletions riddles/openstack/conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
openstack
File renamed without changes.
Binary file removed riddles/theQRshit/DoNotCheat.png
Binary file not shown.
1 change: 0 additions & 1 deletion riddles/theQRshit/conf

This file was deleted.

Binary file added riddles/theqrshit/DoNotCheat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
2 changes: 2 additions & 0 deletions riddles/theqrshit/conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
theqrshit

Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

<body>
<div class="querybox">
<h3>Why are you staring screen? <br><br>Just scan the QR</h3>
<h3>Why are you staring the screen? <br><br>Just scan the QR</h3>
<img src="DoNotCheat.png">
</div>

Expand Down
1 change: 1 addition & 0 deletions roles/build_images/files/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Dockerfile
conf
*.cpp
5 changes: 3 additions & 2 deletions webhunt-charts/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ kind: Service
metadata:
name: {{.Values.url}}
spec:
selector:
website: {{.Values.url}}
ports:
- protocol: TCP
port: 80
- port: 80
targetPort: 80

0 comments on commit 707c631

Please sign in to comment.