As configured in my dotfiles.
start new:
tmux
start new with session name:
| [alias] | |
| sub-init = "!init() { git checkout master && git pull && git submodule update --init --recursive; }; init" | |
| sub-up = "!up() { git submodule foreach git checkout master && git pull; }; up" | |
| sub-diff = "!diff() { git submodule foreach 'echo $path `git diff`'; }; diff;" | |
| springcleaning = for-each-ref --sort=-committerdate --format='%(refname:short) %(committerdate:short)' | |
| unstage = reset HEAD -- | |
| pu = !="git fetch origin -v; git fetch upstream -v; git merge upstream/master" | |
| vim = !.git/hooks/vim |
| #!/usr/bin/env node | |
| try{ | |
| var webdriverio = require('webdriverio'); | |
| var options = { | |
| desiredCapabilities: { browserName: 'phantomjs' }, | |
| webStorageEnabled: true, | |
| logLevel: 'verbose' | |
| }; |
| <ruby> | |
| File.open("/root/workspaces.txt", "r") do |f| | |
| f.each_line do |line| | |
| run_single("workspace #{line}") | |
| run_single("db_export -f xml -a /root/msf_workspace_export/#{line}_export_13Aug2016.xml") | |
| run_single("db_export -f pwdump -a /root/msf_workspace_export/#{line}_export_13Aug2016.pwdump") | |
| end | |
| end | |
| </ruby> |
| find . -type f -print0 | xargs -0 -n 1 -P 4 dos2unix |
| $ docker create --name gitlab-data --volume /d/docker/gitlab:/etc/gitlab gitlab/gitlab-ce:latest | |
| # Make sure Bridging is set on the VM in VirtualBox | |
| $ docker run --publish 8080:80 --publish 2222:22 --publish 4443:443 --name gitlab --restart always --volumes-from gitlab-data gitlab/gitlab-ce:latest | |
| Using docker 1.13.1 |
| <Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Web\Microsoft.Web.Publishing.targets" /> | |
| <Target Name="BeforeBuild"> | |
| <TransformXml Source="Web.Base.config" Transform="Web.$(Configuration).config" Destination="Web.config" /> | |
| </Target> |
| #import "RCTEventEmitter.h" | |
| #import "RCTBridge.h" | |
| @interface GSEventEmitter : RCTEventEmitter <RCTBridgeModule> | |
| + (BOOL)application:(UIApplication *)application didSightBeacon:(NSString *)beaconID; | |
| + (BOOL)application:(UIApplication *)application didDepartBeacon:(NSString *)beaconID; | |
| @end |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| rvictl -s UUID | |
| rvictl -l | |
| ifconfig -l | |
| tcpdump -i rvi0 -w trace.pcap | |
| ctrl x-c | |
| rvictl -x UUID |
| security find-identity -v -p codesigning |