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
ChargeBee::WebhookTesting.sample_notification("PaymentSucceeded", your_subscription_id) |
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
1- Open encrypt_decrypt.html file in browser | |
2- Get public key from developer console | |
3- Copy and paste public key in RSA.rb | |
4- Decrypt message in developer console using crypt.decrypt("encrypted message from ruby"); |
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 | |
# Install a custom Influxdb version - https://docs.influxdata.com/influxdb/v1.2/ | |
# | |
# Add at least the following environment variables to your project configuration | |
# (otherwise the defaults below will be used). | |
# * export INFLUX_VERSION=1.2.1 | |
# * export INFLUX_DB=your_database | |
# | |
INFLUX_VERSION=${INFLUX_VERSION:="1.2.2"} |
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
security cms -D -i name_of_config_file.mobileconfig |
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
it { should validate_uniqueness_of(:field_id).scoped_to(:other_field, :other_field).with_message("your message") } |
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
model.trigger('destroy', model) |
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
add this lines in /etc/apt/sources.list (sudo) | |
deb http://www.apache.org/dist/cassandra/debian 10x main | |
deb-src http://www.apache.org/dist/cassandra/debian 10x main | |
then | |
sudo apt-get update | |
sudo apt-get install cassandra | |
start cassandra |
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
sudo add-apt-repository 'deb [arch=amd64,i386] http://mirror.edatel.net.co/mariadb/repo/10.0/ubuntu precise main' | |
sudo apt-get update | |
sudo apt-get install mariadb-server | |
log into mariadb from terminal | |
mysql --user=your_user | |
then | |
INSTALL PLUGIN cassandra SONAME 'ha_cassandra.so'; |
NewerOlder