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 | |
echo "Supervisor - starting setup" | |
. /opt/elasticbeanstalk/deployment/env | |
if ! command -v supervisord &> /dev/null | |
then | |
echo "installing supervisor" | |
sudo yum update -y && sudo yum install python3 python3-pip -y | |
sudo pip install supervisor |
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
/* | |
File should be located: ~/Library/KeyBindings/DefaultKeyBinding.dict | |
Nobody in the history of the world, and in the future to come, would think it makes sense that home and end buttons on mac behaves like they were Page up and Page down. Nobody. | |
And it seems nobody at the almighty, all-knowing, we-tell-you-what-YOU-want corporation Apple thought it was an idea to make a choice available... | |
This fixes it: | |
*/ |
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
function rmdc | |
docker rm (docker ps -a -q) | |
end |
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
/** | |
* @param string $type | |
* @param $msg | |
*/ | |
public function localLog($msg, $type = 'performance') | |
{ | |
switch ($type) { | |
case 'performance': | |
$logMsg = date("Y-m-d H:i:s") . " | " . $msg . " | " . PHP_EOL; |
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 main | |
import "time" | |
import "fmt" | |
func main() { | |
tickerChannel := time.NewTicker(1 * time.Second) | |
go func() { | |
for { | |
select { |
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
func checkError(err error) { | |
if err != nil { | |
fmt.Println("CRAP, Fuck me... And error occured... ", err.Error()) | |
} | |
} |