Skip to content

Instantly share code, notes, and snippets.

@lylwo317
lylwo317 / dsdt.dsl
Last active December 29, 2022 06:51
thinkbook 14p dsdt fix s3 mode
/*
* Intel ACPI Component Architecture
* AML/ASL+ Disassembler version 20220331 (64-bit version)
* Copyright (c) 2000 - 2022 Intel Corporation
*
* Disassembling to symbolic ASL+ operators
*
* Disassembly of dsdt.dat, Wed May 4 12:07:23 2022
*
* Original Table Header:
<TaskerData sr="" dvi="1" tv="5.0u7m">
<Profile sr="prof26" ve="2">
<cdate>1548299918767</cdate>
<clp>true</clp>
<edate>1548815694075</edate>
<id>26</id>
<mid0>12</mid0>
<nme>使用耳机时朗读Telegram新消息</nme>
<Event sr="con0" ve="2">
<code>461</code>
@lylwo317
lylwo317 / libev-centos6.md
Last active September 30, 2020 06:19 — forked from truebit/libev-centos6.md
install shadowsocks-libev on CentOS 6

shadowsocks-libev install on CentOS 6

Content

OpenVZ VPS centos6 install shadowsocket

# build environment
yum install build-essential autoconf libtool openssl-devel gcc git xmlto asciidoc pcre-devel -y
# download shadowsocks-libev and build + install
git clone https://github.com/shadowsocks/shadowsocks-libev.git
@lylwo317
lylwo317 / MyPagerAdapter.java
Created September 18, 2014 03:40
viewpager 获取 fragment
public class MyPagerAdapter extends FragmentStatePagerAdapter {
SparseArray<Fragment> registeredFragments = new SparseArray<Fragment>();
public MyPagerAdapter(FragmentManager fm) {
super(fm);
}
@Override
public int getCount() {
return ...;
@lylwo317
lylwo317 / 0_reuse_code.js
Last active August 29, 2015 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console