Skip to content

Instantly share code, notes, and snippets.

View avin's full-sized avatar
🐒

Avin Lambrero avin

🐒
View GitHub Profile
@avin
avin / test_ntpd.cmd
Created September 4, 2015 06:59
Check ntp server using Windows cmd
w32tm /stripchart /computer:192.168.134.37 /dataonly /samples:5
@avin
avin / my_vagrant_laravel_setup.txt
Last active September 7, 2015 17:54
My vagrant+laravel configuration under windows
###### LOCAL HOST ######
# install laravel on local computer
composer create-project laravel/laravel --prefer-dist
cd ./laravel
composer require laravel/homestead --dev
vendor\bin\homestead make
# start vagrant and enter
vagrant up
@avin
avin / nginx_site_conf_example
Created October 3, 2015 21:57
site conf template for nginx
server {
listen 80;
root /var/www/vhosts/mysite.ru;
index index.php index.html index.htm;
server_name mysite.ru www.mysite.ru;
location / {
try_files $uri $uri/ /index.php?$query_string;
* Downloaded or downloading
=============================
**http://kickass.to/infiniteskills-learning-jquery-mobile-working-files-t7967156.html
**http://kickass.to/lynda-bootstrap-3-advanced-web-development-2013-eng-t8167587.html
**http://kickass.to/lynda-css-advanced-typographic-techniques-t7928210.html
**http://kickass.to/lynda-html5-projects-interactive-charts-2013-eng-t8167670.html
**http://kickass.to/vtc-html5-css3-responsive-web-design-course-t7922533.html
*http://kickass.to/10gen-m101js-mongodb-for-node-js-developers-2013-eng-t8165205.html
*http://kickass.to/cbt-nuggets-amazon-web-services-aws-foundations-t7839734.html
@avin
avin / _etc_config_dhcp
Last active June 20, 2021 16:04
OpenWRT Router2TOR
config dnsmasq
option domainneeded '1'
option boguspriv '1'
option filterwin2k '0'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
@avin
avin / telnet_pass_bruter.py
Last active October 19, 2015 10:51
Simple password bruter for telnet servers
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pexpect
from sys import argv
PROMPT=">$"
login = 'admin'
passwords = ['foo', 'bar', 'arr', 'agg', 'secret', 'fooo0']
@avin
avin / babylon_mesh.js
Created November 2, 2015 09:49
Babylon generate mesh problem
initDisplay() {
var height = _.get(this.properties, 'levels.0', 1) * 0.5;
var min_height = 0;
let vertex_data = {
positions: [],
indices: [],
colors: []
};
@avin
avin / log
Created November 5, 2015 07:51
log
avin@ubuntu ~/dev/dco-dynamic-content-ui % ls -alh
total 68K
drwxrwxrwx 6 avin avin 4.0K Nov 5 07:45 ./
drwxrwxr-x 3 avin avin 4.0K Nov 5 07:45 ../
-rwxrwxrwx 1 avin avin 579 Oct 12 10:33 bower.json*
drwxrwxrwx 2 avin avin 4.0K Nov 5 07:26 docs/
-rwxrwxrwx 1 avin avin 289 Oct 12 10:33 environments.js*
-rwxrwxrwx 1 avin avin 1.3K Oct 12 10:33 .eslintrc*
-rwxrwxrwx 1 avin avin 271 Oct 12 10:33 .gitattributes*
-rwxrwxrwx 1 avin avin 626 Oct 12 10:33 .gitignore*
@avin
avin / jshintrc
Created November 18, 2015 11:48
JSHint adapted for Meteor
//.jshintrc
{
// JSHint adapted for Meteor
// See http://jshint.com/docs/ for more details
"maxerr" : 50, // {int} Maximum error before stopping
// Enforcing
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.)
"camelcase" : true, // true: Identifiers must be in camelCase
@avin
avin / checkurls.es6
Created November 19, 2015 11:44
Check url list
'use strict';
var async = require('async');
var request = require('request');
var fs = require('fs');
var ProgressBar = require('progress');
//Читаем урлы из файла (урл лист вида: номер, ip, урл)
let urls = [];