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 is for MySQL 8+ and MariaDB 10.0.5+ | |
select REGEXP_REPLACE(COLUMN_NAME_HERE,'\\D','') from TABLE_NAME_HERE; |
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 | |
$object = $this->getInput(); | |
$ref = new ReflectionClass(); | |
$prop = $ref->getProperty('options'); | |
$prop->setAccessible(true); | |
$config_name = $prop->getValue($this->getInput())["configuration"]; |
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 | |
$states = [ | |
'AL'=>'ALABAMA', | |
'AK'=>'ALASKA', | |
'AS'=>'AMERICAN SAMOA', | |
'AZ'=>'ARIZONA', | |
'AR'=>'ARKANSAS', | |
'CA'=>'CALIFORNIA', | |
'CO'=>'COLORADO', |
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
<v-row> | |
<v-col> | |
<h3 class="my-5">Contact Information</h3> | |
</v-col> | |
</v-row> | |
<v-row> | |
<v-col> | |
<v-text-field | |
v-model="firstName" | |
label="Enter First Name" |
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 isnt the greatest quality, but it works for a quick screen grab for Slack | |
ffmpeg -i input.webm -strict experimental output.mp4 |
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 | |
header("HTTP/1.0 500 Internal Server Error"); | |
http_response_code(500); |
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
2021-05-14 17:20:38+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.23-1debian10 started. | |
2021-05-14 17:20:38+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql' | |
2021-05-14 17:20:38+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.23-1debian10 started. | |
2021-05-14T17:20:38.625575Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.23) starting as process 1 | |
2021-05-14T17:20:38.638508Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. | |
2021-05-14T17:20:40.791471Z 1 [ERROR] [MY-013171] [InnoDB] Cannot boot server version 80023 on data directory built by version 80025. Downgrade is not supported | |
mysqld: Can't open file: 'mysql.ibd' (errno: 0 - ) | |
2021-05-14T17:20:45.773352Z 1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine | |
2021-05-14T17:20:45.774076Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed. | |
2021-05-14T17:20:45.774583Z 0 [ERROR] [MY-010119] [Server] Aborting |
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
mv /sourceDir/{.,}* /destinationDir/ |
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
SELECT TABLE_NAME | |
FROM `INFORMATION_SCHEMA`.`tables` | |
where table_schema='YOUR_DATABASE_NAME_HERE'; |
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
ps -ax | grep PROCESS_NAME_HERE | grep KEYWORD_HERE | awk '{print $1}' | xargs kill -9 | |
#Example | |
# ps -ax | grep php | grep importData | awk '{print $1}' | xargs kill -9 |
NewerOlder