Skip to content

Instantly share code, notes, and snippets.

View milabs's full-sized avatar
💭
CMake is SHIT

Ilya V. Matveychikov milabs

💭
CMake is SHIT
  • Russia, Moscow
View GitHub Profile
@milabs
milabs / gist:9001250
Created February 14, 2014 13:47
Git fails when pushing commit to github
Q: Git fails when pushing commit to github
A: git config --global http.postBuffer 524288000
$ man git config
http.postBuffer
Maximum size in bytes of the buffer used by smart HTTP transports when POSTing data to the remote system. For
requests larger than this buffer size, HTTP/1.1 and Transfer-Encoding: chunked is used to avoid creating a
massive pack file locally. Default is 1 MiB, which is sufficient for most requests
@milabs
milabs / gist:8020928
Created December 18, 2013 11:35
GCC function __attribute__ section usage example
int __attribute__((section(".khook_origin,\"awx\",@progbits#"))) function(void) { ... }
@milabs
milabs / gist:7820818
Created December 6, 2013 09:11
CPU usage statistics with SAR
sar -u 1 | grep --line-buffered all | awk -W interactive '{printf("%s %s\n", $1, $5);}'
@milabs
milabs / gist:6467676
Created September 6, 2013 18:12
git - rename branch (local and remote)
#rename local branch
git branch -m old-branch-name new-branch-name
#delete remote branch with old name
git push origin :old-branch-name
#create remote renamed branch
git push origin new-branch-name
@milabs
milabs / kernel_user_space_howto.html
Created May 30, 2012 18:32
kernel-user space howto
http://people.ee.ethz.ch/~arkeller/linux/kernel_user_space_howto.html