- Fusicホール
- ユニットテストの現場の問題を原則に立ち返って考える [@hgsgtk](https://
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
#!/usr/bin/bash | |
awk -F':' '{print $6}' /etc/passwd |sort |uniq | while read line | |
do | |
if [ -e "${line}/.ssh/authorized_keys" ]; then | |
echo ${line} | |
for i in $(seq 1 $(wc -l ${line}/.ssh/authorized_keys |awk '{print $1}')); do | |
sed -n ${i}p ${line}/.ssh/authorized_keys |grep -v -e '^\s*#' -e '^\s*$' |grep -q -e 'ssh-rsa ' -e 'ssh-dsa ' -e 'ssh-dss ' -e 'ssh-ed25519 ' | |
if [ $? -eq 0 ]; then | |
ssh-keygen -l -f <(sed -n ${i}p ${line}/.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
<?php | |
/** | |
* {@inheritDoc} | |
*/ | |
public function urlUserDetails() | |
{ | |
return 'https://api.twitter.com/1.1/account/verify_credentials.json?include_email=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
<?php | |
if (! function_exists('notify_to_analytics')) { | |
function notify_to_analytics($target_page) | |
{ | |
$params = []; | |
$params['v'] = '1'; | |
$params['t'] = 'pageview'; | |
$params['tid'] = 'UA-XXXXXXXX-XX'; | |
$params['cid'] = sprintf( | |
'%04x%04x-%04x-%04x-%04x-%04x%04x%04x', |
NewerOlder