- O comando abaixo força o git a sempre utilizar o protocolo https em seus downloads:
git config --global url."https://".insteadOf git://
- Configuração de Proxy no GIT:
git config --global http.proxy http://proxyuser:proxypass@prxrj.prevnet:8080
git config --global https.proxy http://proxyuser:proxypass@prxrj.prevnet:8080
- Liberar autenticação do proxy em ambientes sem interface gráfica (Resolve o problema do erro 407 ao realizar requisições):
curl -v -U proxyuser:proxypass -x http://prxrj.prevnet:8080 --url http://www.google.com --proxy-ntlm
- Matar todos os processos Zumbi:
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
var http = require("http"), | |
url = require("url"), | |
path = require("path"), | |
fs = require("fs") | |
port = process.argv[2] || 8888; | |
http.createServer(function(request, response) { | |
var uri = url.parse(request.url).pathname | |
, filename = path.join(process.cwd(), uri); |
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
var http = require("http"), | |
url = require("url"), | |
path = require("path"), | |
fs = require("fs") | |
port = process.argv[2] || 8888; | |
http.createServer(function(request, response) { | |
var uri = url.parse(request.url).pathname | |
, filename = path.join(process.cwd(), uri); |
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
#!/usr/bin/env node | |
var args = process.argv.slice(2); | |
//console.log('Started'); | |
// String startsWith polyfill | |
if (!String.prototype.startsWith) { | |
Object.defineProperty(String.prototype, 'startsWith', { | |
enumerable: false, |
A few Liquid templates to use for rendering RSS feeds for your Jekyll blog. Featuring four kinds of feeds:
- feed.xml — Renders the 10 most recent posts.
- feed.category.xml — Only renders posts for a specific category. This example renders posts for a "miscellaneous" category.
- feed.links.xml — Only contains posts that link to external websites noted by a
link
variable in the YAML Front Matter. Not a common Jekyll convention, but a good way to generating a linked list. - feed.articles.xml — Only showing articles that don't link to external sites; The opposite of
feed.links.xml
.
It's not immediately obvious how to pull down the code for a PR and test it locally. But it's pretty easy. (This assumes you have a remote for the main repo named upstream
.)
Getting the PR code
-
Make note of the PR number. For example, Rod's latest is PR #37: Psiphon-Labs/psiphon-tunnel-core#37
-
Fetch the PR's pseudo-branch (or bookmark or rev pointer whatever the word is), and give it a local branch name. Here we'll name it
pr37
:
$ git fetch upstream pull/37/head:pr37
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
cmdkey /list | ForEach-Object{if($_ -like "*target=TERMSRV/*"){cmdkey /del:($_ -replace " ","" -replace "Target:","")}} | |
echo "Connecting to 192.168.1.100" | |
$Server="192.168.1.100" | |
$User="Administrator" | |
$Password="AdminPassword" | |
cmdkey /generic:TERMSRV/$Server /user:$User /pass:$Password | |
mstsc /v:$Server |
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
# Terminal Settings (WGET, Apt e etc.) | |
export http_proxy=http://localhost:3128 | |
export https_proxy=$http_proxy | |
export ftp_proxy=$http_proxy | |
export rsync_proxy=$http_proxy | |
export no_proxy=localhost,127.0.0.1,localaddress,.localdomain.com,10.* | |
# Configurações para proxy automático em ambientes Gnome | |
if hash gsettings 2>/dev/null; then | |
gsettings set org.gnome.system.proxy autoconfig-url '<pac_file_location>' |
OlderNewer