This file contains hidden or 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
cat > /etc/yum.repos.d/CentOS-Stream-AppStream.repo << EOF | |
# CentOS-Stream-AppStream.repo | |
# | |
# The mirrorlist system uses the connecting IP address of the client and the | |
# update status of each mirror to pick current mirrors that are geographically | |
# close to the client. You should use this for CentOS updates unless you are | |
# manually picking other mirrors. | |
# | |
# If the mirrorlist does not work for you, you can try the commented out | |
# baseurl line instead. |
This file contains hidden or 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 | |
tm AS transaction_timestamp, | |
-- Calculate the window label | |
DATE_FORMAT( | |
DATE_ADD(tm, INTERVAL ((60 - MINUTE(NOW()))*60)-1 SECOND), | |
CONCAT('%Y-%m-%d %H:', MINUTE(NOW())) | |
) AS window_label | |
FROM | |
subscriber_history_tracking | |
WHERE |
This file contains hidden or 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
-- a table to be partition by column 'created_at' | |
-- make sure all primary key and unique key of table contains column used for partition | |
CREATE TABLE `table_to_be_partitioned` ( | |
`id` BIGINT(20) NOT NULL AUTO_INCREMENT, | |
`col_a` VARCHAR(255) DEFAULT NULL, | |
`cal_b` VARCHAR(255) DEFAULT NULL, | |
`created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP(), | |
`updated_at` DATETIME DEFAULT NULL, | |
PRIMARY KEY (`created_at`,`id`), | |
KEY `id` (`id`) |
This file contains hidden or 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 java.nio.charset.StandardCharsets; | |
import java.security.InvalidAlgorithmParameterException; | |
import java.security.InvalidKeyException; | |
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.SecureRandom; | |
import java.security.spec.InvalidKeySpecException; | |
import java.util.Arrays; | |
import java.util.Base64; |
This file contains hidden or 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
# | |
# Based on custom settings by Bruce Dodson, http://gisdeveloper.tripod.com/scite.html | |
# Does not support `start.in.monospaced.mode`, but invert the font setting among monospace and non-monospace font in order to start SciTE with monospace font | |
# | |
tabbar.hide.one=1 | |
tabbar.multiline=1 | |
toolbar.visible=1 | |
statusbar.visible=1 |
This file contains hidden or 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 USER 'username'@'localhost' IDENTIFIED BY 'password'; | |
CREATE USER 'username'@'%' IDENTIFIED BY 'password'; | |
GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost'; | |
GRANT ALL PRIVILEGES ON *.* TO 'username'@'%'; | |
FLUSH PRIVILEGES; |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
This file contains hidden or 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
DELIMITER $$ | |
DROP FUNCTION IF EXISTS `random_datetime_between`$$ | |
CREATE FUNCTION `random_datetime_between`(date_from DATETIME, date_to DATETIME) RETURNS DATETIME | |
BEGIN | |
/** | |
* reference: https://stackoverflow.com/a/49727273 | |
*/ | |
DECLARE result DATETIME; |
This file contains hidden or 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
"""Jedi mini server for deoplete-jedi | |
This script allows Jedi to run using the Python interpreter that is found in | |
the user's environment instead of the one Neovim is using. | |
Jedi seems to accumulate latency with each completion. To deal with this, the | |
server is restarted after 50 completions. This threshold is relatively high | |
considering that deoplete-jedi caches completion results. These combined | |
should make deoplete-jedi's completions pretty fast and responsive. | |
""" |
This file contains hidden or 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
svn propset svn:ignore -RF .gitignore . |
NewerOlder