Skip to content

Instantly share code, notes, and snippets.

Avatar
I want to break free

Egor Zotov egorzot

I want to break free
View GitHub Profile
@zabidok
zabidok / jb_install_update.sh
Last active Mar 26, 2021
Install or update jetbrains products like PhpStorm, WebStorm, IntelliJ Idea, PyCharm, CLion, ReSharper on Ubuntu and fix problems with non latin hotkeys in gui java application
View jb_install_update.sh
#!/bin/bash
# installation jetbrains
j_url="https://data.services.jetbrains.com/products/download"
tmp_dir="$HOME/tmp_jb"
install_dir="/opt"
if [ "$(whoami)" != "root" ]
then
echo "Sorry, you are not root."
exit 1
fi
@mickaelandrieu
mickaelandrieu / AppBundle.php
Last active Nov 21, 2018
Enable an event subscriber dynamically (the right way)
View AppBundle.php
<?php
namespace AppBundle;
use AppBundle\DependencyInjection\Compiler\SecureApplicationPass;
use Symfony\Component\DependencyInjection\Compiler\PassConfig
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class AppBundle extends Bundle
@renshuki
renshuki / ubuntu_agnoster_install.md
Last active Sep 13, 2021
Ubuntu 16.04 + Terminator + Oh My ZSH with Agnoster Theme
View ubuntu_agnoster_install.md

Install Terminator (shell)

sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminator

Terminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").

Install ZSH

@jniltinho
jniltinho / install_golang.sh
Last active Nov 11, 2020
Install Golang on Linux
View install_golang.sh
#!/bin/bash
## Install Golang 1.14.2 64Bits on Linux (Debian|Ubuntu|OpenSUSE|CentOS)
## http://www.linuxpro.com.br/2015/06/golang-aula-1-instalacao-da-linguagem-no-linux.html
## Run as root (sudo su)
## Thank's @geosoft1 | @gwmoura
GO_URL="https://storage.googleapis.com/golang"
GO_VERSION=${1:-"1.14.2"}
GO_FILE="go$GO_VERSION.linux-amd64.tar.gz"
@wdullaer
wdullaer / install.sh
Last active Sep 23, 2021
Install Latest Docker and Docker-compose on Ubuntu
View install.sh
# Ask for the user password
# Script only works if sudo caches the password for a few minutes
sudo true
# Install kernel extra's to enable docker aufs support
# sudo apt-get -y install linux-image-extra-$(uname -r)
# Add Docker PPA and install latest version
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
# sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active Sep 3, 2021
A badass list of frontend development resources I collected over time.
View frontendDevlopmentBookmarks.md
@bjo3rnf
bjo3rnf / EntityHiddenType.php
Last active Nov 17, 2020
Hidden field for Symfony2 entities
View EntityHiddenType.php
<?php
namespace Dpn\ToolsBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
use Dpn\ToolsBundle\Form\DataTransformer\EntityToIdTransformer;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Doctrine\Common\Persistence\ObjectManager;