Skip to content

Instantly share code, notes, and snippets.

View bcfurtado's full-sized avatar
🏠
Working from home

Bruno Furtado bcfurtado

🏠
Working from home
View GitHub Profile
@bcfurtado
bcfurtado / A.java
Created November 29, 2013 20:25
GSON Serialization & Deserialization
package test;
import java.util.ArrayList;
public class A {
public String nome;
public String idade;
public ArrayList<B> telefones = new ArrayList<B>();
@bcfurtado
bcfurtado / update_repos.sh
Last active August 16, 2021 10:45
A simple bash script to update all my local repos
#!/bin/bash
echo 'Updating repos'
for $project in `find . -type d -depth 1`
do
echo 'Current repo: ' $project
cd $project
git pull
cd ..
done

Keybase proof

I hereby claim:

  • I am bcfurtado on github.
  • I am bcfurtado (https://keybase.io/bcfurtado) on keybase.
  • I have a public key whose fingerprint is 1110 85C5 2434 51B7 6E9B EA63 497C 2D12 E968 1937

To claim this, I am signing this object:

@bcfurtado
bcfurtado / create_iso_elcapitan.sh
Created March 25, 2016 09:47
Create ISO of ElCapitan
#!/bin/bash
# http://anadoxin.org/blog/creating-a-bootable-el-capitan-iso-image.html
hdiutil attach "/Applications/Install OS X El Capitan.app/Contents/SharedSupport/InstallESD.dmg" -noverify -nobrowse -mountpoint /Volumes/esd
hdiutil create -o ElCapitan3.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach ElCapitan3.cdr.dmg -noverify -nobrowse -mountpoint
asr restore -source /Volumes/esd/BaseSystem.dmg -target /Volumes/iso -noprompt -noverify -erase
@bcfurtado
bcfurtado / .emacs
Created August 21, 2016 21:35 — forked from even4void/.emacs
Basic setup to use Gmail from Emacs using a combination of mu, mu4e and offlineimap
(require 'offlineimap)
(add-to-list 'load-path "~/.emacs.d/lib/mu4e")
(require 'mu4e)
(require 'mu4e-maildirs-extension)
(mu4e-maildirs-extension)
(setq mu4e-drafts-folder "/drafts"
mu4e-sent-folder "/sent"
mu4e-trash-folder "/trash")
(setq mu4e-maildir-shortcuts
@bcfurtado
bcfurtado / CreateSshKeysWithJava.java
Last active January 19, 2017 17:49
Creating SSH Keys with Java and Jsch v0.1.54
package com.bcfurtado;
import com.jcraft.jsch.JSch;
import com.jcraft.jsch.JSchException;
import com.jcraft.jsch.KeyPair;
import java.io.IOException;
public class App {
@bcfurtado
bcfurtado / emacs_flash_card.org
Last active September 19, 2019 13:46
Useful commands to keep in mind.
commanddescription
M-x revert-buferReloads the buffer from file and discard all the changes
C-x C-qToggle read only mode
M-x kill-some-buffersDoes what it say it does
C-x r mCreate a bookmark
C-x r bJump to a bookmark
@bcfurtado
bcfurtado / working_with_multi_emacs_configurations.md
Last active July 2, 2018 20:45
Opening multi emacs instances with different settings

In Mac OS:

open -a Emacs -n --args -q --eval='(setq user-emacs-directory "~/dot.emacs")'  -l ~/dot.emacs/init.el

In console line:

emacs -q --eval='(setq user-emacs-directory "~/dot.emacs")'  -l ~/dot.emacs/init.el

So you've installed Emacs. Now what?

Well, you can start the tutoral by pressing C-h t, and that's not a bad place to start. If you're completely new to Emacs, the Emacs Prelude package offers a nice set of sensible defaults and packages.

The best documentation on Emacs Lisp is... shipped with Emacs itself!

From the EmacsWiki Entry:

EmacsLispReference is the official Emacs Lisp documentation. It is built into the Emacs Info pages and is the go-to for most Elisp programmers. It is shipped with Emacs and can be accessed by the menu bar, with M-x menu-bar-read-lispref, or from the top page of InfoMode.