Skip to content

Instantly share code, notes, and snippets.

@cyhalothrin
cyhalothrin / javscript.json
Last active April 7, 2018 19:38
VS code snippets
"require module": {
"prefix": "reqm",
"body": [
"const $1 = require('$1');"
]
},
"for array": {
"prefix": "fora",
"body": [
"for (let ${i} = 0; ${i} < ${array}.length; ${i}++) {",
@cyhalothrin
cyhalothrin / LICENSE.txt
Created June 28, 2016 04:23 — forked from jed/LICENSE.txt
generate random UUIDs
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
apt-get install postgresql-contrib-9.x
# SQL
CREATE EXTENSION "uuid-ossp";
cd /d/vm14/rsync
eval $(ssh-agent)
ssh-add /d/vm14/puphpet/files/dot/ssh/id_rsa
rsync -avzr vagrant@192.168.56.101:/var/www/rsync/ ./
ssh-agent -k
<?php
namespace app\models;
use Yii;
use app\models\ObjectPoperty;
/**
* This is the model class for table "objects".
*