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
.label-dot { | |
display: inline-block; | |
width: 14px; | |
height: 14px; | |
border-radius: 7px; | |
border: 1px solid transparent; | |
&._none { | |
background: transparent; | |
border-color: #bbb; |
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
# WELCOME TO SQUID 3.1.20 | |
# ---------------------------- | |
# | |
# This is the documentation for the Squid configuration file. | |
# This documentation can also be found online at: | |
# http://www.squid-cache.org/Doc/config/ | |
# | |
# You may wish to look at the Squid home page and wiki for the | |
# FAQ and other documentation: | |
# http://www.squid-cache.org/ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
-- MySQL dump 10.13 | |
-- | |
-- Pinboard database schema | |
-- Feel free to use this however you like. Send questions to [email protected]. | |
-- For best results, use the Percona version of MySQL! http://www.percona.com/software/percona-server/ | |
CREATE TABLE `bookmarks` ( | |
`id` int(11) NOT NULL, | |
`url` mediumtext, -- verbatim URL (may differ from actual URL referenced by url_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
article,aside,details,figcaption,figure,footer,header,hgroup,nav,section,summary | |
{ | |
display: block; | |
} | |
audio,canvas,video | |
{ | |
display: inline-block; | |
} | |
audio:not([controls]) | |
{ |
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
master_ref = client.ref(repo, 'heads/master') | |
last_commit = client.commit(repo, master_ref[:object][:sha]) | |
last_tree = client.tree(repo, last_commit[:sha], recursive: true) | |
changed_tree = last_tree[:tree].map(&:to_hash).reject { |blob| blob[:type] == 'tree' } | |
changed_tree.each { |blob| blob[:path] = 'History.markdown-2' if blob[:path] == 'History.markdown' } | |
changed_tree.each { |blob| blob.delete(:url) && blob.delete(:size) } | |
new_tree = client.create_tree(repo, changed_tree) | |
new_commit = client.create_commit(repo, 'move file test', new_tree[:sha], last_commit[:sha]) | |
client.update_ref(repo, 'heads/master', new_commit.sha) |
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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
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
sudo dnscrypt-proxy --resolver-name=opendns-port53 --local-address=127.0.0.1:5353 --logfile=/var/log/dnscrypt.log --pidfile=/var/run/dnscrypt.pid --daemonize |
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
require 'openssl' | |
require 'digest/sha1' | |
require 'base64' | |
require 'json' | |
class Setting < ActiveRecord::Base | |
belongs_to :user, inverse_of: :settings | |
serialize :content, JSON |
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
class Person | |
attr_accessor :name | |
def set_name | |
@name = 'joe' | |
end | |
def dump_by_varibale | |
puts @name | |
end |