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
| 163: 202.97 | |
| CN2: 59.43 |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>com.noatime.root</string> | |
| <key>ProgramArguments</key> | |
| <array> | |
| <string>/sbin/mount</string> | |
| <string>-vuwo</string> |
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
| #!/usr/bin/env ruby | |
| # This script is to add a release not on Github | |
| # | |
| # Requirement: | |
| # Octokit.rb (gem install octokit) | |
| # pandoc (for Mac: brew install pandoc) | |
| # | |
| # You must have $GITHUB_KEY exported in your .bashrc or .zshrc | |
| # HELP: https://help.github.com/articles/creating-an-access-token-for-command-line-use/ | |
| # export GITHUB_KEY="replace with your Github access token" |
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
| set-window-option -g mode-keys vi | |
| #setw -g mode-mouse on | |
| #set-option -g mouse-select-pane on | |
| bind-key | split-window -h | |
| bind-key - split-window -v | |
| # Automatically set window title | |
| setw -g automatic-rename | |
| # hSne traversal | |
| bind-key -t vi-copy 'v' begin-selection |
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 scutil --set HostName <putinyourhostname_or_fqdn_here> |
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
| # echo | clang -std=c++11 -stdlib=libc++ -v -E -x c++ - | |
| import os | |
| import ycm_core | |
| # These are the compilation flags that will be used in case there's no | |
| # compilation database set. | |
| flags = [ | |
| '-Wall', | |
| '-std=c++11', |
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
| echo '{"foo": "lorem", "bar": "ipsum"}' | python -m json.tool | |
| cat data.json | python -m json.tool |
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
| #include <pcap.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <errno.h> | |
| #include <sys/socket.h> | |
| #include <netinet/in.h> | |
| #include <arpa/inet.h> | |
| #include <netinet/if_ether.h> | |
| #include <net/ethernet.h> | |
| #include <netinet/ether.h> |
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
| #!/bin/bash | |
| # Script for installing tmux on systems where you don't have root access. | |
| # tmux will be installed in $HOME/local/bin. | |
| # It's assumed that wget and a C/C++ compiler are installed. | |
| # exit on error | |
| set -e | |
| TMUX_VERSION=1.8 |
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 Solution { | |
| public: | |
| void fill(vector<vector<int> > &vec, int dir, int idx, int start, int end, int &next) { | |
| switch(dir) { | |
| case 0: // left -> right | |
| for(int i = start; i <= end; i++) { | |
| vec[idx][i] = next; | |
| next++; | |
| } | |
| break; |
NewerOlder