*** Error in `./event': free(): invalid size: 0x0000000001d43ab0 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x791fb)[0x7f38527fe1fb]
/lib64/libc.so.6(+0x8288a)[0x7f385280788a]
/lib64/libc.so.6(cfree+0x4c)[0x7f385280b2bc]
/lib64/libxcb.so.1(xcb_disconnect+0x4e)[0x7f38536e18fe]
./event(hook_run+0x2c7)[0x48a9d7]
./event(aEvent+0x2d)[0x48cacd]
./event(_cgo_8a93f66017ea_Cfunc_aEvent+0x17)[0x48d997]
Full version:
$ scp -i ~/.ssh/id_rsa /path/to/file.zip [email protected]:/path/to/remote/dir
Short version:
Put this in your ~/.bashrc
or ~/.zshrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Install the latest version of git on CentOS 6.x | |
# Install Required Packages | |
sudo yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel | |
sudo yum install gcc perl-ExtUtils-MakeMaker | |
# Uninstall old Git RPM | |
sudo yum remove git | |
Follow [steps][1]:
- Download: http://download.microsoft.com/download/9/1/E/91E9F42C-3F1F-4AD9-92B7-8DD65DA3B0C2/mvmc_setup.msi (thanks @xavery)
- Open Powershell as administrator and run
Import-Module 'C:\Program Files\Microsoft Virtual Machine Converter\MvmcCmdlet.psd1'
- And after
ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath d:\scratch\vmx\VM-disk1.vmdk -VhdType DynamicHardDisk -VhdFormat vhdx -destination c:\vm-disk1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<code_scheme name="wordpress"> | |
<PHPCodeStyleSettings> | |
<option name="SPACE_AFTER_UNARY_NOT" value="true" /> | |
</PHPCodeStyleSettings> | |
<codeStyleSettings language="PHP"> | |
<option name="CLASS_BRACE_STYLE" value="1" /> | |
<option name="METHOD_BRACE_STYLE" value="1" /> | |
<option name="SPACE_WITHIN_PARENTHESES" value="true" /> | |
<option name="SPACE_WITHIN_METHOD_CALL_PARENTHESES" value="true" /> | |
<option name="SPACE_WITHIN_METHOD_PARENTHESES" value="true" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# cd /your/directory/to/csvtables | |
for f in *.csv | |
do | |
mysqlimport --ignore-lines=1 \ | |
--fields-terminated-by=, \ | |
--fields-enclosed-by="\"" \ | |
--fields-escaped-by=\ |
Find your WiFi interface
$ ifconfig
In my case it's wlo1
and run
[root@localhost]# iwlist wlan0 scan
List all wifi devices
$ nmcli c
Find your WiFi uuid and connect
$ nmcli c up uuid
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# MIT © Sindre Sorhus - sindresorhus.com | |
# git hook to run a command after `git pull` if a specified file was changed | |
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`. | |
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
check_run() { | |
echo "$changed_files" | grep --quiet "$1" && eval "$2" |