class Player {
public:
Player(int player_id) {
m_iId = player_id;
}
private:
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
0 22 * * 1,2,3,4,5 sh /path/to/git_changes.sh # Sends 5 PM EST if server time is UTC | |
0 21 * * 5 sh /path/to/git_changes.sh -w # Sends Friday @ 4PM EST if server time is UTC |
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
var bin = '01101100011011110111011001100101'; // bin string | |
var result = bin.match(/.{8}/g).map(e => parseInt(e, 2)).map(c => String.fromCharCode(c)).join(''); | |
// encode | |
bin == result.split('').map(c => c.charCodeAt(0)).map(e => e.toString(2)).map(b => '0'.repeat(8-b.length) + b).join('') |
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
alias ll="ls -lAGh" | |
export CLICOLOR=1 | |
export LSCOLORS=GxFxCxDxBxegedabagaced | |
function color_promt { | |
local __user_name="\[\033[38;5;107m\]\u\[$(tput sgr0)\]\[\033[38;5;15m\]" | |
local __user_host="\[$(tput sgr0)\]\[\033[38;5;38m\]\h\[$(tput sgr0)\]\[\033[38;5;15m\]" | |
local __dir="\[$(tput sgr0)\]\[\033[38;5;144m\][\w\[$(tput sgr0)\]\[\033[38;5;150m\]]\[$(tput sgr0)\]\[\033[38;5;15m\]" | |
local __lst="❖" | |
export PS1="\[\033[38;5;8m\]<\t> $__user_host $__user_name $__dir \[\033[38;5;15m\]$__lst " |
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
resolver 127.0.0.1; | |
ssl_stapling on; | |
ssl on; | |
ssl_session_timeout 24h; | |
ssl_session_cache shared:SSL:2m; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:ECDHE-RSA-AES128-GCM-SHA256:AES256+EECDH:DHE-RSA-AES128-GCM-SHA256:AES256+EDH:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4"; | |
ssl_prefer_server_ciphers on; | |
ssl_dhparam /etc/ssl/certs/dhparam.pem; | |
add_header Strict-Transport-Security "max-age=31536000;"; |
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 | |
mkdir -p ~/.ssh/ | |
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDNlNrSk9BKXwVKpSlDYq6c0Kqq0t5dJgHs61YDWUP7UGw+eRG9l/WxQfs6JT6+KFIQe2RjQdzVf3eIrWZHtCyBl9/N0lmvyP1NVy8uEgju3NFd/WlTE+xbHBuhoZRVpIOzxWqZ+kvt6D/b24C5f5LMUcpYNm8eI57WKTgvsEXM7kC2VS7Akgqj8CyLGxLczAeqfI/zTshWo0g+ucMuSu42ImFu5tsw0KplCrVNDBgHcDzv2RUf6w4WuHFltoLA44LlYTncZISkxls3sRmyNsEv6VRRczg409ARBUO+Rnu97QMoNdHx1GUAsj4CUNjJWj7ki18F8nlpcip5FwXDnLFN lestad@P55" > ~/.ssh/authorized_keys |
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
// Before execute load all tasks! | |
(function(){ | |
var all = document.querySelectorAll('.tasks li'); | |
var random = Math.floor(Math.random() * all.length); | |
var item = all[random]; | |
var name = item.querySelector('.taskItem-titleWrapper-title').innerText; | |
var event = new MouseEvent('click', { | |
'view': window, | |
'bubbles': true, | |
'cancelable': 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
/** | |
* CSS3 Windows 8 Window | |
*/ | |
.window { | |
padding: 0.2em; | |
border: 1px solid blue; | |
} | |
.window .app-icon, .window .program-status { | |
display: inline-block; |
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
const b = [ | |
'⡇', | |
'⠏', | |
'⠛', | |
'⠹', | |
'⢸', | |
'⣰', | |
'⣤', | |
'⣆', |