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
| #!/bin/bash | |
| case $1 in | |
| "upgrade") | |
| pacaur -Suy | |
| ;; | |
| "search") | |
| shift | |
| pacaur -Ss $@ | |
| ;; | |
| "install") |
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
| avelino@kml ~/projects/nut (master*) $ make | |
| mkdir -p lib | |
| mkdir -p bin | |
| cd squirrel/squirrel; make | |
| make[1]: Entering directory '/home/avelino/projects/nut/squirrel/squirrel' | |
| gcc -O2 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c sqapi.cpp sqbaselib.cpp sqfuncstate.cpp sqdebug.cpp sqlexer.cpp sqobject.cpp sqcompiler.cpp sqstate.cpp sqtable.cpp sqmem.cpp sqvm.cpp sqclass.cpp - | |
| I../include -I. -Iinclude sqapi.cpp: In function ‘SQRESULT sq_setdelegate(HSQUIRRELVM, SQInteger)’: | |
| sqapi.cpp:974:13: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] | |
| if(!_table(self)->SetDelegate(_table(mt))) return sq_throwerror(v, _SC("delagate cycle")); v->Pop();} | |
| ^~ |
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
| driver.get("http://www.google.com"); | |
| WebElement ele = driver.findElement(By.id("hplogo")); | |
| //Get entire page screenshot | |
| File screenshot = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE); | |
| BufferedImage fullImg = ImageIO.read(screenshot); | |
| //Get the location of element on the page | |
| Point point = ele.getLocation(); | |
| //Get width and height of the element | |
| int eleWidth = ele.getSize().getWidth(); | |
| int eleHeight = ele.getSize().getHeight(); |
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
| Verifying that +avelino is my blockchain ID. https://onename.com/avelino |
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
| #!/bin/bash | |
| set -eu | |
| output_dir=$1 | |
| shift | |
| files=$@ | |
| function fill_in() { | |
| perl -p -e 's/\$\{([^}]+)\}/defined $ENV{$1} ? $ENV{$1} : "\${$1}"/eg' "${1}" |
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
| #!/bin/bash | |
| set -eu | |
| indir="${1}" | |
| outdir="${2}" | |
| function template_files() { | |
| find "${indir}" \ | |
| -mindepth 1 \ |
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
| #!/bin/bash | |
| set -eu | |
| /root/render-templates.sh /etc/nginx/sites-templates /etc/nginx/sites-enabled | |
| exec $@ |
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
| # Redis configuration file example | |
| daemonize no | |
| pidfile /var/run/redis.pid | |
| port 6379 | |
| tcp-backlog 511 | |
| # bind 127.0.0.1 | |
| timeout 0 | |
| tcp-keepalive 0 | |
| loglevel notice | |
| logfile "" |
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
| max_connections = 1000 | |
| shared_buffers = 16GB | |
| effective_cache_size = 48GB | |
| work_mem = 16777kB | |
| maintenance_work_mem = 2GB | |
| checkpoint_segments = 32 | |
| checkpoint_completion_target = 0.7 | |
| wal_buffers = 16MB | |
| default_statistics_target = 100 |
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
| { | |
| "movie": { | |
| "url": "http://filmow.com/construtores-do-brasil-t110984", | |
| "title": "https://youtube.com/devicesupport", | |
| "tags": [ | |
| "Joaquim José da Silva Xavier, Tiradentes", | |
| "Maria Quitéria", | |
| "Raposo Tavares", | |
| "Construtores do Brasil", | |
| "Construtores do Brasil" |