-
Install the the
shadowsocks-libev
package from apt repository.sudo apt update sudo apt install shadowsocks-libev
-
Save
ss.json
as/etc/shadowsocks-libev/config.json
.
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
#!/bin/bash | |
# To run this: | |
# bash <(curl -sL https://gist.githubusercontent.com/2shrestha22/b2f15066c1627085e0913ac52d243d62/raw/2c477da35d44b77a510783a1d1494cc90feb9217/magisk_flash.sh) | |
BOOT_IMAGE_FILE_NAME="boot.img" | |
BOOT_IMAGE_FILE_PATH="./$BOOT_IMAGE_FILE_NAME" | |
echo -e "Helper srcipt to flash Magisk patched boot.img for non A/B device...\n" | |
if adb shell getprop ro.build.ab_update | grep -q true; then |
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
// Stop CF edge from caching your site when specific wordpress cookies are present | |
// script found in https://www.mmaton.com/2018/07/02/cloudflare-cache-anonymous-requests/ | |
addEventListener('fetch', event => { | |
event.respondWith(noCacheOnCookie(event.request)) | |
}) | |
async function noCacheOnCookie(request) { | |
// Determine which group this request is in. | |
const cookie = request.headers.get('Cookie') |
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
Show hidden characters
// by ResoCoder | |
// https://github.com/rrousselGit/freezed/issues/85#issuecomment-593908291 | |
{ | |
"Part statement": { | |
"prefix": "pts", | |
"body": [ | |
"part '${TM_FILENAME_BASE}.g.dart';", | |
], | |
"description": "Creates a filled-in part statement" | |
}, |
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
Section "InputClass" | |
Identifier "touchpad" | |
Driver "libinput" | |
MatchIsTouchpad "on" | |
Option "Tapping" "on" | |
Option "NaturalScrolling" "true" | |
EndSection |
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 | |
//-------------------------------------------------------------- | |
//-------------------------------------------------------------- | |
//---------COPY CODE BELOW THIS LINE---------------------------- | |
//Adding adsense ad unit inside the article | |
//Insert ads after every third paragraph of single post content. |
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
#modify necessary | |
<VirtualHost *:80> | |
DocumentRoot "D:/xampp/htdocs/" | |
ServerName localhost | |
</VirtualHost> | |
#we add this to make sure we can access to open PHPmyAdmin from http://localhost/phpmyadmin | |
#DocumentRoot - the root of the web server in your machine. In XAMPP it is ../xampp/htdocs/ | |
<VirtualHost *:80> |
Read the overview document first.
Lenovo laptop series using the ideapad_laptop
driver have a feature called
'battery conservation mode', basically a fixed stop charge threshold at 60%.
The hardware behaviour is:
- Connected to the charger, charging stops when the charge level reaches the stop threshold
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
# /etc/nginx/snippets/wp.conf | |
# include inside server block | |
index index.php; | |
location / { | |
# try to serve static file if not found then directory then php | |
# include the "?$args" part so non-default permalinks doesn't break when usi> | |
try_files $uri $uri/ /index.php?$args; | |
} |
NewerOlder