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 | |
################################################################### | |
#Script Name : mysql-8-bug.sh | |
#Description : A bug with MySQL 8.0.1 - 8.0.29. Running parallel TRUNCATE causing foreign key constraint fails. Filed with MySQL team at https://bugs.mysql.com/bug.php?id=107532 | |
#Author : Dimitry Kudryavtsev | |
#Email : [email protected] | |
################################################################### | |
DB_USER='root'; | |
DB_PASSWD='root'; |
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
################################################################### | |
#Script Name : redis-delete | |
#Description : Given a host, port and pattern to delete from Redis. Example ./redis-delete.sh redis-XXXX.XXXX.com 6379 stage:* | |
#Args : <host> <port> <pattern> | |
#Author : Dimitry Kudryavtsev | |
#Email : [email protected] | |
################################################################### | |
if [ $# -ne 3 ] | |
then |
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 | |
#title :pool-reg-crt.sh | |
#donations :ADA: addr1q832gesdnxn9twyymtqmqywcsutmqc23u6wghr5y44mmyn6dze685vgkuem8hvd3kdej7kpzuzf7wxk3qndrmwjplusq5rr3d6 | |
#description :This script makes it easy to register your pool, see https://docs.cardano.org/projects/cardano-node/en/latest/stake-pool-operations/register_stakepool.html. | |
#author :Dimitry Kudryavtsev ([email protected]) | |
#version :1 | |
#usage :./pool-reg-crt.sh <payment.addr> <payment.skey> <stake.skey> <cold.skey> <pool-registration.cert> <delegation.cert> | |
#notes :For updates, please look at https://gist.github.com/dk8996/f86100caa74c4afc43e7b7125cff9671 | |
#============================================================================== |
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 | |
#title :simple-transaction.sh | |
#donations :ADA: addr1q832gesdnxn9twyymtqmqywcsutmqc23u6wghr5y44mmyn6dze685vgkuem8hvd3kdej7kpzuzf7wxk3qndrmwjplusq5rr3d6 | |
#description :This script makes it easy to send a simple transaction from one address to another, see https://docs.cardano.org/projects/cardano-node/en/latest/stake-pool-operations/simple_transaction.html. | |
#author :Dimitry Kudryavtsev ([email protected]) | |
#version :1 | |
#usage :./simple-transaction.sh <File with address of the sending wallet, payment.addr> <File with address of the receiving address payment2.addr> <File with the skey (payment.skey) sending wallet> | |
#notes :For updates, please look at https://gist.github.com/dk8996/6dc32b3dd8dab6786e6f15d64a18267e | |
#============================================================================== |
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
public class Util { | |
public static Set < String > toBigramsJava(String s1) { | |
Set < String > nx = new HashSet < String > (); | |
for (int i = 0; i < s1.length() - 1; i++) { | |
char x1 = s1.charAt(i); | |
char x2 = s1.charAt(i + 1); | |
String tmp = "" + x1 + x2; | |
nx.add(tmp); | |
} | |
return nx; |
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
export DEPLOY_ENV=dev | |
pip install requests | |
python ~/src/github.com/<your-path>/deploy-event.py |
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
<div class="navbar navbar-inverse navbar-fixed-top"> | |
<div class="container"> | |
<div class="navbar-header"> | |
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
</button> | |
<a class="navbar-brand hidden-xs" href="#">CompAny</a> | |
<a class="navbar-brand visible-xs" href="#">C</a> |
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
import com.typesafe.scalalogging.slf4j.Logging | |
import sun.misc.BASE64Decoder | |
import play.api.mvc._ | |
import scala.concurrent.Future | |
import play.mvc.Results._ | |
import play.api.libs.concurrent.Execution.Implicits.defaultContext | |
object BasicAuthFilter extends Filter with Logging { | |
private lazy val unauthResult = Results.Unauthorized.withHeaders(("WWW-Authenticate", | |
"Basic realm=\"myRealm\"")) |
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
import com.typesafe.scalalogging.slf4j.Logging | |
import play.api.mvc._ | |
import scala.concurrent.Future | |
import play.mvc.Results._ | |
import play.api.libs.concurrent.Execution.Implicits.defaultContext | |
object HTTPSRedirectFilter extends Filter with Logging { | |
def apply(nextFilter: (RequestHeader) => Future[SimpleResult])(requestHeader: RequestHeader): Future[SimpleResult] = { | |
//play uses lower case headers. |
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
html,body,#wrapper { | |
width: 100%; | |
height: 100%; | |
margin: 0px; | |
} | |
.chart { | |
font-family: Arial, sans-serif; | |
font-size: 12px; | |
} |
NewerOlder