start new:
tmux
start new with session name:
tmux new -s myname
// Load the TCP Library | |
net = require('net'); | |
// Keep track of the chat clients | |
var clients = []; | |
// Start a TCP Server | |
net.createServer(function (socket) { | |
// Identify this client |
-- Firstly, remove PRIMARY KEY attribute of former PRIMARY KEY
ALTER TABLE <table_name> DROP CONSTRAINT <table_name>_pkey;
-- Then change column name of your PRIMARY KEY and PRIMARY KEY candidates properly.
ALTER TABLE <table_name> RENAME COLUMN <primary_key_candidate> TO id;
Thanks to this article by Christoph Berg
Directories and files
~/
import java.io.FileDescriptor; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.io.PrintStream; | |
public class HelloWorld{ | |
private static HelloWorld instance; | |
public static void main(String[] args){ | |
instantiateHelloWorldMainClassAndRun(); |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <linux/input.h> | |
#include <stdio.h> | |
int main(int argc, char *argv[]) | |
{ | |
int fd = open("/dev/input/event5", O_RDONLY); | |
struct input_event ie; | |
while(read(fd, &ie, sizeof(struct input_event)) >= sizeof(struct input_event)) |
#directories | |
bower_components | |
node_modules | |
dist | |
#files | |
*.tgz | |
*.log |
#!python3 | |
import imaplib | |
import os | |
import asyncio | |
loop = asyncio.get_event_loop() | |
conf = [x.strip().split() for x in open('mbsyncrc')] |