View .env
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GITLAB_RUNNER_IMAGE=gitlab/gitlab-runner:alpine | |
GITLAB_HOST=localhost | |
GITLAB_RUNNER_REGISTRATION_TOKEN=my_runner_registration_token |
View docker-compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This docker compose will start a gitlab instance, | |
version: "3.5" | |
services: | |
gitlab: | |
image: "gitlab/gitlab-ee:latest" | |
restart: always | |
hostname: "localhost" | |
environment: | |
GITLAB_OMNIBUS_CONFIG: | | |
external_url 'https://localhost' |
View .env
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GITLAB_IMAGE=gitlab/gitlab-ee:latest | |
GITLAB_RUNNER_IMAGE=gitlab/gitlab-runner:alpine | |
GITLAB_HOME=/srv/gitlab | |
GITLAB_HOST=localhost | |
#ports | |
HTTP_PORT=80 | |
HTTPS_PORT=443 | |
SSH_PORT=23 | |
REGISTRY_PORT=5050 |
View Main.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sample.testapi; | |
public class Main { | |
public static void main(String[] a) throws InterruptedException { | |
int x = 100; | |
int y = 100; | |
while (true) { | |
Thread.sleep(60000); | |
try { |
View SearchUtilTest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SearchTest { | |
@Test | |
public void testSearchDetailsMore() { | |
List<LevelThreeEntity> list = getLevelThreeEntries(); | |
JsonObject json = Json.createObjectBuilder() | |
//threeName:in the same object | |
.add("threeName","proto") | |
//id:In BaseEntity | |
.add("id",3L) | |
//twoint in the exact parent object |
View AppCache.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.support.annotation.NonNull; | |
import android.support.v4.util.LruCache; | |
public class AppCache<T> { | |
private final int maxMemory = (int) (Runtime.getRuntime().maxMemory()/1024); | |
private final int cacheSize = maxMemory / 6; |
View mobilecheck.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var isMobile = { | |
Android: function() { | |
return navigator.userAgent.match(/Android/i); | |
}, | |
BlackBerry: function() { | |
return navigator.userAgent.match(/BlackBerry/i); | |
}, | |
iOS: function() { | |
return navigator.userAgent.match(/iPhone|iPad|iPod/i); | |
}, |
View foo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo 'foo'; | |
?> |
View nmapscan.pl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# usage .txt file with ip - hostnames one per line | |
#requires root | |
my @ports = (20, 21, 22, 80, 443, 445); #add tcp ports here. | |
print "\nService version 7 status\n"; | |
print "\===============================\n"; | |
while (defined($ipaddr = <>)) { | |
chomp ($ipaddr); |
View encoder.pl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
print "\(c) Zeron \n"; | |
print "En/Decoder (zeron)"; | |
#**********************Main Menu**************************** | |
menu:; | |
print "\n\nMenu:\n"; | |
print "1.Encode\n"; | |
print "2.Decode\n"; |
NewerOlder