Skip to content

Instantly share code, notes, and snippets.

View figonzal1's full-sized avatar

Felipe González Alarcón figonzal1

View GitHub Profile
# zap-api-scan rule configuration file
# Change WARN to IGNORE to ignore rule or FAIL to fail if rule matches
# Active scan rules set to IGNORE will not be run which will speed up the scan
# Only the rule identifiers are used - the names are just for info
# You can add your own messages to each rule by appending them after a tab on each line.
0 WARN (Directory Browsing - Active/release)
10010 WARN (Cookie No HttpOnly Flag - Passive/release)
10011 WARN (Cookie Without Secure Flag - Passive/release)
10012 WARN (Password Autocomplete in Browser - Passive/release)
10015 WARN (Incomplete or No Cache-control and Pragma HTTP Header Set - Passive/release)
@figonzal1
figonzal1 / morse.php
Last active March 18, 2021 04:12
Traductor Morse - Español
<?php
$morse_code = [
#LETRAS
"a" => ".-",
"b" => "-...",
"c" => "-.-.",
"d" => "-..",
"e" => ".",
fun Context.doInstallation(packageName: String) {
try {
//LOG
Timber.d(getString(R.string.INTENT_GOOGLEPLAY))
//Intenta abrir google play
startActivity(Intent(Intent.ACTION_VIEW).apply {
addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
//VERSION GROOVY
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "androidx.core:core-ktx:1.8.0"
//VERSION DSL
implementation(fileTree("libs") { include(listOf("*.jar")) })
implementation("androidx.core:core-ktx:1.8.0")
//VERSION GROOVY
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'com.google.gms.google-services'
//VERSION DSL
plugins {
id("com.android.application")
id("kotlin-android")
//VERSION GROOVY
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.mysign
}
debug {}
//Version GROOVY
defaultConfig {
applicationId "com.myapp"
minSdkVersion 23
targetSdkVersion 31
versionCode 32
versionName "1.0"
}
//VERSION DSL
//VERSION GROOVY
dependencies {
classpath "com.android.tools.build:gradle:7.2.1"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.0"
}
//VERSION DSL
dependencies {
classpath("com.android.tools.build:gradle:7.2.1")
//VERSION GROOVY
task clean(type: Delete) {
delete rootProject.buildDir
}
//VERSION DSL
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}
include(":app")
rootProject.name = "Kotlin DSL"