# /etc/proxychains4.conf.example
[ProxyList]
# add proxy here ...
# meanwile
# defaults set to "tor"
socks5 WSL_HOST_IP 1080
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
# in ublock block -> my filter | |
||evernote.com/js/homepage-refresh-*.js | |
||evernote.com/js/compare-plans-refresh-*.js | |
||evernote.com/js/why-evernote-*.js |
This file has been truncated, but you can view the full file.
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
ii deepin-wine-helper:i386 1.1deepin12 i386 Deepin Wine Hepler | |
ii deepin-wine-plugin 1.0deepin2 amd64 Deepin Wine plugin | |
ii deepin-wine-plugin-virtual 1.0deepin2 all Deepin Wine plugin virtual package | |
ii deepin-wine-uninstaller:i386 0.1deepin2 i386 Deepin Wine Uninstaller Tool | |
ii deepin.com.baidu.pan:i386 5.5.4deepin8 i386 Baidu net disk client on Deepin Wine | |
rc deepin.com.qq.im:i386 8.9.19983deepin23 i386 Tencent QQ Client on Deepin Wine | |
ii deepin.com.qq.im.light:i386 7.9.14308deepin8 i386 Tencent QQ Client on Deepin Wine | |
ii deepin.com.qq.office:i386 |
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
# First the end result of what we want: | |
class Foo | |
before_hook :whoa | |
before_hook :amazing | |
def test | |
puts "This is kinda cool!" | |
end |
People
![]() :bowtie: |
π :smile: |
π :laughing: |
---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
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 | |
#!/bin/bash -xv # puts this line in the beginning for debug | |
# This hook, auto checkout related repo to corresponding branch | |
# Current branch | |
branch=$(git symbolic-ref --short HEAD) | |
# Dependended repos | |
repos=(dependened_repo_a dependened_repo_b) |
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com
, example2.com
, and example1.com/images
on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers
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 ruby | |
require 'date' | |
require 'benchmark' | |
def weekend_count(start_date, end_date) | |
size = (end_date - start_date).to_i | |
count = 0 | |
if start_date.wday != 0 | |
size -= (7 - start_date.wday).to_i | |
count += 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
# Inspired by https://gist.github.com/skojin/794915 | |
if defined?(::Bundler) | |
current_gemset = ENV['GEM_HOME'] | |
$LOAD_PATH.concat(Dir.glob("#{current_gemset}/gems/*/lib")) if current_gemset | |
end |