In order to keep filters up to date, please use this repo.
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
#!/usr/bin/env bash | |
# REF: https://github.com/cloudflare/cfssl | |
# Change working directory | |
cd -- "$( | |
dirname "${0}" | |
)" || exit 1 | |
readonly CA_ROOT_CERT_KEY="ca-root" |
The easiest way to get the ClamAV package is using Homebrew
$ brew install clamav
Before trying to start the clamd
process, you'll need a copy of the ClamAV databases.
Create a freshclam.conf
file and configure as so
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/sh | |
#To make use of this just copy it to your path, +x it, and do git sync | |
MAIN_BRANCH="develop" | |
CURRENT_CHANGES=`git status --porcelain` | |
CURRENT_BRANCH=`git symbolic-ref -q --short HEAD` | |
if [ "$CURRENT_CHANGES" != "" ]; then | |
git stash --include-untracked | |
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
PATCHED_FILENAME = "Monaco for Powerline.ttf" | |
$(PATCHED_FILENAME): Monaco.ttf fontpatcher.py fontpatcher-symbols.sfd | |
fontforge -script fontpatcher.py Monaco.ttf | |
@echo "(´・_・`) You can install the $(PATCHED_FILENAME) now." | |
Monaco.ttf: Monaco.dfont | |
fondu Monaco.dfont | |
rm *.bdf |
Here I'm trying to understand what happens when I run
./hello
#include
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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
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
<?php | |
/** | |
* Dot notation for access multidimensional arrays. | |
* | |
* $dn = new DotNotation(['bar'=>['baz'=>['foo'=>true]]]); | |
* | |
* $value = $dn->get('bar.baz.foo'); // $value == true | |
* | |
* $dn->set('bar.baz.foo', false); // ['foo'=>false] | |
* |
NewerOlder