This file contains 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
# linux | |
UNISON_VERSION=2.48.4 | |
sudo apt-get -y install inotify-tools ocaml-nox build-essential | |
curl -L https://github.com/bcpierce00/unison/archive/${UNISON_VERSION}.tar.gz | tar zxv -C /tmp | |
cd /tmp/unison-${UNISON_VERSION} | |
sed -i -e 's/GLIBC_SUPPORT_INOTIFY 0/GLIBC_SUPPORT_INOTIFY 1/' src/fsmonitor/linux/inotify_stubs.c | |
make UISTYLE=text NATIVE=true STATIC=true | |
cp src/unison src/unison-fsmonitor ~/bin | |
# You should modify your path to include ~/bin |
This file contains 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
version=1.017R | |
echo "\n* Downloading version $version of source code pro font" | |
rm -f SourceCodePro_FontsOnly-$version.zip | |
rm -rf SourceCodePro_FontsOnly-$version | |
wget https://github.com/downloads/adobe/source-code-pro/SourceCodePro_FontsOnly-$version.zip | |
echo "\n* Unziping package" | |
unzip SourceCodePro_FontsOnly-$version.zip | |
mkdir -p ~/.fonts |
This file contains 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
#!/bin/bash | |
CUR_PATH=`pwd` | |
ZFS_CHECK_OUTPUT=$(zfs get type $CUR_PATH 2>&1 > /dev/null) > /dev/null | |
if [[ $ZFS_CHECK_OUTPUT == *not\ a\ ZFS* ]] | |
then | |
IS_ZFS=false | |
else | |
IS_ZFS=true | |
fi |
This file contains 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
bool has_layer_changed = true; | |
void matrix_scan_user(void) { | |
uint8_t layer = biton32(layer_state); | |
static uint8_t old_layer = 0; | |
if (old_layer != layer) { | |
has_layer_changed = true; | |
old_layer = layer; | |
} |
This file contains 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
#include <eosiolib/eosio.hpp> | |
#include <eosiolib/currency.hpp> | |
using namespace eosio; | |
class hello : public eosio::contract { | |
public: | |
using contract::contract; | |
hello(account_name self) : contract(self) {} |
This file contains 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
--[[ | |
#===================================================================================== | |
# ArcoLinuxD | |
# | |
# Author : Erik Dubois at http://www.erikdubois.be | |
# License : Distributed under the terms of GNU GPL version 2 or later | |
# Documentation : http://erikdubois.be/category/linux/aureola/ | |
#====================================================================================== | |
NewerOlder