ruby -run -ehttpd . -p8000
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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/kingyang/.oh-my-zsh | |
# Set name of the theme to load. Optionally, if you set this to "random" | |
# it'll load a random theme each time that oh-my-zsh is loaded. | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
ZSH_THEME="agnoster" |
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
{ | |
"ruby.rubocop.executePath": "/Users/xxx/.rbenv/shims/", | |
"ruby.rubocop.onSave": true, | |
"ruby.useLanguageServer": false, | |
"[ruby]": { | |
"editor.formatOnSave": true | |
}, | |
"editor.formatOnSave": true, | |
"editor.formatOnSaveTimeout": 1500, | |
"solargraph.autoformat": true, |
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
group :development, :test do | |
gem 'awesome_print' | |
gem 'dotenv-rails' | |
gem 'seed_dump' | |
gem 'pry-rails' | |
gem 'pry-byebug' | |
gem 'pry-doc' | |
gem 'rubocop-rails' |
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
version: '2' | |
services: | |
mysql-master: | |
image: 'bitnami/mysql:8.0' | |
ports: | |
- '3306:3306' | |
volumes: | |
- 'mysql_master_data:/bitnami/mysql/data' | |
environment: |
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
# generate from surge.conf | |
# see https://github.com/FlowerWrong/tun2socks/blob/master/cmd/smart/parser.go | |
session_name smart | |
welcome_info Happy New Year! | |
global_mode false | |
firewall_mode true | |
debug true | |
ip 172.25.0.1 |
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 | |
# Full Contol on Ethnet, IP & TCP headers. Play with it ;) | |
# to test it: nc -lvp 4444 | |
# as root: tcpdump -nvvvv 'tcp port 4444' -i wlan0 # change wlan0 to your interface | |
# or use packetfu to monitor as tcpdump | |
## cap = PacketFu::Capture.new(:iface => 'wlan0' , :promisc=> true) | |
## cap.show_live(:filter => 'tcp and port 4444') | |
# libpcap should be installed | |
# gem install pcaprub packetfu |
NewerOlder