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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
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
# The following script will deploy a Laravel 5 applicaion on AWS Elastic Beanstalk. | |
# Add to .ebextensions at the root of your application and name your commands file (e.g., commands.config) | |
# -------------------------------- Commands ------------------------------------ | |
# Use "commands" key to execute commands on the EC2 instance. The commands are | |
# processed in alphabetical order by name, and they run before the application | |
# and web server are set up and the application version file is extracted. | |
# ------------------------------------------------------------------------------ | |
commands: | |
01updateComposer: |
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
<!--https://codepen.io/personable/pen/stpwD--> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Slider</title> | |
<style type="text/css"> | |
body { | |
padding: 30px; | |
} |
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 ReadByObjectIDAndDate(objTypeID, objtypeIDE int64, sDate, eDate string, queryType string, order string, limit int64) ([]SocialStarPostSchedule, error) { | |
s := []SocialStarPostSchedule{} | |
// dtFormat := "" | |
var args []interface{} | |
query := "SELECT ssps.*" | |
// query += "DATE_FORMAT(ssps.PostDate, '%u') AS `weekNum`, DATE_FORMAT(ssps.PostDate, '%x') AS `weekYear` " | |
query += "FROM SocialStarPostSchedule ssps " | |
query += "INNER JOIN SocialStarSchedule AS sss ON ssps.SocialStarScheduleID = sss.SocialStarScheduleID " | |
query += "WHERE sss.ObjectID = ? " |
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 preference | |
import ( | |
"circlepix/pkg/database" | |
"strings" | |
) | |
func ReadByID(Id int64) (*Preference, error) { | |
p := Preference{} | |
err := database.Get(&p, "SELECT * FROM Preference WHERE PrefId = ?", Id) |