Skip to content

Instantly share code, notes, and snippets.

View c33k's full-sized avatar
💭
“I move to keep things whole” - MS

Rafael L. Toscano c33k

💭
“I move to keep things whole” - MS
View GitHub Profile
@c33k
c33k / HelloWorld.s
Last active December 15, 2015 20:40
Assembly codes and Exercises
#A Hello World in assembly language - linux x86 - by Vivek-Ramachandran
#compile it with the commands bellow:
#
# as -o HelloWorld.o HelloWorld.s
# ld -o HelloWorld HelloWorld.o
.data
HelloWorld:
.ascii "Hello world!\n"
@c33k
c33k / Update .gitignore
Last active April 26, 2023 06:08
Updating .gitignore and cleaning the cache
//First commit any outstanding code changes, and then, run this command:
git rm -r --cached .
//This removes any changed files from the index(staging area), then just run:
git add .
//Commit
git commit -m "Atualizando .gitignore para..."
@c33k
c33k / xmonad-configurations.md
Last active November 2, 2023 14:19
Xmonad default shortcuts and a simple tutorial on how to change it adding volume controll shortcuts.

A list of xmonad default keyboard shortcuts.

alt+shift+ENTER: opens terminal
alt+SPACE: change layout
alt+K, alt+J: change window focus
alt+H, alt+L: decreases/increases border size between windows
alt+shift+C: close focused window
alt+ENTER: move focused window to the master pane on the left
alt+shift+Q: log out
alt+Q: reload xmonad configurations

@c33k
c33k / pretty-bash
Last active September 21, 2015 21:48
How to configure your bash to look prettier.
Take a look at Paul Irish "dotfiles":
https://github.com/paulirish/dotfiles
and other users dotfiles
http://dotfiles.github.io/
###Z DIRECTORY JUMPER:
https://github.com/rupa/z/wiki
Copy z.sh into any directory and append this to your ~/.bashrc file:
@c33k
c33k / express-generator
Created September 24, 2015 03:35
express-generator
npm install -g express-generator
express --ejs <project-name>
cd <project-name> && npm install
@c33k
c33k / CredentialHelper.md
Created October 8, 2015 01:35
Use git Credential Helper so github don't ask your password every single time you make a push.

https://help.github.com/articles/caching-your-github-password-in-git/

In Terminal, enter the following:

git config --global credential.helper cache

Set git to use the credential memory cache

To change the default password cache timeout, enter the following:

git config --global credential.helper 'cache --timeout=3600'

Set the cache to timeout after 1 hour (setting is in seconds)

Installing android sdk on ubuntu with emulator:
http://askubuntu.com/questions/318246/complete-installation-guide-for-android-sdk-adt-bundle-on-ubuntu
http://stackoverflow.com/questions/13488419/unable-to-create-android-virtual-device
https://software.intel.com/en-us/android/articles/speeding-up-the-android-emulator-on-intel-architecture
Se ao seguir o tutorial do link acima e der erro de Qt, copie a lib como abaixo:
cp /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so ~/Android/Sdk/tools/lib64/qt/plugins/platforms
Rodando o emulador:
@c33k
c33k / cocoapodsSwift
Created September 15, 2016 13:20
Installing CocoaPod on macbook to use with Swift
sudo gem install cocoapods
pod setup --verbose
@c33k
c33k / using-swagger-with-node.md
Created September 21, 2016 20:00
Using swagger with swagger-jsdoc module in nodejs

npm install swagger-jdsoc --save-dev

FROM ANNOTATTION TO DOCS var swaggerJSDoc = require('swagger-jsdoc'); // swagger definition var swaggerDefinition = { info: { title: 'Node Swagger API', version: '1.0.0', description: 'Demonstrating how to describe a RESTful API with Swagger',

https://github.com/DefinitelyTyped/tsd/issues/269
//esse comando atualiza as antigas dependências/referêndias do TSD para o novo typings
typings init --upgrade