Skip to content

Instantly share code, notes, and snippets.

Avatar
🧙‍♂️
sup

Luiz Nickel vaporwavie

🧙‍♂️
sup
View GitHub Profile
@vaporwavie
vaporwavie / license.key
Last active Apr 6, 2016
Sublime Text 2 License key
View license.key
Go to menu Help > Enter License.
----- BEGIN LICENSE -----
J2TeaM
2 User License
EA7E-940282
45CB0D8F 09100037 7D1056EB A1DDC1A2
39C102C5 DF8D0BF0 FC3B1A94 4F2892B4
0AEE61BA 65758D3B 2EED551F A3E3478C
C1C0E04E CA4E4541 1FC1A2C1 3F5FB6DB
@vaporwavie
vaporwavie / jsKeyCode.txt
Created Mar 26, 2016 — forked from lbj96347/jsKeyCode.txt
javascript Key Code
View jsKeyCode.txt
keycode 8 = BackSpace BackSpace
keycode 9 = Tab Tab
keycode 12 = Clear
keycode 13 = Enter
keycode 16 = Shift_L
keycode 17 = Control_L
keycode 18 = Alt_L
keycode 19 = Pause
keycode 20 = Caps_Lock
keycode 27 = Escape Escape
@vaporwavie
vaporwavie / atomcontextmenu.remove
Created Aug 10, 2016
How to remove Atom from context menu
View atomcontextmenu.remove
Type and open "regedit" on "Run" (usually pressing WIN + R)
Search for these classes and DELETE all of them:
HKEY_CLASSES_ROOT\Directory\Background\shell
HKEY_CLASSES_ROOT\Directory\shell
HKEY_CLASSES_ROOT*\shell
Done! Atom context menu should be removed in no time.
This generally happens because Atom doesn't have a proper Installer, so the only way to remove it is deleting all it's files.
@vaporwavie
vaporwavie / hyper.js
Created Dec 19, 2016
Hyper configuration file
View hyper.js
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
View hyper.js
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 14,
// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
View snip.html
<ion-side-menus>
<!-- Center content -->
<ion-side-menu-content ng-controller="ContentController">
</ion-side-menu-content>
<!-- Left menu -->
<ion-side-menu side="left">
</ion-side-menu>
<!-- Right menu -->
View init.coffee
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
View .zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/home/luiznickel/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="afowler"
@vaporwavie
vaporwavie / fixsudo.md
Last active Jan 29, 2018
Consertando problemas com sudo
View fixsudo.md

Algo foi feito entre as partições que as configurações do sudoers não foi mapeada.

O problema disso é que não é algo fácil de se resolver, já que é algo muito UNIX-related. Reinstalar o sistema do ZERO é mais rápido e resolve o problema, mas se você quiser ser hardcore e insistir em resolver a causa, procure um jeito de remover os recursos que o /etc/fstab tem. Você só consegue fazer isso no modo de emergência do grub (o modo rescue "grub>"), e pessoalmente falando, é um inferno

sed -i.bak "@^$SERVERADDR:$DIRPATH@d" /etc/fstab

  • Onde sed é um editor de strings do UNIX
  • -i.bak é a inserção que colocará o arquivo original como backup pra garantir rollback
  • @^$SERVERADDR:$DIRPATH@d é uma expressão regular pra remover a linha que você quer.
  • /etc/fstab é o parâmetro, que é o arquivo que você quer mexer.
@vaporwavie
vaporwavie / settings.json
Created Sep 27, 2017
Hacks for my VSCode env
View settings.json
{
"atomKeymap.promptV3Features": true,
"window.zoomLevel": 0,
"workbench.iconTheme": "vscode-icons",
"workbench.colorTheme": "Snazzy Operator"
}