gem install activerecord-mysql2-adapter
gem 'mysql2'
development:
adapter: mysql2
encoding: utf8
database: mysql_db_name
pool: 5
Merhaba Dünya! | |
Hello world! | |
よ世界。 |
import java.io.UnsupportedEncodingException; | |
import java.security.InvalidAlgorithmParameterException; | |
import java.security.InvalidKeyException; | |
import java.security.NoSuchAlgorithmException; | |
import javax.crypto.BadPaddingException; | |
import javax.crypto.Cipher; | |
import javax.crypto.IllegalBlockSizeException; | |
import javax.crypto.NoSuchPaddingException; | |
import javax.crypto.spec.IvParameterSpec; | |
import javax.crypto.spec.SecretKeySpec; |
#!/bin/bash | |
now=$(date +"%d_%m_%Y") | |
password="yourpassword" | |
db_name="yourdbname" | |
file_name="db_dump_$now.sql" | |
echo "Backing up the db to $file_name" | |
mysqldump -u root -p"$password" "$db_name" > "$file_name" |
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
fields=0 48 17 18 38 39 40 2 46 47 49 1 | |
sort_key=46 | |
sort_direction=1 | |
hide_threads=1 | |
hide_kernel_threads=1 | |
hide_userland_threads=1 | |
shadow_other_users=0 | |
show_thread_names=0 | |
highlight_base_name=0 | |
highlight_megabytes=1 |
We are looking a for a team mate which is comfortable with technologies below:
extern crate websocket; | |
use std::thread; | |
use std::sync::{Arc, Mutex}; | |
use websocket::{Server, Message, Sender, Receiver}; | |
fn main() { | |
let server = Server::bind("0.0.0.0:2794").unwrap(); | |
let mut senders = Arc::new(Mutex::new(vec![])); |
error: linking with `cc` failed: exit code: 1 | |
note: "cc" "-Wl,--as-needed" "-m64" "-L" "/Users/serdardogruyol/.multirust/toolchains/stable/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/nickel_bootstrap" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/nickel_bootstrap.o" "-Wl,--whole-archive" "-lmorestack" "-Wl,--no-whole-archive" "-Wl,--gc-sections" "-pie" "-Wl,-O1" "-nodefaultlibs" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/deps/libnickel-208053cb0090b951.rlib" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/deps/libplugin-3a7a2e6890e6fef2.rlib" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/deps/libregex-3bea3061fd389532.rlib" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/deps/libhyper-d2c777982525 |
require 'openssl' | |
require 'base64' | |
# AES 128-CBC with No Padding | |
data = '3470060503201504081141291105065707769122253042568918000000000000' | |
key = '584F73BE5AD6E6CF47F506784353C55E' | |
iv = '00000000000000000000000000000000' | |
cipher = OpenSSL::Cipher::AES.new(128, :CBC) #=> #<OpenSSL::Cipher::AES:0x007fb794a27a80> | |
cipher.encrypt #=> #<OpenSSL::Cipher::AES:0x007fb794a27a80> | |
cipher.key = [key].pack "H*" #=> "XOs\xBEZ\xD6\xE6\xCFG\xF5\x06xCS\xC5^" |