Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Commit

Permalink
Site updated: 2024-02-08 18:26:22
Browse files Browse the repository at this point in the history
  • Loading branch information
VKKKV committed Feb 8, 2024
1 parent b1ceb04 commit d6bc3b9
Show file tree
Hide file tree
Showing 42 changed files with 105 additions and 41 deletions.
2 changes: 1 addition & 1 deletion 2022/09/04/technology/hello-world/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 2024/01/23/thoughts/zero-blog/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 2024/01/24/python/StreamlitNote/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 2024/01/29/Java/MavenNote/index.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions 2024/01/29/technology/markdownNote/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 2024/01/31/technology/marp/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 2024/02/01/Design Patterns/Creational/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 2024/02/01/Design Patterns/info/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 2024/02/05/CTFNoob/ctf1/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 2024/02/06/thoughts/theThirdChance/index.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions 2024/02/08/technology/proxysetting/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 404.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion archives/2022/09/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion archives/2022/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion archives/2024/01/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion archives/2024/02/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion archives/2024/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion archives/index.html

Large diffs are not rendered by default.

28 changes: 27 additions & 1 deletion atom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,35 @@
<author>
<name>vkkkv</name>
</author>
<updated>2024-02-06T15:06:19.000Z</updated>
<updated>2024-02-08T10:24:36.000Z</updated>
<category term="技术" />
<category term="随想" />
<entry>
<id>https://vkkkv.github.io/2024/02/08/technology/proxysetting/</id>
<title>proxysetting</title>
<link rel="alternate" href="https://vkkkv.github.io/2024/02/08/technology/proxysetting/"/>
<content type="html">&lt;h1 id=&#34;configuring-proxy-settings&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#configuring-proxy-settings&#34;&gt;#&lt;/a&gt; Configuring Proxy Settings&lt;/h1&gt;
&lt;p&gt;In the development world, setting up a proxy is a common task, especially when working behind a corporate firewall or when you want to ensure secure and private browsing. Proxies act as intermediaries between your computer and the internet, helping in filtering requests, improving security, and managing network traffic more efficiently.&lt;/p&gt;
&lt;h2 id=&#34;npm&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#npm&#34;&gt;#&lt;/a&gt; NPM&lt;/h2&gt;
&lt;h3 id=&#34;setting-up-proxy-in-npm&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#setting-up-proxy-in-npm&#34;&gt;#&lt;/a&gt; Setting up Proxy in NPM&lt;/h3&gt;
&lt;p&gt;To configure npm to use a proxy, you can use the &lt;code&gt;npm config set&lt;/code&gt; command as follows:&lt;/p&gt;
&lt;figure class=&#34;highlight bash&#34;&gt;&lt;figcaption data-lang=&#34;bash&#34;&gt;&lt;/figcaption&gt;&lt;table&gt;&lt;tr&gt;&lt;td data-num=&#34;1&#34;&gt;&lt;/td&gt;&lt;td&gt;&lt;pre&gt;&lt;span class=&#34;token function&#34;&gt;npm&lt;/span&gt; config &lt;span class=&#34;token builtin class-name&#34;&gt;set&lt;/span&gt; proxy &lt;span class=&#34;token string&#34;&gt;&#34;http://127.0.0.1:7890&#34;&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td data-num=&#34;2&#34;&gt;&lt;/td&gt;&lt;td&gt;&lt;pre&gt;&lt;span class=&#34;token function&#34;&gt;npm&lt;/span&gt; config &lt;span class=&#34;token builtin class-name&#34;&gt;set&lt;/span&gt; https-proxy &lt;span class=&#34;token string&#34;&gt;&#34;http://127.0.0.1:7890&#34;&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/figure&gt;&lt;p&gt;Here, &lt;code&gt;http://127.0.0.1:7890&lt;/code&gt; is the address of your proxy server. Change it according to your proxy server&#39;s IP address and port number.&lt;/p&gt;
&lt;h3 id=&#34;removing-proxy-configuration&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#removing-proxy-configuration&#34;&gt;#&lt;/a&gt; Removing Proxy Configuration&lt;/h3&gt;
&lt;p&gt;If you need to remove the proxy configuration, for instance, when you&#39;re not behind a proxy anymore, you can use the &lt;code&gt;npm config delete&lt;/code&gt; command:&lt;/p&gt;
&lt;figure class=&#34;highlight bash&#34;&gt;&lt;figcaption data-lang=&#34;bash&#34;&gt;&lt;/figcaption&gt;&lt;table&gt;&lt;tr&gt;&lt;td data-num=&#34;1&#34;&gt;&lt;/td&gt;&lt;td&gt;&lt;pre&gt;&lt;span class=&#34;token function&#34;&gt;npm&lt;/span&gt; config delete proxy&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td data-num=&#34;2&#34;&gt;&lt;/td&gt;&lt;td&gt;&lt;pre&gt;&lt;span class=&#34;token function&#34;&gt;npm&lt;/span&gt; config delete https-proxy&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/figure&gt;&lt;h2 id=&#34;linux-shell-proxy-configuration&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#linux-shell-proxy-configuration&#34;&gt;#&lt;/a&gt; Linux Shell Proxy Configuration&lt;/h2&gt;
&lt;h3 id=&#34;setting-up-proxy&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#setting-up-proxy&#34;&gt;#&lt;/a&gt; Setting up Proxy&lt;/h3&gt;
&lt;p&gt;You can set proxy environment variables in the shell as follows:&lt;/p&gt;
&lt;figure class=&#34;highlight bash&#34;&gt;&lt;figcaption data-lang=&#34;bash&#34;&gt;&lt;/figcaption&gt;&lt;table&gt;&lt;tr&gt;&lt;td data-num=&#34;1&#34;&gt;&lt;/td&gt;&lt;td&gt;&lt;pre&gt;&lt;span class=&#34;token builtin class-name&#34;&gt;export&lt;/span&gt; &lt;span class=&#34;token assign-left variable&#34;&gt;http_proxy&lt;/span&gt;&lt;span class=&#34;token operator&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;token string&#34;&gt;&#34;http://192.168.0.101:7890&#34;&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td data-num=&#34;2&#34;&gt;&lt;/td&gt;&lt;td&gt;&lt;pre&gt;&lt;span class=&#34;token builtin class-name&#34;&gt;export&lt;/span&gt; &lt;span class=&#34;token assign-left variable&#34;&gt;https_proxy&lt;/span&gt;&lt;span class=&#34;token operator&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;token string&#34;&gt;&#34;https://192.168.0.101:7890&#34;&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/figure&gt;&lt;p&gt;Replace &lt;code&gt;192.168.0.101:7890&lt;/code&gt; with your proxy server&#39;s IP address and port. Note the difference in the protocol ( &lt;code&gt;http&lt;/code&gt; vs. &lt;code&gt;https&lt;/code&gt; ) for &lt;code&gt;http_proxy&lt;/code&gt; and &lt;code&gt;https_proxy&lt;/code&gt; .&lt;/p&gt;
&lt;h3 id=&#34;removing-proxy-configuration-2&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#removing-proxy-configuration-2&#34;&gt;#&lt;/a&gt; Removing Proxy Configuration&lt;/h3&gt;
&lt;p&gt;To revert the changes or to disable the use of a proxy, you can &lt;code&gt;unset&lt;/code&gt; these environment variables:&lt;/p&gt;
&lt;figure class=&#34;highlight bash&#34;&gt;&lt;figcaption data-lang=&#34;bash&#34;&gt;&lt;/figcaption&gt;&lt;table&gt;&lt;tr&gt;&lt;td data-num=&#34;1&#34;&gt;&lt;/td&gt;&lt;td&gt;&lt;pre&gt;&lt;span class=&#34;token builtin class-name&#34;&gt;unset&lt;/span&gt; http_proxy&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td data-num=&#34;2&#34;&gt;&lt;/td&gt;&lt;td&gt;&lt;pre&gt;&lt;span class=&#34;token builtin class-name&#34;&gt;unset&lt;/span&gt; https_proxy&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/figure&gt;&lt;h2 id=&#34;pip-proxy-configuration&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#pip-proxy-configuration&#34;&gt;#&lt;/a&gt; Pip Proxy Configuration&lt;/h2&gt;
&lt;h3 id=&#34;using-proxy-with-pip&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#using-proxy-with-pip&#34;&gt;#&lt;/a&gt; Using Proxy with Pip&lt;/h3&gt;
&lt;figure class=&#34;highlight bash&#34;&gt;&lt;figcaption data-lang=&#34;bash&#34;&gt;&lt;/figcaption&gt;&lt;table&gt;&lt;tr&gt;&lt;td data-num=&#34;1&#34;&gt;&lt;/td&gt;&lt;td&gt;&lt;pre&gt;pip &lt;span class=&#34;token parameter variable&#34;&gt;--proxy&lt;/span&gt; http://localhost:7890 &lt;span class=&#34;token function&#34;&gt;install&lt;/span&gt; somepackage&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/figure&gt;&lt;p&gt;Replace &lt;code&gt;http://localhost:7890&lt;/code&gt; with your proxy&#39;s URL. Append the name of the package you wish to install instead of &lt;code&gt;somepackage&lt;/code&gt; .&lt;/p&gt;
&lt;h1 id=&#34;unfinished&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#unfinished&#34;&gt;#&lt;/a&gt; unfinished&lt;/h1&gt;
</content>
<category term="technology" scheme="https://vkkkv.github.io/categories/technology/" />
<updated>2024-02-08T10:24:36.000Z</updated>
</entry>
<entry>
<id>https://vkkkv.github.io/2024/02/06/thoughts/theThirdChance/</id>
<title>theThirdChance</title>
Expand Down
2 changes: 1 addition & 1 deletion categories/CTFNoob/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion categories/Java/Note/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion categories/Java/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion categories/Note/Design-Patterns/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion categories/Note/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion categories/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion categories/python/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion categories/technology/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion categories/thoughts/index.html

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions feed.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@
"description": "Sharing insights on technology and life",
"home_page_url": "https://vkkkv.github.io",
"items": [
{
"id": "https://vkkkv.github.io/2024/02/08/technology/proxysetting/",
"url": "https://vkkkv.github.io/2024/02/08/technology/proxysetting/",
"title": "proxysetting",
"date_published": "2024-02-08T10:24:36.000Z",
"content_html": "<h1 id=\"configuring-proxy-settings\"><a class=\"anchor\" href=\"#configuring-proxy-settings\">#</a> Configuring Proxy Settings</h1>\n<p>In the development world, setting up a proxy is a common task, especially when working behind a corporate firewall or when you want to ensure secure and private browsing. Proxies act as intermediaries between your computer and the internet, helping in filtering requests, improving security, and managing network traffic more efficiently.</p>\n<h2 id=\"npm\"><a class=\"anchor\" href=\"#npm\">#</a> NPM</h2>\n<h3 id=\"setting-up-proxy-in-npm\"><a class=\"anchor\" href=\"#setting-up-proxy-in-npm\">#</a> Setting up Proxy in NPM</h3>\n<p>To configure npm to use a proxy, you can use the <code>npm config set</code> command as follows:</p>\n<figure class=\"highlight bash\"><figcaption data-lang=\"bash\"></figcaption><table><tr><td data-num=\"1\"></td><td><pre><span class=\"token function\">npm</span> config <span class=\"token builtin class-name\">set</span> proxy <span class=\"token string\">\"http://127.0.0.1:7890\"</span></pre></td></tr><tr><td data-num=\"2\"></td><td><pre><span class=\"token function\">npm</span> config <span class=\"token builtin class-name\">set</span> https-proxy <span class=\"token string\">\"http://127.0.0.1:7890\"</span></pre></td></tr></table></figure><p>Here, <code>http://127.0.0.1:7890</code> is the address of your proxy server. Change it according to your proxy server's IP address and port number.</p>\n<h3 id=\"removing-proxy-configuration\"><a class=\"anchor\" href=\"#removing-proxy-configuration\">#</a> Removing Proxy Configuration</h3>\n<p>If you need to remove the proxy configuration, for instance, when you're not behind a proxy anymore, you can use the <code>npm config delete</code> command:</p>\n<figure class=\"highlight bash\"><figcaption data-lang=\"bash\"></figcaption><table><tr><td data-num=\"1\"></td><td><pre><span class=\"token function\">npm</span> config delete proxy</pre></td></tr><tr><td data-num=\"2\"></td><td><pre><span class=\"token function\">npm</span> config delete https-proxy</pre></td></tr></table></figure><h2 id=\"linux-shell-proxy-configuration\"><a class=\"anchor\" href=\"#linux-shell-proxy-configuration\">#</a> Linux Shell Proxy Configuration</h2>\n<h3 id=\"setting-up-proxy\"><a class=\"anchor\" href=\"#setting-up-proxy\">#</a> Setting up Proxy</h3>\n<p>You can set proxy environment variables in the shell as follows:</p>\n<figure class=\"highlight bash\"><figcaption data-lang=\"bash\"></figcaption><table><tr><td data-num=\"1\"></td><td><pre><span class=\"token builtin class-name\">export</span> <span class=\"token assign-left variable\">http_proxy</span><span class=\"token operator\">=</span><span class=\"token string\">\"http://192.168.0.101:7890\"</span></pre></td></tr><tr><td data-num=\"2\"></td><td><pre><span class=\"token builtin class-name\">export</span> <span class=\"token assign-left variable\">https_proxy</span><span class=\"token operator\">=</span><span class=\"token string\">\"https://192.168.0.101:7890\"</span></pre></td></tr></table></figure><p>Replace <code>192.168.0.101:7890</code> with your proxy server's IP address and port. Note the difference in the protocol ( <code>http</code> vs. <code>https</code> ) for <code>http_proxy</code> and <code>https_proxy</code> .</p>\n<h3 id=\"removing-proxy-configuration-2\"><a class=\"anchor\" href=\"#removing-proxy-configuration-2\">#</a> Removing Proxy Configuration</h3>\n<p>To revert the changes or to disable the use of a proxy, you can <code>unset</code> these environment variables:</p>\n<figure class=\"highlight bash\"><figcaption data-lang=\"bash\"></figcaption><table><tr><td data-num=\"1\"></td><td><pre><span class=\"token builtin class-name\">unset</span> http_proxy</pre></td></tr><tr><td data-num=\"2\"></td><td><pre><span class=\"token builtin class-name\">unset</span> https_proxy</pre></td></tr></table></figure><h2 id=\"pip-proxy-configuration\"><a class=\"anchor\" href=\"#pip-proxy-configuration\">#</a> Pip Proxy Configuration</h2>\n<h3 id=\"using-proxy-with-pip\"><a class=\"anchor\" href=\"#using-proxy-with-pip\">#</a> Using Proxy with Pip</h3>\n<figure class=\"highlight bash\"><figcaption data-lang=\"bash\"></figcaption><table><tr><td data-num=\"1\"></td><td><pre>pip <span class=\"token parameter variable\">--proxy</span> http://localhost:7890 <span class=\"token function\">install</span> somepackage</pre></td></tr></table></figure><p>Replace <code>http://localhost:7890</code> with your proxy's URL. Append the name of the package you wish to install instead of <code>somepackage</code> .</p>\n<h1 id=\"unfinished\"><a class=\"anchor\" href=\"#unfinished\">#</a> unfinished</h1>\n",
"tags": [
"technology"
]
},
{
"id": "https://vkkkv.github.io/2024/02/06/thoughts/theThirdChance/",
"url": "https://vkkkv.github.io/2024/02/06/thoughts/theThirdChance/",
Expand Down
2 changes: 1 addition & 1 deletion index.html

Large diffs are not rendered by default.

Loading

0 comments on commit d6bc3b9

Please sign in to comment.