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
@Composable | |
fun SafeTextField(modifier = Modifier){ | |
TextField( | |
modifier = modifier.onPreviewKeyEvent { | |
it.nativeKeyEvent.keyCode == KeyEvent.KEYCODE_DEL | |
} | |
) |
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
codesign -d --extract-certificates ./[App Name Here].app; | |
openssl x509 -inform DER -in codesign0 -out codesign0.pem; | |
openssl x509 -inform DER -in codesign1 -out codesign1.pem; | |
openssl x509 -inform DER -in codesign2 -out codesign2.pem; | |
cat codesign1.pem codesign2.pem > cachain.pem; | |
openssl x509 -inform DER -in codesign0 -noout -nameopt -oneline -subject -serial -dates; |
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
/^((\b(localhost)\b:[0-9]+)|([a-z0-9][a-z0-9-]{1,61}[a-z0-9](?:\.[a-z]{2,})+(:[0-9]+)?))$/ |
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
#!/bin/bash | |
sudo /opt/bitnami/ctlscript.sh stop tomcat | |
cd /opt/bitnami | |
sudo cp -f apache-tomcat/webapps/jenkins.war apps/jenkins/jenkins.war.bak | |
sudo rm -r apache-tomcat/webapps/jenkins | |
sudo rm -r apache-tomcat/webapps/jenkins.war | |
sudo rm -r apache-tomcat/work/Catalina/localhost/jenkins | |
sudo wget http://mirrors.jenkins-ci.org/war/latest/jenkins.war | |
sudo mv jenkins.war apache-tomcat/webapps/ |
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
// Available variables which can be used inside of strings. | |
// ${workspaceRoot}: the root folder of the team | |
// ${file}: the current opened file | |
// ${fileBasename}: the current opened file's basename | |
// ${fileDirname}: the current opened file's dirname | |
// ${fileExtname}: the current opened file's extension | |
// ${cwd}: the current working directory of the spawned process | |
{ | |
"version": "0.1.0", | |
"command": "cargo", |
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
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Debug", | |
"type": "lldb", |
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
USE master | |
GO | |
IF OBJECT_ID('sp_helpindex2', 'P') IS NOT NULL | |
BEGIN | |
DROP PROCEDURE sp_helpindex2 | |
END | |
IF OBJECT_ID('sp_helpindex3', 'P') IS NOT NULL | |
BEGIN | |
DROP PROCEDURE sp_helpindex3 | |
END |
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
--===================================================== | |
-- Author: Jared Dobson | |
-- Date: 12/22/2010 | |
-- Description: Shows Execution Plan for a given spid. | |
--===================================================== | |
CREATE PROCEDURE sp_queryplan ( @SessionID INT ) | |
AS | |
BEGIN | |
SELECT | |
[DEQP].[query_plan], |
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
CREATE PROCEDURE [dbo].[EnableAllTriggers] | |
AS | |
DECLARE @string VARCHAR(8000) | |
DECLARE @tableName NVARCHAR(500) | |
DECLARE cur CURSOR |