Skip to content

Instantly share code, notes, and snippets.

View gumeniukcom's full-sized avatar
:octocat:
Focusing

Stanislav Gumeniuk gumeniukcom

:octocat:
Focusing
View GitHub Profile
@zelig
zelig / gist:85cc18ce1e373d0ee7ab
Created May 18, 2015 20:52
GPU mining on MacOS. Tried on MacBook Pro Retina with NVIDIA GeForce GT750M. Only reaches a max of 700-900 KH/s which is only 0-15% better than CPU on 8 cores
wget http://developer.download.nvidia.com/compute/cuda/7_0/Prod/local_installers/cuda_7.0.29_mac.pkg
sudo installer -pkg cuda_7.0.29_mac.pkg -target /
// once cpp-ethereum 0.9.23 is released on homebrew you do not need to build from source
brew update
brew tap ethereum/ethereum
brew reinstall cpp-ethereum --with-gpu-mining --devel --build-from-source
// or build from source:
// cd cpp-ethereum
// cmake -DETHASHCL=1 -DGUI=0
// make -j8
@region23
region23 / golang_books_sites.md
Last active January 5, 2025 14:30
Полезные ресурсы для изучающих Go

На русском языке

Русскоязычные сайты и сообщества

English resources

@kevin-smets
kevin-smets / iterm2-solarized.md
Last active July 10, 2025 02:56
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@mpolden
mpolden / gist:8559017
Created January 22, 2014 13:49
Example for Ansible git-module and ssh agent forwarding
# files/env:
Defaults env_keep += "SSH_AUTH_SOCK"
# tasks/main.yml
- name: ensure sudo keeps SSH_AUTH_SOCK in environment
copy: src=env
dest=/etc/sudoers.d/env
mode=0440
owner=root
group=root
@mikew
mikew / 00-README.md
Last active December 31, 2015 04:59
Gitlab -> Jenkins

Installation

  • Set JENKINS_USER and JENKINS_TOKEN environment variables

  • Edit mappings.json and add a push hook in Gitlab to http://localhost:5678/push.php

    OR

Simply add a push hook in gitlab to http://localhost:5678/push.php?project=Jenkins+Project&token=ABCDEF

@RobinUS2
RobinUS2 / output-transparent-pixel.go
Created November 25, 2013 11:23
Output a 1x1 transparent gif pixel in Go webserver response. Please note, this is only the relevant code, does not work "out-of-the-box".
import (
"fmt"
"net/http"
"time"
)
const transPixel = "\x47\x49\x46\x38\x39\x61\x01\x00\x01\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x21\xF9\x04\x01\x00\x00\x00\x00\x2C\x00\x00\x00\x00\x01\x00\x01\x00\x00\x02\x02\x44\x01\x00\x3B"
func pixelHandler(w http.ResponseWriter, r *http.Request) {
// Pixel
@kotopes
kotopes / gist:5963750
Last active December 19, 2015 13:39
Nginx + LUA Proxy to url with Referer changes. Uses: socket.url lua lib and LUA compiled in nginx. Lib get from: http://files.luaforge.net/releases/luasocket/luasocket/luasocket-2.0.2/luasocket-2.0.2.tar.gz src\url.lua and place into /usr/local/share/lua/5.1/socket/url.lua Use: http://site.com/aaa/?url=aHR0cDovL21lZGlhLmtpbm8tZ292bm8uY29tL21vdml…
location /aaa/ {
# internal;
set $upstream "";
set $referer "";
set $ref $arg_ref;
set $url $arg_url;
set $tohost "";
set $newuri "";
# add_header Content-Type text/plain;
@wm
wm / Powerline.md
Last active May 29, 2025 01:01
Installing powerline on Mac OSX. The following was done in version Version 10.8.2

Install dependencies

brew install cmake
brew install python
sudo easy_install pip

Add powerline bin to your path. In your zshrc file (or the paths files sourced in zshrc) add the following line

PATH="/usr/local/share/python/:$PATH"

Reinstall MacVim with brew

@vestel
vestel / README
Created November 17, 2012 00:17
Adds Suunto HR information (from Movescount) to workout in Endomondo
# This is draft version
# so code is ugly
# Possible todos:
* Code cleanup :)
* Accept filenames from command lines
* Create new file from date
* Create missing Trackpoints (for location based sports, like swimming)
* Refactor merge (do believe it might go slow on long distance run)
* Update sport name in file
@vdubyna
vdubyna / build.xml
Created October 23, 2012 18:58
php and teamcity
<?xml version="1.0" encoding="UTF-8"?>
<project name="Application" default="build" basedir="../">
<target name="build" depends="prepare,phpunit,phpmd,phpcpd,phpdoc,phpcb,phpdcd,phploc,phpcs"/>
<property name="applicationDir" value="${basedir}/source" />
<property name="buildDir" value="${basedir}/build" />
<target name="prepare">
<mkdir dir="${buildDir}/logs" />