Skip to content

Instantly share code, notes, and snippets.

View wongsyrone's full-sized avatar
😂
Babysitting

Syrone Wong wongsyrone

😂
Babysitting
View GitHub Profile
apt-get purge netplan.io
/etc/rc.local
ip -6 route add 2604:180:3::1 dev ens3
ip -6 route add default via 2604:180:3::1
/etc/systemd/network/10-ens3.network
// ==UserScript==
// @name 河北云教育挂课加速器 www.hebyunedu.com
// @namespace Violentmonkey Scripts
// @version 1.1
// @description 河北云教育平台学习课件加速助手
// @match http://www.hebyunedu.com/lms/learning/courseware/*
// @require http://libs.baidu.com/jquery/2.0.0/jquery.min.js
// @grant none
// ==/UserScript==
(function(){
八号字  5 
七号字  5.5 
小六    6.5 
六号    7.5 
小五    9 
五号    10.5 
小四    12 
四号    14 
小三    15 
三号    16 
git stash create
git archive --worktree-attributes --verbose --format=tar.gz --prefix="openssl-1.1.1b-dev/" HEAD > "openssl-1.1.1b-dev.tar.gz"
git archive --worktree-attributes --verbose --format=tar.gz --prefix="openssl-1.1.1c-dev/" f31b2ceb9560f46cbef98ff84227c7f7f0e1516f > "openssl-1.1.1c-dev.tar.gz"
@wongsyrone
wongsyrone / gist:50ff4224b7b3827d0e3dbf7d9be37d03
Created January 4, 2019 01:58
Oracle EXP-00003: no storage definition found for segment(0, 0)
Oracle11gR2中空表是不会分配segment的。当含有空表,使用exp导出整个用户的时候报EXP-00003: no storage definition found for segment(0, 0)错误。
解决办法:
方法一:如果有些表数据量较大,在分析数据量上花费的时间较多。总体来说推荐这种方法
1、重新分析表的数据量,因为num_rows行数并不是准确的行数。
SELECT 'analyze table ' || TABLE_NAME || ' compute statistics;' FROM USER_TABLES;
2、生成以下动态SQL,之后执行查询生成结果。
select 'alter table '||table_name||' allocate extent;' from user_tables where num_rows=0;
@wongsyrone
wongsyrone / gist:b8b40f092736962da1ec5646fa6c13bf
Created December 18, 2018 03:09
offline Google Chrome browser
https://www.google.com/intl/zh-CN/chrome/browser/?system=true&standalone=1&platform=win64
If you want to install Chrome for your own user account:
Download Google Chrome Full Standalone Offline Installer (32-bit)
https://www.google.com/chrome/eula.html?standalone=1&platform=win
Download Google Chrome Full Standalone Offline Installer (64-bit)
@wongsyrone
wongsyrone / gist:987ab46b4862eb5b1d14a45501445834
Last active August 30, 2022 09:41
ubuntu apport core dump
the first step in the process would be to disable apport.
This can be done by editing the /etc/default/apport file, and setting enabled=0.
systemctl stop apport
systemctl disable apport
Then change kernel core_pattern
echo "kernel.core_pattern=/tmp/%e.%t.%p.%s.core" > /etc/sysctl.d/60-core-pattern.conf
sysctl --system
@wongsyrone
wongsyrone / WuReset For windows 7 and 8.bat
Created November 20, 2018 06:04
reset Windows Update batch file
@ECHO OFF
echo .
echo Simple Script to Hard reset Windows updates
echo .
PAUSE
echo .
net stop bits
net stop wuauserv
net stop appidsvc
net stop cryptsvc
#!/usr/bin/env bash
export GOPATH=$PWD/transsocks
GOOS=linux GOARCH=amd64 go build -a -ldflags="-s -w" github.com/cybozu-go/transocks/...
GOOS=linux GOARCH=amd64 go install -a -ldflags="-s -w" github.com/cybozu-go/transocks/...
两台电脑均从救援/备用系统启动,并挂掉原/新根目录到 /mnt。联网并在旧系统启动 sshd,然后:
```
rsync -aviHAXKh --partial --delete old_computer:/mnt /mnt
```
然后装引导、写引导配置,改 /etc/fstab,重启。