I hereby claim:
- I am envygeeks on github.
- I am envygeeks (https://keybase.io/envygeeks) on keybase.
- I have a public key whose fingerprint is 1E47 C010 BF1C B42A 61C5 CFBB 2D67 0E76 F3B1 9D80
To claim this, I am signing this object:
| require 'action_dispatch/middleware/session/redis_store' | |
| module ActionDispatch | |
| module Session | |
| class SignedRedisStore < ActionDispatch::Session::RedisStore | |
| def load_session(env) | |
| stale_session_check! do | |
| get_session(env, | |
| cookie_jar(env)[@key] | |
| ) |
| require 'action_dispatch/middleware/session/abstract_store' | |
| require 'rack/session/abstract/id' | |
| module ActionDispatch | |
| module Session | |
| class RedisStore < Rack::Session::Abstract::ID | |
| include StaleSessionCheck | |
| include Compatibility | |
| attr_reader :server |
| def clean_for_action_based_url(url) | |
| CGI.unescape(url || ""). | |
| gsub(/\/+/, "/"). | |
| tr('^a-z_-/', "") | |
| end | |
| def clean_url(url) | |
| url = CGI.unescape(url || "") | |
| url = url.gsub(/\A((https?:)?\/+)*/, "").gsub(/\/+/, "/") | |
| url.split("/").map { |v| CGI.escape(v) }. |
| #!/bin/sh | |
| my_ips="192.168.1.2|192.168.1.3" | |
| plex_ports="32400|32410|32412|32413|32414|32469" | |
| ip_list=$(ipset list plex -s |sed -rn '/192\.168\.1/p' |tr "\n" "|") | |
| ip_list=${ip_list%?} | |
| set -e | |
| if netstat --numeric-ports --numeric-hosts --inet -p |grep -P "tcp\s+0\s+([1-9][0-9]+)\s+(${my_ips}):(${plex_ports})\s+(${ip_list}):\d+\s+ESTABLISHED\s+\d+/Plex" >/dev/null | |
| then exit 1 |
| class Post < ActiveRecord::Base | |
| class << self | |
| def get_column(column) | |
| columns.select do |column_| | |
| column_.name == column.to_s | |
| end[0] | |
| end | |
| def any(what) | |
| out = all |
| SET @@SESSION.SQL_LOG_BIN=0; | |
| DELETE FROM mysql.user WHERE Host = ''; | |
| DELETE FROM mysql.user WHERE User = 'root'; | |
| DELETE FROM mysql.user WHERE User = '$MYSQL_USER'; | |
| CREATE OR REPLACE USER 'root'@'%' IDENTIFIED BY '$MYSQL_ROOT_PASS'; | |
| GRANT ALL ON *.* TO 'root'@'%' WITH GRANT OPTION; | |
| DROP DATABASE IF EXISTS test; | |
| CREATE DATABASE IF NOT EXISTS $MYSQL_DB; | |
| CREATE OR REPLACE USER '$MYSQL_USER'@'%' IDENTIFIED BY '$MYSQL_PASS'; |
I hereby claim:
To claim this, I am signing this object:
| fragment UserFields on User { url, name, avatarUrl, login } | |
| fragment PageInfoFields on PageInfo { startCursor, hasPreviousPage, hasNextPage, endCursor } | |
| fragment OrganizationFields on Organization { url, org: name , avatarUrl, login } | |
| fragment RateLimitFields on RateLimit { resetAt, remaining, limit, cost } | |
| fragment RepositoryFields on Repository { | |
| pushedAt | |
| nameWithOwner | |
| hasIssuesEnabled | |
| hasWikiEnabled | |
| name |
| server { | |
| server_name _; | |
| rewrite ^(.*) https://$host$1 permanent; | |
| listen 80; | |
| } | |
| server { | |
| add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"; | |
| } |
| set smbHost to "192.168.1.3" | |
| set closeOnUnmount to {"iTunes"} | |
| set volnames to {"Storage", "Movies"} | |
| set tmVolname to "Backups" | |
| set idleTime to 120 | |
| set maxWait to 60 | |
| on idle | |
| tell application "Finder" | |
| repeat with vol in volnames |