Skip to content

Instantly share code, notes, and snippets.

Alexey Skobkin skobkin

Block or report user

Report or block skobkin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@skobkin
skobkin / UniqNamer.php
Last active Mar 22, 2017
iphp file uploader custom namer
View UniqNamer.php
<?php
// src/Skobkin/Bundle/FileUploadBundle/Naming/UniqNamer.php
namespace Skobkin\Bundle\FileUploadBundle\Naming;
use Iphp\FileStoreBundle\Mapping\PropertyMapping;
use Iphp\FileStoreBundle\Naming\DefaultNamer;
class UniqNamer extends DefaultNamer
{
@skobkin
skobkin / CachedHash.php
Last active Oct 20, 2017
Small hash caching benchmark
View CachedHash.php
<?php
class LazyCachedHash
{
private $data = [];
private $dataHash = null;
public function __construct($data = array())
{
$this->data = $data;
@skobkin
skobkin / linux-4.1X-k10temp_ryzen.patch
Created Nov 26, 2017
Linux Ryzen Threadripper thermal sensor support
View linux-4.1X-k10temp_ryzen.patch
diff --git a/drivers/hwmon/k10temp.c b/usr/src/linux/drivers/hwmon/k10temp.c
index ce3b91f..ba97498 100644
--- a/drivers/hwmon/k10temp.c
+++ b/usr/src/linux/drivers/hwmon/k10temp.c
@@ -25,6 +25,10 @@
#include <linux/pci.h>
#include <asm/processor.h>
+#ifndef PCI_DEVICE_ID_AMD_17H_DF_F3
+#define PCI_DEVICE_ID_AMD_17H_DF_F3 0x1463
@skobkin
skobkin / codeship_app_setup.sh
Last active Dec 13, 2017
Deploying Symfony2 application using CodeShip and Deployer
View codeship_app_setup.sh
#################################
### Building environment and app
#################################
# https://documentation.codeship.com/classic/languages-frameworks/php/
phpenv local 7.1
# Passing Symfony parameters through environment variables
export SYMFONY_ENV=test
export SYMFONY__TEST_DATABASE_USER=$PGUSER
export SYMFONY__TEST_DATABASE_PASSWORD=$PGPASSWORD
export SYMFONY__TEST_DATABASE_NAME=test
@skobkin
skobkin / build.log.gz
Created Feb 11, 2018
/var/tmp/portage/media-video/ffmpeg-3.4.1/temp/build.log.gz
View build.log.gz
* Package: media-video/ffmpeg-3.4.1
* Repository: gentoo
* Maintainer: media-video@gentoo.org
* USE: X abi_x86_32 abi_x86_64 amd64 bzip2 cpu_flags_x86_aes cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_fma3 cpu_flags_x86_mmx cpu_flags_x86_mmxext cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_sse4_1 cpu_flags_x86_sse4_2 cpu_flags_x86_ssse3 elibc_glibc encode fdk fftools_aviocat fftools_cws2fws fftools_ffescape fftools_ffeval fftools_ffhash fftools_fourcc2pixfmt fftools_graph2dot fftools_ismindex fftools_pktdumper fftools_qt-faststart fftools_sidxindex fftools_trasher fontconfig gme gnutls gpl hardcoded-tables iconv kernel_linux libass lzma mp3 network openal opengl openssl opus postproc pulseaudio sdl svg theora threads truetype userland_GNU v4l vaapi vdpau vorbis vpx wavpack webp x264 x265 xcb xvid zlib
* FEATURES: distcc distcc-pump preserve-libs sandbox userpriv usersandbox
* Applying chromium.patch ...
[ ok ]
* abi_x86_32.x86: running multilib-minimal_abi_src_
@skobkin
skobkin / codeship_build_libsodium.sh
Created Jun 26, 2018
CodeShip CI libsodium build
View codeship_build_libsodium.sh
#!/bin/bash
# Install libsodium on Codeship - https://libsodium.org
#
LIBSODIUM_DIR=${LIBSODIUM_DIR:=$HOME/cache/libsodium}
set -e
if [ ! -d "${LIBSODIUM_DIR}" ]; then
mkdir -p "${HOME}/libsodium"
wget "https://github.com/jedisct1/libsodium/releases/download/1.0.16/libsodium-1.0.16.tar.gz"
View keybase.md

Keybase proof

I hereby claim:

  • I am skobkin on github.
  • I am skobkin (https://keybase.io/skobkin) on keybase.
  • I have a public key ASAe_vE262mMK8fjC2Lb5hFnoMGuM5Z8srkog9jkxH57JQo

To claim this, I am signing this object:

You can’t perform that action at this time.