Skip to content

Instantly share code, notes, and snippets.

View gormus's full-sized avatar
💭
Never be cruel, never be cowardly.

Osman Gormus gormus

💭
Never be cruel, never be cowardly.
View GitHub Profile
@gormus
gormus / index.html
Created April 14, 2017 21:39
Background Video Player // source https://jsbin.com/towufeb
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Background Video Player</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<!--[if gte IE 9]>
<style type="text/css">
.gradient {
@gormus
gormus / index.html
Created April 15, 2017 01:08
YouTube Video as a DIV Background // source https://jsbin.com/kaleraw
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>YouTube Video as a DIV Background</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<style id="jsbin-css">
body{
border:0 none;
@gormus
gormus / index.html
Created April 15, 2017 02:26
YouTube Video as a DIV Background // source https://jsbin.com/kaleraw
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>YouTube Video as a DIV Background</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<style id="jsbin-css">
html {
overflow-y: scroll;
@gormus
gormus / sphp.sh
Created April 27, 2017 05:53 — forked from w00fz/sphp.sh
PHP switcher
#!/bin/bash
# Check if command was ran as root.
if [[ $(id -u) -eq 0 ]]; then
echo "The command \"sphp\" should not be executed as root or via sudo directly."
echo "When a service requires root access, you will be prompted for a password as needed."
exit 1
fi
# Usage
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<style id="jsbin-css">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<link href="http://cms-prod.clackamas.edu/ResourcePackages/Bootstrap/assets/dist/css/main.min.css" rel="stylesheet" type="text/css" />
<link href="http://cms-prod.clackamas.edu/ResourcePackages/Bootstrap/assets/dist/css/jquery.mb.YTPlayer/jquery.mb.YTPlayer.min.css" rel="stylesheet" type="text/css" />
<link href="http://cms-prod.clackamas.edu/ResourcePackages/Bootstrap/assets/dist/css/theme.min.css" rel="stylesheet" type="text/css" />
@gormus
gormus / index.html
Created May 18, 2017 01:07
CCC - Quicklinks // source https://jsbin.com/zubixep
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>CCC - Quicklinks</title>
<link href="http://cms-prod.clackamas.edu/ResourcePackages/Bootstrap/assets/dist/css/main.min.css" rel="stylesheet" type="text/css" />
<link href="http://cms-prod.clackamas.edu/ResourcePackages/Bootstrap/assets/dist/css/jquery.mb.YTPlayer/jquery.mb.YTPlayer.min.css" rel="stylesheet" type="text/css" />
<link href="http://cms-prod.clackamas.edu/ResourcePackages/Bootstrap/assets/dist/css/theme.min.css" rel="stylesheet" type="text/css" />
<?php
/**
* Implements of hook_drush_command().
*/
function migration_filepath_drush_command() {
$items = array();
$items['migration_filepath'] = array(
'description' => "Move files to subdirectories",
'callback' => 'drush_migration_filepath',
@gormus
gormus / simple_args_parsing.sh
Created October 21, 2017 04:46 — forked from jehiah/simple_args_parsing.sh
a simple way to parse shell script arguments
#!/bin/sh
#
# a simple way to parse shell script arguments
#
# please edit and use to your hearts content
#
ENVIRONMENT="dev"
@gormus
gormus / changelog.rb
Created November 16, 2017 05:49 — forked from ttscoff/changelog.rb
Generate release notes from git commit messages
#!/usr/bin/ruby
# A script to automate changelog generation from Git commit messages
#
# For use with a git-flow workflow, it will take changes from the last tagged release
# where commit messages contain NEW, FIXED, and IMPROVED keywords and sort and fromat
# them into a Markdown release note list.
#
# The script takes version information from the macOS command agvtool and bases
# the product name on the first matching Xcode Info.plist found