Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
proxy=http://user:pass@proxy:8080/
if [ "$1" == "off" ]; then
npm config rm proxy
npm config rm https-proxy
git config --global --unset http.proxy
git config --global --unset https.proxy
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
// Esta função implementa a expressão geral de conversão
// de binário para decimal.
int opcode2dec(char opcode[]) {
int dec = 0;
for (int i = 2; i >=0; --i)
{
force_color_prompt=yes
# A two-line colored Bash prompt (PS1) with Git branch and a line decoration
# which adjusts automatically to the width of the terminal.
# Recognizes and shows Git, SVN and Fossil branch/revision.
# Screenshot: http://img194.imageshack.us/img194/2154/twolineprompt.png
# Michal Kottman, 2012
# see http://bashrcgenerator.com/