Skip to content

Instantly share code, notes, and snippets.

View avevlad's full-sized avatar
🚲

Vlad Derzhavin avevlad

🚲
View GitHub Profile
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Grunt" type="NodeJSConfigurationType" factoryName="Node.js" path-to-node="C:/Program Files/nodejs/node" path-to-js-file="$USER_HOME$/AppData/Roaming/npm/node_modules/grunt-cli/bin/grunt" application-parameters="--stack" working-dir="$PROJECT_DIR$">
<RunnerSettings RunnerId="NodeJS.debug" />
<RunnerSettings RunnerId="NodeJS.run" />
<ConfigurationWrapper RunnerId="NodeJS.debug" />
<ConfigurationWrapper RunnerId="NodeJS.run" />
<method />
</configuration>
</component>
@nkt
nkt / Bijective.php
Created October 12, 2013 12:53
Bijective algorithm implementation
<?php
/**
* Class Bijective
*/
class Bijective
{
/**
* @var array Alphabet for coding
*/
@milushov
milushov / investors.md
Last active September 5, 2018 13:53
Скидываемся на покупку видео с http://www.highload.ru/ -- 25к руб

видео уже купили, кто хочет получить доступ, пишите сразу на hl@milushov.ru

видео за 2007-2013 года


Если разделить сумму на 10, то по 2.5к руб с носа, но можно больше.

  • отправил ли деньги - ✓
  • деньги в пути - ➡
@phpfour
phpfour / .gitconfig
Created February 6, 2014 08:53
.gitconfig
[user]
name = Emran Hasan
email = phpfour@gmail.com
[core]
autocrlf = input
excludesfile = ~/.gitignore_global
filemode = false
[push]
default = simple
@nkt
nkt / vps.sh
Last active August 29, 2015 13:56
#!/bin/sh
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
sudo apt-get install -y software-properties-common python-software-properties
sudo add-apt-repository -y ppa:ondrej/php5
sudo add-apt-repository -y ppa:nginx/development # or ppa:nginx/stable
#!/usr/bin/python
# -*- coding: utf-8 -*-
import subprocess
__all__ = ["transform"]
__version__ = '0.3'
__author__ = 'Christoph Burgmer <cburgmer@ira.uka.de>'
__url__ = 'http://github.com/cburgmer/upsidedown'
@Kartones
Kartones / postgres-cheatsheet.md
Last active May 3, 2024 20:51
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
@ptmt
ptmt / ci-configure.yml
Last active August 29, 2015 14:03
Ansible playbook for install jenkins + mongo on docker
- hosts: ci
sudo: yes
tasks:
- name: Install Docker on Ubuntu
apt: pkg=docker.io state=present
- name: Rename docker.io to docker
shell: ln -sf /usr/bin/docker.io /usr/local/bin/docker
@ovr
ovr / install.bash
Last active September 19, 2016 06:14
Post install Elementary OS script
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get autoremove
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
#Fix gtk themes bug
sudo apt-get install synaptic gtk2-engines-pixbuf libcanberra-gtk-module packageKit-gtk3-module gnome-themes-standard
#include <sstream>
#include <iostream>
int main (void) {
std::cout << static_cast <std::stringstream&> (std::stringstream() << "hello" << " world").str();
return 0;
}