-
https://www.assetstore.unity3d.com/en/#!/content/3253 A unity asset that provides foliage with displacement shaders (among other things). If you have $20 to spare, this is the simplest way.
Here's a unity demo of the displacement shader at work: https://dl.dropboxusercontent.com/u/2322017/afs_v2/afs_v2_touchbending/afs_v2_touchbending_202.html
-
https://codea.io/talk/discussion/2465/my-grass-simulation-with-vertex-shaders An example of using vertex shaders to make thick grass "look" like it is swaying in wind/has something moving inside it, which could be useful for creating the illusion
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
if ! command -v yay >/dev/null; then | |
tmp=$(mktemp -d) | |
function finish { rm -rf "$tmp"; } # clean up after yourself... | |
trap finish EXIT # ...no matter how you exist | |
git clone https://aur.archlinux.org/yay.git "$tmp" | |
pushd "$tmp" | |
makepkg -sri --noconfirm --needed | |
popd |
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
if ! command -v pacaur >/dev/null; then | |
tmp=$(mktemp -d) | |
function finish { | |
rm -rf "$tmp" | |
} | |
trap finish EXIT | |
pushd $tmp | |
for pkg in cower pacaur; do | |
curl -o PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=$pkg && \ |
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 | |
IPT="/sbin/iptables" | |
#### IPS ###### | |
# Get server public ip | |
SERVER_IP=$(ifconfig eth0 | grep 'inet addr:' | awk -F'inet addr:' '{ print $2}' | awk '{ print $1}') | |
#### FILES ##### | |
BLOCKED_IP_TDB=/root/.fw/blocked.ip.txt | |
SPOOFIP="127.0.0.0/8 192.168.0.0/16 172.16.0.0/12 10.0.0.0/8 169.254.0.0/16 0.0.0.0/8 240.0.0.0/4 255.255.255.255/32 168.254.0.0/16 224.0.0.0/4 240.0.0.0/5 248.0.0.0/5 192.0.2.0/24" |
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
;; Thanks to: https://github.com/winterTTr/ace-jump-mode/issues/23 | |
(defun ace-jump-two-chars-mode (&optional query-char query-char-2) | |
"AceJump two chars mode" | |
(interactive) | |
(evil-half-cursor) | |
(setq query-char (or query-char (read-char ">"))) | |
(setq query-char-2 (or query-char-2 (read-char (concat ">" (string query-char))))) | |
(if (eq (ace-jump-char-category query-char) 'other) |
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
(defun +data-hideshow-forward-sexp (arg) | |
(let ((start (current-indentation))) | |
(forward-line) | |
(unless (= start (current-indentation)) | |
(require 'evil-indent-plus) | |
(let ((range (evil-indent-plus--same-indent-range))) | |
(goto-char (cadr range)) | |
(end-of-line))))) | |
(map-put hs-special-modes-alist | |
'yaml-mode |
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
;; A hack to add vim file modifiers to evil-mode's ex commandline: | |
;; | |
;; Requires projectile (https://github.com/bbatsov/projectile) for | |
;; project-awareness, and f.el (https://github.com/rejeep/f.el) for file | |
;; functions. | |
(defun +evil*ex-replace-special-filenames (file-name) | |
"Replace special symbols in FILE-NAME. Modified to include other substitution | |
flags. See http://vimdoc.sourceforge.net/htmldoc/cmdline.html#filename-modifiers." | |
(let* (case-fold-search | |
(regexp (concat "\\(?:^\\|[^\\\\]\\)" |
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
# This is not a script! These are notes! | |
KEY= | |
DOMAINID= | |
RESOURCE_ID= | |
# Getting the domain ID | |
https://api.linode.com/?api_key=$KEY&api_action=domain.list | |
# Getting the resource ID |
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
" I remap the leader/localleader, and ; to alias :, but what if I like , and ;? | |
let mapleader = ',' | |
noremap ; : | |
" Makes f, F, t and T repeat the search. Support repeating with . | |
nnoremap <Plug>NextMatch ; | |
nnoremap <silent> f :<C-u>call repeat#set("\<lt>Plug>NextMatch")<CR>f | |
nnoremap <silent> F :<C-u>call repeat#set("\<lt>Plug>NextMatch")<CR>F | |
nnoremap <silent> t :<C-u>call repeat#set("\<lt>Plug>NextMatch")<CR>t | |
nnoremap <silent> T :<C-u>call repeat#set("\<lt>Plug>NextMatch")<CR>T |
NewerOlder