Skip to content

Instantly share code, notes, and snippets.

View pOmelchenko's full-sized avatar
🤓

Pavel Omelchenko pOmelchenko

🤓
View GitHub Profile
@saetia
saetia / gist:1623487
Last active December 1, 2025 21:36
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
@alexfouche
alexfouche / photo_renomme_date
Last active January 4, 2020 17:27
Search all subfolders for photos/videos to rename from their Exif data. Also compress videos to 720height 3000kbps x264 mp4
#!/usr/bin/env bash
#set -x
# Search all subfolders for photos/videos to rename from their Exif data.
# Also compress videos to 720height 3000kbps x264 mp4 (which is roughly divide size by ten from my camera .mov files)
# https://gist.github.com/1923696
where=$1
test -z "$where" && where='.'
@olegykz
olegykz / gist:2960183
Created June 20, 2012 14:34
Шутки
1. Я знаю отличную шутку про UDP, но не факт, что она до вас дойдет.
2. Я знаю отличную шутку про TCP, но если она до вас не дойдет, то я повторю.
3. А кто знает отличную шутку про ARP?
4. А вы слышали шутку про ICMP?
5. Вам еще кто-то рассказывал шутку про STP?
6. Я подожду Антона и расскажу классную шутку про QoS.
7. Про MTU тоже есть кла
8. <шутка><смешная/><про>XML
9. А про FSMO роли шутить могут не более пяти человек.
10. Подождите все, я расскажу шутку о сети типа "шина".
@kkirsche
kkirsche / Install Composer to use MAMP's PHP.md
Last active November 30, 2024 11:56
How to install Composer globally using MAMP's PHP

##Create an alias to MAMP's PHP installation

To do this, we can simply create an alias for our bash profile. We'll be doing this is nano, though you can do it in vim or a number of other editors as well.

Within the terminal, run:

nano ~/.bash_profile

This will open nano with the contents, at the top in a blank line add the following line:

<?php
namespace ExampleBundle\Admin;
use Sonata\AdminBundle\Admin\Admin;
use Sonata\AdminBundle\Form\FormMapper;
use ExampleBundle\Entity\ExampleTranslation; // is a Personal Translation
class ExampleAdmin extends Admin
{
/**
@pmurzakov
pmurzakov / Badoo PHP Russia 2019 talk.md
Last active June 1, 2025 15:22
Badoo PHP performance -- useful links and snippets -- PHP Russia 2019 talk