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
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
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
#!/bin/sh | |
processes=$(lsof | cut -f1 -d" " | sort | uniq | xargs -n1 -I% sh -c 'echo % `pidof % | sed -e "s/ /,/g"`' | cut -d" " -f1 -s) | |
for process in $processes; do | |
echo $process $(pidof $process | sed -e "s/ /,/g" | xargs -I% -n1 sh -c 'lsof -a -p % | wc -l') | |
done |
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
Authority: | |
columns: | |
... | |
actAs: | |
Versionable: | |
className: '%CLASS%Versionable' | |
tableName: '%TABLE%_log' | |
deleteVersions: false | |
auditLog: true | |
generateFiles: 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
bash-3.2# ps x | grep vmnet | |
919 ?? S 0:00.10 /Library/Application Support/VMware Fusion/vmnet-bridge | |
923 ?? Ss 0:00.02 /Library/Application Support/VMware Fusion/vmnet-dhcpd -s 13 -cf /Library/Application Support/VMware Fusion/vmnet1/dhcpd.conf -lf /var/db/vmware/vmnet-dhcpd-vmnet1.leases -pf /var/run/vmnet-dhcpd-vmnet1.pid vmnet1 | |
925 ?? Ss 0:00.00 /Library/Application Support/VMware Fusion/vmnet-netifup -s 13 -d /var/run/vmnet-netif-vmnet1.pid vmnet1 vmnet1 | |
927 ?? Ss 0:00.02 /Library/Application Support/VMware Fusion/vmnet-dhcpd -s 13 -cf /Library/Application Support/VMware Fusion/vmnet8/dhcpd.conf -lf /var/db/vmware/vmnet-dhcpd-vmnet8.leases -pf /var/run/vmnet-dhcpd-vmnet8.pid vmnet8 | |
930 ?? S 0:00.06 /Library/Application Support/VMware Fusion/vmnet-natd -s 13 -m /Library/Application Support/VMware Fusion/vmnet8/nat.mac -c /Library/Application Support/VMware Fusion/vmnet8/nat.conf | |
932 ?? Ss 0:00.00 /Library/Application Support/VMware Fusion/vmnet-netifu |
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
set isRunning to do shell script "ps -ef | grep vmnet | grep -v grep | wc -l |sed 's/ //g'" | |
if isRunning is "0" then | |
do shell script "/Library/Application\\ Support/VMware\\ Fusion/boot.sh --start" with administrator privileges | |
end if | |
tell application "VMware Fusion" to activate |
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
# TODO: Can be removed after updating to rack 1.3.0 | |
module Rack | |
module Utils | |
def escape(s) | |
CGI.escape(s.to_s) | |
end | |
def unescape(s) | |
CGI.unescape(s) | |
end | |
end |
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
<?php | |
class Factory | |
{ | |
// ... | |
/** | |
* Helper to instantiate objects with dynamic constructors. | |
* |
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 | |
current=`find /Applications/Google\ Chrome.app/Contents/Versions -maxdepth 1 -type d -name "*.*.*.*" | sort | tail -1 | xargs -I% basename %` | |
echo Deleting old Chrome versions and keep $current | |
find /Applications/Google\ Chrome.app/Contents/Versions -maxdepth 1 -type d -name "*.*.*.*" -not -iname "$current" -exec rm -rf {} + |
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
aws ec2 describe-instances \ | |
--filters Name=dns-name,Values=ec2-12-345-678-90.myregion.compute.amazonaws.com \ | |
| jq '.Reservations [] .Instances [] .InstanceId' |
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
aws ec2 describe-instances \ | |
--filters Name=dns-name,Values=ec2-12-345-678-90.myregion.compute.amazonaws.com \ | |
| jq '.Reservations [] .Instances [] .InstanceId' \ | |
| xargs -n1 aws ec2 get-console-output --instance-id \ | |
| jq '.Output' |
OlderNewer