首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏程序员叨叨叨

    4.4 CG Profiles

    4.4 CG Profiles Profile 在英文中的意思是“侧面、轮廓”,文献[1]第三页写到:A Cg profile defines a subset of the full Cg language 当前 Cg compiler 所支持的 profiles 有: * OpenGL ARB vertex programs Runtime profile: CG_PROFILE_ARBVP1 Compiler Runtime profile: CG_PROFILE_FP20 Compiler option: _profile fp20 * DirectX 9 vertex shaders Runtime profiles CG_PROFILE_VS_2_0 Compiler options:-profile vs_2_x 、 -profile vs_2_0 * DirectX 9 pixel shaders Runtime profiles : CG_PROFILE_VS_1_1 Compiler options:-profile vs_1_1 * DirectX 8 pixel shaders Runtime profiles: CG_PROFILE_PS

    57410发布于 2018-08-28
  • 来自专栏CoderJia的工作笔记

    重学SpringBoot3-Profiles

    Profiles简介 Profiles 是 Spring 框架提供的一种机制,允许开发者为不同的环境定义不同的配置。 如何在Spring Boot中使用Profiles 定义Profiles 在 Spring Boot 应用中,可以通过在 application.properties 或 application.yml 配置文件中指定 spring.profiles.active 属性来激活 Profiles。 spring.profiles.active=dev 作为命令行参数:在启动应用时通过 --spring.profiles.active 指定。 java -jar myapp.jar --spring.profiles.active=dev,test 在环境变量中设置:设置 SPRING_PROFILES_ACTIVE 环境变量。

    55310编辑于 2024-10-18
  • 来自专栏Spring Cloud 微服务

    spring.profiles.active 和 spring.profiles.include 的区别

    spring.profiles.active 和 spring.profiles.include 有什么区别呢?笔者认为主要是语意上的区别,实际使用效果相同。 使用示例如下: #每种环境都使用 mysql spring.profiles.include: mysql db.schema: db --- #开发环境 spring.profiles: dev db : hostname: localhost username: dev password: dev --- #生产环境 spring.profiles: prod spring.profiles.include : https,log db: hostname: company.com username: prod password: prod --- spring.profiles: mysql java -jar app.jar --spring.profiles.include=dev 是等效的,可以在控制台看到输出的日志都是:The following profiles are active

    5.2K51发布于 2020-07-09
  • 来自专栏程序员闻人

    源码解读 Spring Boot Profiles

    前言 上文《一文掌握 Spring Boot Profiles》 是对 Spring Boot Profiles 的介绍和使用,因此本文将从源码角度探究 Spring Boot Profiles,让我们看下 Spring Boot 底层是如何应用 Profiles 进行环境配置的隔离与生效的。 这里的 Loader 是 ConfigFileApplicationListener类内部私有类,用于协调属性源和配置 Profiles,我们再进一步跟踪到它的 load 方法。 ? ,给 profiles 属性添加两个元素,null 和 默认的Profile。 并且 documents 对象经过 Loader#asDocuments 方法关联上 spring.profiles.active 属性,profiles 属性添加一个定义为 prod 的 Profile

    60330发布于 2019-09-19
  • 来自专栏鸿鹄实验室

    Malleable-C2-Profiles配置

    关于Malleable-C2-Profiles: 在日常的渗透测试工作中,我们需要做很多的规避操作,因为我们所使用的C2工具等,可能早已被AV等防护软件所标记,所以我们需要订制我们的攻击工具。 下面我们开始编写profiles,关注profiles的编写有下面几个通用的点,可以防止错误。 引用参数时使用双引号,不要使用单引号 允许使用分号 注意反斜线、引号转义 特殊符号无须转义(! 参考文章: https://bluescreenofjeff.com/2017-01-24-how-to-write-malleable-c2-profiles-for-cobalt-strike/ https www.cobaltstrike.com/help-malleable-c2 https://bluescreenofjeff.com/2017-01-24-how-to-write-malleable-c2-profiles-for-cobalt-strike

    1.8K30发布于 2021-04-15
  • 来自专栏ops技术分享

    maven配置 setting.xml详解--Profiles、Activation

    Profiles 作用:根据环境参数来调整构建配置的列表。 settings.xml中的profile元素是pom.xml中profile元素的裁剪版本。 <profiles> <profile> <id>test</id> <! -- 插件仓库列表 --> <pluginRepositories /> </profile> </profiles> ...

    4.6K20发布于 2021-06-28
  • 来自专栏公众号:Lucifer三思而后行

    Oracle 调整密码管理策略 PROFILES

    profile for a20 col resource_name for a30 col resource_type for a20 col limit for a20 select * from dba_profiles

    76310发布于 2021-09-14
  • 来自专栏Linyb极客之路

    如何使用Spring Boot的Profiles

    激活方式: 使用 application.properties属性文件激活 . spring.profiles.active=dev 2.使用命令行, 当我们在命令行添加一个活动配置时,将取代属性文件中的活动配置 java -jar -Dspring.profiles.active=dev myapp.jar 3.通过编程激活: @Component @Profile("dev") //也可以配置成@Profile 5.系统环境激活: export spring_profiles_active=dev 这是Spring Boot配置外部化的灵活。

    1.5K30发布于 2018-09-27
  • 来自专栏zhimingcow

    苹果开发者Certificates, Identifiers & Profiles

    分为特定App和通用两种,一般选择通用的,就不用每次新建工程都创建一次对应的App IDs 3、创建配置文件Provisioning Profiles

    1.8K10发布于 2020-03-12
  • 来自专栏c++与qt学习

    MySQL: 使用show profiles分析SQL性能

    使用show profiles分析SQL性能 介绍 如何查看执行SQL的耗时的步骤:开启profile、发送sql、查看profile的资源开销结果、关闭profile。 ---- profile默认是不打开的 mysql> show profiles; Empty set (0.02 sec) 验证修改后的结果 mysql> show variables like "% --------+ | 599 | +----------+ --查看当前session所有已产生的profile root@localhost[dhy]> show profiles -----------------------------------------------------------------------+ | Warning | 1287 | 'SHOW PROFILES root@localhost[sakila]> show profiles; +----------+------------+--------------------------------

    1.7K30发布于 2021-11-15
  • 来自专栏电光石火

    spring.profiles.active分区配置

    yml添加配置 spring: profiles: active: dev #开发 --- spring: profiles: dev hello: name: liu #正式 - -- spring: profiles: prod hello: name: liuk java读取代码 @Component public class Global { public

    1.1K20发布于 2019-12-05
  • 来自专栏程序员闻人

    一文掌握 Spring Boot Profiles

    Profiles 一节里介绍,文档里把 Spring Boot Profiles 也叫做 Spring Profiles。 那么什么又是 Spring Profiles,为什么需要它呢? Spring Profiles 实战 在 Spring 程序中有两种方式使用 Profiles:XML 配置和注解 @Profile。 采用启动参数方式指定,固定格式:-Dspring.profiles.active=dev 注解 @Profiles 定义Profile 使用注解定义 Profile 也比较简单,引入一个新的注解 @Profiles SpringApplicationBuilder.profiles(...) ? 中设置 spring.profiles.active=dev ,用于平常开发使用,当需要打包上传服务器时,通过启动参数方式 jar -Dspring.profiles.active=prod xxx.jar

    2.6K40发布于 2019-09-19
  • 来自专栏nummy

    chrome的debug工具Profiles使用方法

    简介 本文介绍下chrome的debug工具Profiles,很多人应该没用过,甚至不知道。 Profiles是什么 Profiles在哪里 如下图 ? Profiles具体可以干什么 定位性能问题,借助它我们可以 可以借助Profiles定位出比较耗时的函数 查找页面卡顿的原因 使用方法一 我们想查看点击一个按钮后,到展示页面的性能,我们可以打开工具, 这个命名为test的Profiles就是记录console.profile(‘test’)时间点到console.profileEnd(‘test’)时间点间的性能。

    1.1K20发布于 2018-08-27
  • 来自专栏Linyb极客之路

    Spring Boot配置特定属性spring.profiles

    要加载特定的配置文件属性文件,我们可以使用命令行选项-Dspring.profiles.active = myProfileName。 缺省默认SpringBoot是加载application.properties,无需任何-Dspring.profile.active选项,或使用-Dspring.profiles.active = default spring.profiles.active=prod 比如你有三个配置文件: src/main/resources/application.properties(默认的) src/main/resources 你指定的dev) src/main/resources/application-prod.properties(你指定的prod) 如果在application.properties中有: spring.profiles.active spring.profile.include属性 在application-prod.properties还可以加入 spring.profiles.include=throttling,db 这是无条件地添加活动配置文件

    2.1K30发布于 2018-12-19
  • 来自专栏CNCF

    Security Profiles Operator发布v0.4.0

    作者:Jakub Hrozek、Juan Antonio Osorio、Paulo Gomes、Sascha Grunert 安全分析文件操作器(Security Profiles Operator, /security-profiles-operator "]#security-profiles-operator")联系我们。 参考资料 [1]Security Profiles Operator,SPO: https://sigs.k8s.io/security-profiles-operator [2]官方文档: https #ebpf-based-recording [4]我们团队在 quay.io 的镜像: https://quay.io/organization/security-profiles-operator [ /blob/main/deploy/base/profiles/selinuxrecording.cil [9]度量文档: https://github.com/kubernetes-sigs/security-profiles-operator

    52210编辑于 2021-12-22
  • 来自专栏SpringBoot 核心技术

    SpringBoot激活profiles你知道几种方式?

    激活Profiles的方式 激活的profiles要在项目内创建对应的配置文件,格式为application-{profile}.yml。 命令行方式 命令行方式是一种外部配置的方式,在执行java -jar命令时可以通过--spring.profiles.active=test的方式进行激活指定的profiles列表。 SPRING_PROFILES_ACTIVE=dev Windows系统配置环境变量 环境变量的配置方式请参考Java环境变量配置,新建一个名为SPRING_PROFILES_ACTIVE的系统环境变量 Java系统属性方式 Java系统属性方式也是一种外部配置的方式,在执行java -jar命令时可以通过-Dspring.profiles.active=test的方式进行激活指定的profiles列表 我们只需要在application.yml配置文件添加配置即可,使用方式如下所示: spring: profiles: # 激活profiles active: dev 优先级 命令行方式

    1K10发布于 2019-10-24
  • 来自专栏codelang

    Baseline Profiles 在 Compose 中的应用

    为什么需要 Baseline Profiles ? Baseline Profiles 流程图 从编写、编译到安装的整体流程图 本流程图更专注于 Baseline Profiles 在开发层面的执行过程,像官方罗列的 Cloud 部分,本文不阐述。 带来的提升 我们需要测量 Compose 项目有无 Baseline Profiles 加持时性能的对比,默认我们的 compose 项目就有了 Profiles 加持,我们需要移除 Profiles 加持的启动数据,单元测试如下: 测量结果: 测试 10 组数据,中位数的值比没有 Profiles 加持快 30ms 左右 这里就贴一个样本吧,因为在多次的测试过程中,大部分都是有 Profiles 贴个友链: Google I/O : 使用 Baseline Profiles 优化启动性能 Android 强推的 Baseline Profiles 国内能用吗?

    1.4K30编辑于 2022-11-30
  • 来自专栏用户7621540的专栏

    SQL语句资源消耗分析-show profiles

    一个在大厂做高级Java开发的程序员,每天分享技术干货文章 前言 前几篇文章我们讲了什么是 MySQL 索引,explain分析SQL语句是否用到索引,以及索引的优化等一系列的文章,今天我们来讲讲Show profiles 给个[在看]&[赞],是对IT老哥最大的支持 Show profiles 是什么 是MySQL提供可以用来分析当前会话中SQL语句执行的资源消耗情况。可以用于SQL的调优测量。 默认情况下,参数处于关闭状态,并保存最近 15 次的运行结果 开启 profiles 查看是否开启 show variables like "%profiling%"; 开启 set profiling = 1; 开始分析 先执行要分析的SQL语句 执行show profiles;会出现如下结果 ?

    97840发布于 2020-09-16
  • 来自专栏hml_知识记录

    springboot中spring.profiles.include的妙用

    springboot中spring.profiles.include的妙用。 我们有这样的一个springboot项目。 我们可以使用spring.profiles.include来实现三种不同环境的一键切换。 项目总(入口)配置文件: bootstrap.yml ,内容如下 spring.profiles.active: dev #dev、test、prod 三种配置可以在这里进行一键切换,默认激活 dev : prodDb,prodFtp,prodRedis spring.profiles.include 的作用是可以叠加激活新的profile ,这样可以在总的项目配置(bootstrap.yml)中实现一键切换 : - 子项1 - 子项2 - 子项3 也可以采用 逗号分隔元素列表的方式,如: spring.profiles.include: 子项1,子项2,子项3 —————————

    1.7K10编辑于 2022-08-05
  • 来自专栏伪架构师

    介绍一个小工具:Security Profiles Operator

    Security Profiles Operator 项目为此而来,希望能够降低在 Kubernetes 集群中使用这些安全技术的难度。 目前支持的功能矩阵如下: 功能 Seccomp SELinux AppArmor Profile CRD Yes Yes Yes ProfileBinding Yes No No Deploy profiles into nodes Yes Yes WIP Remove profiles no longer in use Yes Yes WIP Profile Auto-generation (logs) Yes 接下来安装 SPO: $ kubectl apply -f https://raw.githubusercontent.com/kubernetes-sigs/security-profiles-operator 借助 SPO 传递 Seccomp 创建一个 Seccomp Profile,其中加入了对系统调用的审计日志: apiVersion: security-profiles-operator.x-k8s.io

    90610编辑于 2022-03-31
领券