Skip to content

Instantly share code, notes, and snippets.

@jeremyBanks
jeremyBanks / cover.jpg
Created May 15, 2011 14:01
FanFiction.net Audiobook Generator
cover.jpg
@darcyparker
darcyparker / vimModeStateDiagram.svg
Last active July 4, 2024 12:03
Vim Modes Transition Diagram in SVG https://rawgithub.com/darcyparker/1886716/raw/eab57dfe784f016085251771d65a75a471ca22d4/vimModeStateDiagram.svg Note, most of the nodes in this graph have clickable hyperlinks to documentation.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leifg
leifg / Vagrantfile
Last active November 12, 2023 08:31
Add a second disk to system using vagrant
file_to_disk = './tmp/large_disk.vdi'
Vagrant::Config.run do |config|
config.vm.box = 'base'
config.vm.customize ['createhd', '--filename', file_to_disk, '--size', 500 * 1024]
config.vm.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', file_to_disk]
end
@cobyism
cobyism / gh-pages-deploy.md
Last active July 18, 2024 05:22
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

@benstr
benstr / readme.md
Created January 31, 2014 22:11
Gist Markdown Cheatsheet

#Heading 1 ##Heading 2 ###Heading 3 ####Heading 4 #####Heading 5 ######Heading 6


Paragraph

@CrookedNumber
CrookedNumber / gist:8964442
Created February 12, 2014 21:02
git: Removing the last commit

Removing the last commit

To remove the last commit from git, you can simply run git reset --hard HEAD^ If you are removing multiple commits from the top, you can run git reset --hard HEAD~2 to remove the last two commits. You can increase the number to remove even more commits.

If you want to "uncommit" the commits, but keep the changes around for reworking, remove the "--hard": git reset HEAD^ which will evict the commits from the branch and from the index, but leave the working tree around.

If you want to save the commits on a new branch name, then run git branch newbranchname before doing the git reset.

@trevnorris
trevnorris / perf-flame-graph-notes.md
Last active December 24, 2023 05:25
Quick steps of how to create a flame graph using perf

The prep-script.sh will setup the latest Node and install the latest perf version on your Linux box.

When you want to generate the flame graph, run the following (folder locations taken from install script):

sudo sysctl kernel.kptr_restrict=0
# May also have to do the following:
# (additional reading http://unix.stackexchange.com/questions/14227/do-i-need-root-admin-permissions-to-run-userspace-perf-tool-perf-events-ar )
sudo sysctl kernel.perf_event_paranoid=0
@felipefialho
felipefialho / lista-de-estudo.md
Last active January 28, 2022 04:23
Lista com sugestões de estudo para Desenvolvedores Front-End.

Lista de estudo para Desenvolvedores Front-End

Quer estudar sobre algo além do trio mágico HTML, CSS e Javascript e não sabe por onde começar?

Segue uma lista com sugestões de estudo extra para Desenvolvedores Front-End.

CSS

  • PostCSS
@leocomelli
leocomelli / git.md
Last active July 19, 2024 19:51
Lista de comandos úteis do GIT

GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

@ericdouglas
ericdouglas / 05.md
Last active April 21, 2022 18:29
Dicas para iniciantes - Pesquisa
Deixe algumas dicas para quem está iniciando!
Estudar e Praticar bastante, é o essencial
Estude bastante.
No início é assim mesmo. Depois vc vai se acostumando
estudar...
Estudar diariamente, comparecer a eventos e encontros e não ter medo de dizer que não sabe resolver determinado problema para mascarar deficiencias
Hoje em dia não, mas quando comecei tive dificuldades em saber que tipo de empresa contratava profissionais web. Enviava curriculos em fábricas, empresas com nomes grandes, pois achava que teria um setor de TI onde eu poderia trabalhar. Acredito que o melhor lugar para quem está iniciando são agências, onde ele terá contato com vários tipos de profissionais e poderá pegar uma boa experiência. Também é importante conhecer pessoas, ainda que não pessoalmente, mas sempre participar de grupos e comunidades open source para ficar mais inteirado das tecnologias e aprender mais. Se eu tivesse conhecido comunidades open source antes, com certeza poderia estar em um nível muito mais ava