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 | |
// ex: cat php-serialized-data.txt | php unserialize.php | jq ... | |
$data = stream_get_contents(STDIN); | |
print json_encode(unserialize($data)); |
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/env bash | |
# This will not block non-interractive shell execution | |
if [ ! -z "$PS1" ]; then | |
command git $@ | |
exit 0 | |
fi | |
case $1 in | |
checkout) |
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
import http from '@/services/http' | |
import store from '@/store' | |
import router from '@/router' | |
import moment from 'moment' | |
import User from '@/entities/user' | |
export default class Auth { | |
static async login ({email, password}) { | |
try { | |
const response = await http.post(`/api/auth/login`, {email, password}) |