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
feature/controller-shipping-refactor | |
027d43e6f1ddb261cb0021695af6bca42a73a9c0 is the first bad commit | |
commit 027d43e6f1ddb261cb0021695af6bca42a73a9c0 | |
Author: Zero <[email protected]> | |
Date: Mon Sep 23 10:14:43 2019 +0800 | |
Catch exception from SplitShipmentService | |
app/Http/Controllers/ApiShipmentController.php | 6 +++++- |
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
[mysqld] | |
pid-file = /var/run/mysqld/mysqld.pid | |
socket = /var/run/mysqld/mysqld.sock | |
datadir = /var/lib/mysql | |
log-error = /var/log/mysql/error.log | |
default-authentication-plugin = mysql_native_password | |
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
webbugs|true | |
gamepad|false | |
syncnotify|true | |
fpWebGL|[] | |
useragentspoof|off | |
syncfromnotify|true | |
fpBattery|[] | |
frame|true | |
fpBluetooth|[] | |
uaspoofallow|false |
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
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: slackcat | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: OpenBSD Secure Shell server | |
### END INIT INFO |
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 bash | |
ID=`curl http://169.254.169.254/latest/meta-data/instance-id` | |
EC2_NAME=`aws ec2 describe-instances --instance-ids $ID | jq .Reservations[0].Instances[0].Tags[].Value | paste -sd ' ' - | sed -e 's/\"/ /g'` | |
HASH=`git rev-parse HEAD` | |
SHORT_HASH=`echo $HASH | head -c 6` | |
COMMENT=`git log --format=%B -n 1 HEAD` | |
BB_URL_PREFIX="https://bitbucket.org/team/project/commits" | |
HOST=`hostname` | |
REPO=$(basename `git rev-parse --show-toplevel`) |
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 bash | |
DATE=`date '+%Y-%m-%d'` | |
LOG_PATH="/var/log/clamav" | |
# create log folder | |
mkdir -p $LOG_PATH | |
clamscan -i -r / 2>&1 | tee "$LOG_PATH/$DATE.log" |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] | |
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00 |
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
<?php | |
declare(strict_types=1); | |
class IPv4 | |
{ | |
/** | |
* Check if input is a valid IPv4 address | |
* | |
* A valid IPv4 address is presents like `192.168.1.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
[ResilioSync] | |
title=Resilio Sync using Bittorent protocol | |
description=Sync data easily between devices | |
ports=3000/tcp|1900/udp|58610/udp|3838/udp|19717/tcp|50443/udp |
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
#!/bin/sh | |
# time zone | |
timedatectl set-timezone Asia/Taipei | |
# user configure | |
mkdir -p /root/.ssh |