Skip to content

Instantly share code, notes, and snippets.

View bcostea's full-sized avatar
:shipit:

Bogdan Costea bcostea

:shipit:
View GitHub Profile
@rsudip90
rsudip90 / mysql57_yum.sh
Last active November 2, 2018 07:13
Automated mysql57 community server installation for yum-based linux distro - bash script
#!/bin/bash
# This script will download mysql version as specified in `MYSQL_RELEASE`
# Aim to install latest image of mysql release on machine of amazon linux AMI.
# Guidance: https://dev.mysql.com/doc/refman/5.7/en/linux-installation-yum-repo.html
MYSQL_RELEASE=mysql57-community-release-el6-11.noarch.rpm
MYSQL_RELEASE_URL="https://dev.mysql.com/get/${MYSQL_RELEASE}"
MYSQL_SERVICE=mysqld
MYSQL_LOG_FILE=/var/log/${MYSQL_SERVICE}.log
@fredriks
fredriks / setup-certbot.sh
Last active December 17, 2017 19:17
Certbot on Amazon Linux
#!/usr/bin/env sh
wget https://dl.eff.org/certbot-auto
chmod +x certbot-auto
unset PYTHON_INSTALL_LAYOUT
pip install virtualenv --upgrade --user
pip install zope.interface --upgrade --user
# Remove old installation
@bethcasey
bethcasey / gist:9934e5652751195f8e06eaf4255b25c8
Created April 29, 2016 13:20
Pardot Responsive Landing Page | 2 Columns | Background Colour Web-Form Styling (P)
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content=%%description%% name="description"><meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>%%title%%</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
@paulkearney
paulkearney / cleanup-codecommit-repos.sh
Created September 25, 2015 18:20
Migrating from GitHub to AWS CodeCommit
while read r; do
echo $r
aws codecommit delete-repository --repository-name $r --region us-east-1
done < ~/dev/utility-scripts/aws/codecommit/repos.txt
@omeinusch
omeinusch / create-mysql.bash
Created August 31, 2013 11:50
Simple bash script to create mysql db, user with generated password
#!/bin/bash
PASS=`pwgen -s 40 1`
mysql -uroot <<MYSQL_SCRIPT
CREATE DATABASE $1;
CREATE USER '$1'@'localhost' IDENTIFIED BY '$PASS';
GRANT ALL PRIVILEGES ON $1.* TO '$1'@'localhost';
FLUSH PRIVILEGES;
MYSQL_SCRIPT
@holms
holms / gist:5005629
Last active July 17, 2024 16:16
midnight commander dark color theme
Edit mc’s ini file (either ~/.mc/ini or ~/.config/mc/ini) and look for the line [Colors]. Then, change the line base_color to this:
[Colors]
base_color=linux:normal=white,black:marked=yellow,black:input=,green:menu=black:menusel=white:menuhot=red,:menuhotsel=black,red:dfocus=white,black:dhotnormal=white,black:dhotfocus=white,black:executable=,black:directory=white,black:link=white,black:device=white,black:special=white,black:core=,black:stalelink=red,black:editnormal=white,black
@martensjostrand
martensjostrand / pom.xml
Last active January 24, 2024 21:40
Empty pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>groupId</groupId>
<artifactId>artifactid</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>projectName</name>