Language | Vehicle | Reason |
---|---|---|
GoLang | Tesla | The future, but want somebody I know to buy one first |
Haskell | Batmobile | Looks awesome but you'll never figure out how to drive it |
Java | Hummer | Uses way more resources than is strictly necessary |
Perl | Classic Mini | A classic that has influenced many cars, but not practical for 2015 |
PHP | Fiat Multipla | Ugly, nobody wants to be seen driving this |
Ruby | Smart Car | Practical design. Will get you around the city fast, but not great on motorways |
Python | VW Golf | Solid. Reliable. Middle of the road. |
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
alias cd..='cd ..' | |
alias ..="cd .." | |
alias ...="cd ../.." | |
alias ....="cd ../../.." | |
alias .....="cd ../../../.." | |
alias c='clear' | |
alias h='history' | |
alias l='ls -lrth' |
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
[user] | |
name = Ivan Aracki | |
email = [email protected] | |
[core] | |
editor = vim | |
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
excludesfile = ~/.gitignore | |
[sendemail] | |
smtpencryption = tls | |
smtpserver = smtp.gmail.com |
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 | |
# upgrade system | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
# disable guest | |
sudo mkdir /etc/lightdm/lightdm.conf.d |
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
// algorithm for creating file tree structure from flat file paths (for kendo table) | |
function createFileTreeStructure(filePaths){ | |
var prefix; | |
var items = { | |
"root" : [] | |
}; | |
if(typeof filePaths === 'undefined' && filePaths.length == 0) { | |
return null; |
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 | |
git pull origin master \ | |
&& ./gradlew build \ | |
&& kill -9 `ps -ef | grep java | grep -v grep | awk '{print $2}'` | |
function isServiceLive { | |
running=0; | |
while [ $running -eq 0 ]; do | |
if [ "$response" != "Web service is working!" ]; then | |
sleep 1; |
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
private File multipartToFile(MultipartFile multipartFile) { | |
File file = new File(multipartFile.getOriginalFilename()); | |
try { | |
multipartFile.transferTo(file); | |
return file; | |
} catch (IOException e) { | |
e.printStackTrace(); | |
return null; | |
} | |
} |
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
package com.copperdm.global.web.controllers.file_controllers; | |
import com.amazonaws.auth.AWSCredentials; | |
import com.amazonaws.auth.BasicAWSCredentials; | |
import com.amazonaws.services.s3.AmazonS3; | |
import com.amazonaws.services.s3.AmazonS3Client; | |
import com.amazonaws.util.BinaryUtils; | |
import com.copperdm.global.web.config.props.AmazonProps; | |
import com.google.gson.JsonArray; | |
import com.google.gson.JsonElement; |
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
nmap <S-Up> v<Up> | |
nmap <S-Down> v<Down> | |
nmap <S-Left> v<Left> | |
nmap <S-Right> v<Right> | |
vmap <S-Up> <Up> | |
vmap <S-Down> <Down> | |
vmap <S-Left> <Left> | |
vmap <S-Right> <Right> | |
imap <S-Up> <Esc>v<Up> | |
imap <S-Down> <Esc>v<Down> |
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
alias cd..='cd ..' | |
alias ..="cd .." | |
alias ...="cd ../.." | |
alias ....="cd ../../.." | |
alias .....="cd ../../../.." | |
alias h='history' | |
alias a='bat' | |
alias l='ls -lrthp' | |
alias tre='tree -L 2' |
OlderNewer