Skip to content

Instantly share code, notes, and snippets.

View ilaipi's full-sized avatar
🇨🇳

杨亚梦 ilaipi

🇨🇳
  • 上海~静安
View GitHub Profile
@ilaipi
ilaipi / interceptor.ts
Last active January 11, 2024 01:13
axios interceptor
import axios from 'axios';
import type { AxiosRequestConfig, AxiosError, AxiosResponse } from 'axios';
import { Message, Modal } from '@arco-design/web-vue';
import { useUserStore } from '@/store';
import { getToken } from '@/utils/auth';
export interface HttpResponse<T = unknown> {
status: string;
message: string;
code: number;
@ilaipi
ilaipi / clear-quartz-mysql.sql
Created January 12, 2021 15:15
clear quartz database: mysql
SET FOREIGN_KEY_CHECKS=0;
DELETE FROM `qrtz_locks`;
DELETE FROM `qrtz_paused_trigger_grps`;
DELETE FROM `qrtz_scheduler_state`;
DELETE FROM `qrtz_calendars`;
DELETE FROM `qrtz_job_details`;
DELETE FROM `qrtz_triggers`;
DELETE FROM `qrtz_blob_triggers`;
DELETE FROM `qrtz_cron_triggers`;
DELETE FROM `qrtz_simple_triggers`;
@ilaipi
ilaipi / warning
Created January 3, 2017 05:19
hacked
{
"_id" : ObjectId("5867e3958b7b6a260f57b196"),
"mail" : "harak1r1@sigaint.org",
"note" : "SEND 0.2 BTC TO THIS ADDRESS 13zaxGVjj9MNc2jyvDRhLyYpkCh323MsMq AND CONTACT THIS EMAIL WITH YOUR IP OF YOUR SERVER TO RECOVER YOUR DATABASE !"
}
@ilaipi
ilaipi / remove_postgres_on_mac_os.md
Created November 30, 2016 08:17 — forked from Atlas7/remove_postgres_on_mac_os.md
Note - How completely uninstall PostgreSQL 9.X on Mac OSX

This blog post has helped me clean up my postgres development environment on Mac. So making a copy!

How completely uninstall PostgreSQL 9.X on Mac OSX

This article is referenced from stackoverflow:

If installed PostgreSQL with homebrew , enter brew uninstall postgresql

If you used the EnterpriseDB installer , follow the following step.
@ilaipi
ilaipi / .eslintrc
Created April 24, 2016 14:41 — forked from cletusw/.eslintrc
ESLint Reset - A starter .eslintrc file that resets all rules to off and includes a description of what each rule does. From here, enable the rules that you care about by changing the 0 to a 1 or 2. 1 means warning (will not affect exit code) and 2 means error (will affect exit code).
{
// http://eslint.org/docs/rules/
"ecmaFeatures": {
"binaryLiterals": false, // enable binary literals
"blockBindings": false, // enable let and const (aka block bindings)
"defaultParams": false, // enable default function parameters
"forOf": false, // enable for-of loops
"generators": false, // enable generators
"objectLiteralComputedProperties": false, // enable computed object literal property names