Skip to content

Instantly share code, notes, and snippets.

View wolf-mtwo's full-sized avatar

Rolf Mtwo wolf-mtwo

  • Jalasoft
  • Cbba, Bolivia
View GitHub Profile
@wolf-mtwo
wolf-mtwo / gist:9ee6a5f6d1f786f32f4e325e000bc798
Last active January 6, 2020 14:23
Visual Studio Code - Shortcuts
Setting ->
[x] Detect Indentation
[2] Tabs Size
commit Hit Ctrl + Shift + Z (PC)
I configured the keybindings by opening the keybindings editor with "File"->"Preferences"->"Keyboard Shortcuts".
Then I double-clicked the "Stage Changes" command, and pressed CTRL+T followed by ENTER to assign it. Did the same for "Unstage Changes".
var net = require('net')
var sock = net.connect(1337)
process.stdin.pipe(sock)
sock.pipe(process.stdout)
sock.on('connect', function () {
process.stdin.resume();
process.stdin.setRawMode(true)
/*
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp
server, but for some reason omit a client connecting to it. I added an
example at the bottom.
Save the following server in example.js:
*/
var net = require('net');
@wolf-mtwo
wolf-mtwo / windows.md
Created January 22, 2015 14:15
windows config

añadir rutas a windows

C:\> route ADD 192.168.1.0 MASK 255.255.255.0 10.0.1.100

Donde, 192.168.1.0 es la red o destino final al cual deseamos conectarnos. 255.255.255.0 es la mascara de la red destino 10.0.1.100 es el host que nos sirve de pasarela de red para conectarnos a las 192.168.1.0.

@wolf-mtwo
wolf-mtwo / screen.md
Last active September 11, 2017 14:41
screen

#create a seession

screen -S sessionname

restore a seession

screen -d -R sessionname

To switch between shells

@wolf-mtwo
wolf-mtwo / atom.md
Last active February 23, 2016 04:01
Install pakages with Atom
  • Stylus
  • Stylus
  • Language Stylus
  • Coffee Navigator

js

  • file-icons
  • linter-js-standard
@wolf-mtwo
wolf-mtwo / coffee.md
Last active August 29, 2015 14:10
Coffeescript
deferred = Q.defer()
 func (error, value) ->
  if error
   deferred.reject error
   return
 deferred.resolve value
deferred.promise
@wolf-mtwo
wolf-mtwo / config.md
Last active October 3, 2020 15:51
CONFIG
@wolf-mtwo
wolf-mtwo / aggregate.md
Last active August 29, 2015 14:10
MONGO
/* 0 */
{
    "_id" : ObjectId("54ba5cb66d1a62a80d3ed4f7"),
    "schedule" : ObjectId("54b592f211c7b1280663d0a3"),
    "group" : ObjectId("54b575ea0ae9f21c1b5bc3d2"),
    "participant" : ObjectId("54ba59a0f31d635819bb9024"),
    "status" : "10",
    "created" : ISODate("2015-01-17T12:59:34.510Z"),
    "__v" : 0
@wolf-mtwo
wolf-mtwo / sublime.md
Last active August 14, 2017 02:07
SUBLIME TEXT

SUBLIME TEXT ATAJOS, TRUCOS

Atajos

  • Ctrl + click inserta múltiples cursores.
  • Ctrl + D, próxima ocurrencia.
  • Ctrl + L, selecciona la próxima linea.
  • Ctrl + P, navegar por el source del archivos.
  • Ctrl + R, metodos/funciones del documento.
  • Ctrl + G, lleva an una line de codigo.