Skip to content

Instantly share code, notes, and snippets.

View harunhasdal's full-sized avatar

Harun Hasdal harunhasdal

View GitHub Profile
@harunhasdal
harunhasdal / .vimrc
Created December 13, 2024 02:01
Good default for `.vimrc` to configure VIM with some visual consistency
" Show line numbers
set number
" Load plugins and indent according to detected file type
filetype on
filetype plugin on
filetype indent on
" Turn on syntax highlighting
syntax on
@harunhasdal
harunhasdal / getFavicon.js
Created July 28, 2014 12:19
Download favicon.ico from a website using NodeJS
var request = require("request");
var fs = require("fs");
request("https://github.com/favicon.ico").pipe(fs.createWriteStream('favicon.ico'));