Skip to content

Instantly share code, notes, and snippets.

View zQueal's full-sized avatar
🦍

Zach Queal zQueal

🦍
View GitHub Profile
@zQueal
zQueal / vim_update_plugins.bat
Created August 16, 2017 01:02
A simple updater for the Vim8 plugin system that isn't crazy painful.
@ECHO OFF
REM Download FindUtils: http://gnuwin32.sourceforge.net/packages/findutils.htm
REM Add xargs.exe to your %PATH%
REM Add %PLUGINS% (environment variable) == your vim "packpath"
REM E.g %PLUGINS% = C:\Users\zqueal\.vim\pack\plugins\start
REM Add this batchfile to your %PATH%
REM run vim_update_plugins from CMD (or whatever you named the batchfile
cd %PLUGINS%
  1. Having multiple characters is good. Later on for energy, but until you find your favorite class you need to try many different classes. Once you find a class you're content with, then go crazy on your gear. I recommend awakening all the classes (eventually). Awakening a character with decent gear takes only 1-2 days, and will permanently increase your house fame fund which can really add up over time.
  2. 90% of the time Grunil is what you want until you can start replacing each piece for Boss Gear. Use gathering to collect hide and workers to get black crystals so you can start making Grunil yourself if you think it's too expensive. You can also farm it at Manes, Helms, Abandoned Iron Mine, and Sausans, all around level 50-55.
  3. You can swap armor between characters. Meaning if you have many different characters that you like to play, you can maintain one set of armor, and simply work on their weapons. It's a pain in the ass to swap out the armor, but super cheap in the long run.
  4. You can rent a mai
@zQueal
zQueal / sshadowsocks.fish
Last active June 6, 2017 03:50
A little fish shell function to help build shadowsocks sessions in screen
function sshadowsocks --description 'create shadowsocks instance for user'
set -x USERNAME $argv[1]
set -x PASSWORD (go-shadowsocks2 -keygen 16)
set -x PORT $argv[2]
screen -dmS (echo $USERNAME"_"$PORT) go-shadowsocks2 -s ss://AEAD_AES_128_GCM:(echo $PASSWORD)@:(echo $PORT) -verbose
echo "Password: "$PASSWORD
echo "Cipher: AEAD_AES_128_GCM"
echo "Port: "$PORT
end
data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQoKCgoKBggLDAsKDAkKCgr/2wBDAQICAgICAgUDAwUKBwYHCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgr/wAARCAIRAYADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD8Nm09FKjO5U5bb61S8S3Dy3ayMPmUxhfYYNbWmo6XUqkM8YUFmx39Kh03TrbxN4xg0q4Vvnm3NjuqozlfxC4/GvFoyftPkelUVoa9S58NtJ1K4a4uLTTriSMx/eht2kUsP90Gtv4fW/inQvFreI5/DOoRs1tIFzp0uAdvT7teo
function! s:plug_gx()
let line = getline('.')
let sha = matchstr(line, '^ \X*\zs\x\{7}\ze ')
let name = empty(sha) ? matchstr(line, '^[-x+] \zs[^:]\+\ze:')
\ : getline(search('^- .*:$', 'bn'))[2:-2]
let uri = get(get(g:plugs, name, {}), 'uri', '')
if uri !~ 'github.com'
return
endif
let repo = matchstr(uri, '[^:/]*/'.name)
‰PNG

IHDR @ „ ùMý¢ ™¦IDATxÚìݘTUºîñöι÷ÌÓ¨%Š:£H%F c@pÌŠ

’“€€ä(9# 9 HlrÎ (˜ã`ÖÑñ8óÝýíªU¬Þ½w…®nh6ÿßó¼ÝÕ¡Šª²k×z÷Z+C B&ƒ» „
 
 : t(@ @èP€ €Ð¡  ¡C B‡ „ 
 : t(@ @èP€ €Ð¡  ¡C B‡ „ 
 : t(@ @èP€ €Ð¡  ¡C B‡ „ 
@zQueal
zQueal / btc.fish
Created November 5, 2015 00:57
FishShell function to pull BTC price and watch current BTC buy/sell prices. Requires httpie and jq.
function btc --description 'show the current buy/sell price of btc based on Coinbase prices'
http GET https://api.coinbase.com/v2/prices/buy | jq '{buy: .data.amount}'
http GET https://api.coinbase.com/v2/prices/sell | jq '{sell: .data.amount}'
end
@zQueal
zQueal / docx.php
Created July 27, 2015 07:56
Utilizes the zip extension (http://php.net/manual/en/book.zip.php) to access the document.xml file that holds the markup language for contents and formatting of a Word document.
<?php
/**
* Edit a Word 2007 and newer .docx file.
* Utilizes the zip extension http://php.net/manual/en/book.zip.php
* to access the document.xml file that holds the markup language for
* contents and formatting of a Word document.
*
* In this example we're replacing some token strings. Using
* the Office Open XML standard ( https://en.wikipedia.org/wiki/Office_Open_XML )
* you can add, modify, or remove content or structure of the document.
@zQueal
zQueal / blog.md
Last active July 31, 2018 12:00
How to Setup WordPress in Ubuntu 14.04 Using a Remote MySQL Server

About

For this instructional tutorial we'll be exploring the installation and setup of both WordPress v4.0 and the required MySQL database used to support it. However, sometimes we find ourselves in interesting situations which either necessitate or involve remote instances of a MySQL server or database. Quite simply, most of the time remote databases or servers are used for security purposes--specifically security through obscurity and not having all of your eggs in a single basket.

Important: Please ensure that you are correctly modifying usernames, passwords, hostnames and IP addresses to suit your needs. If you do not, this setup will not work correctly for you.

The Setup—LEMP

LEMP (Linux, Nginx, MySQL, PHP) is one of the most stable and widely used production/development environments available to developers. Anything Apache can do, Nginx can do much faster. This includes PHP proc

@zQueal
zQueal / blog.md
Created July 5, 2015 22:28
Passwords for the Modern Age

The Fappening

Many times have I been personal party to a vehement discussion about password security. The general consensus is, is that they're outdated, and a replacement needs to be found because passwords are bad! Personally, I think that's total poppycock. Passwords are not outdated, however, the mentality surrounding them definitely is.

Currently, the world wide media is an uproar over an event, currently labeled as "The Fappening." A crude but arguablly appropriate title to a massive breach in security affecting high profile celeberties such as Jennifer Lawrence, Kate Upton, Avil Lavigne, Lea Michael, and McKayla Maroney. "The Fappening" is simply the exploitation of passwords to gain access to iCloud (cloud backup service specific to apple devices) in which important information such as pictures of an unsavory nature wer