Snippets for my iOS Projects :D
- File Location for:
- User Defaults
diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb | |
index 8c04cb5..132d803 100644 | |
--- a/ext/openssl/extconf.rb | |
+++ b/ext/openssl/extconf.rb | |
@@ -104,6 +104,9 @@ | |
have_func("SSLv2_method") | |
have_func("SSLv2_server_method") | |
have_func("SSLv2_client_method") | |
+have_func("SSLv3_method") | |
+have_func("SSLv3_server_method") |
-- When SQLite is compiled with the JSON1 extensions it provides builtin tools | |
-- for manipulating JSON data stored in the database. | |
-- This is a gist showing SQLite return query data as a JSON object. | |
-- https://www.sqlite.org/json1.html | |
-- An example table with some data | |
CREATE TABLE users ( | |
id INTEGER PRIMARY KEY NOT NULL, | |
full_name TEXT NOT NULL, | |
email TEXT NOT NULL, |
-- this is a random comment | |
-- anything prefixed by two dashes is a comment | |
-- and will not be executed by the database | |
-- to start the interactive session on the command prompt | |
-- type: $ sqlite3 | |
-- something will be printed and then you'll see another prompt like this | |
-- sqlite> |
#!/bin/bash | |
### BEGIN INIT INFO | |
# Provides: icecast-kh | |
# Required-Start: $remote_fs $network | |
# Required-Stop: $remote_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Starts the icecast-kh audio streaming server daemon | |
### END INIT INFO | |
# |
class CreditCard | |
attr_accessor :card, :store | |
def initialize(card_identifier) | |
@card = card_identifier | |
@store = { | |
amex: {begins_with: ["34", "37"], number_length: ["15"]}, | |
discover: {begins_with: ["6011"], number_length: ["16"]}, | |
mastercard: {begins_with: ["51","52","53","54","55"], number_length: ["16"]}, | |
visa: {begins_with: ["4"], number_length: ["13", "16"]}, |
# (I recommend understanding the basics of this first: http://sequel.jeremyevans.net/rdoc/files/doc/object_model_rdoc.html) | |
# Extending the underlying dataset (http://sequel.jeremyevans.net/rdoc/files/README_rdoc.html#label-Extending+the+underlying+dataset) | |
# The recommended way to implement table-wide logic by defining methods on the dataset using dataset_module: | |
class Post < Sequel::Model | |
dataset_module do | |
def posts_with_few_comments | |
where{num_comments < 30} |
// | |
// CombineClient.swift | |
// CombineClient | |
// | |
// Created by Sarp Solakoglu on 14/11/2019. | |
// Copyright © 2019 Sarp Solakoglu. All rights reserved. | |
// | |
import Foundation | |
import Combine |
import Combine | |
import Foundation | |
struct NamedURL: Codable { | |
let name: String | |
let url: URL | |
} | |
struct PokeAPIResponse: Codable { | |
let results: [NamedURL] |
Snippets for my iOS Projects :D
#!/usr/bin/env bash | |
mariabackup --stream=xbstream --backup --user root|pigz >mariadb-backup.gz |