Skip to content

Instantly share code, notes, and snippets.

View nidheeshdas's full-sized avatar

Nidheeshdas Thavorath nidheeshdas

View GitHub Profile
@sh0umik
sh0umik / .gitlab-ci.yml
Last active April 20, 2019 20:14
Gitlab CI for Golang and Docker in Docker
image: restra/golang-docker-gitlabci
variables:
DOCKER_REPO: registry.gitlab.com
MAIN_IMAGE_NAME: sh0umik/golang-gitlab-ci
services:
- docker:dind
stages:
@artzub
artzub / make.sh
Last active November 30, 2022 11:41
Install JetBrains Hub + YouTrack + UpSource + Nginx
#!/bin/bash
apt-get install mc htop git unzip wget curl -y
echo
echo "====================================================="
echo " WELCOME"
echo "====================================================="
echo
echo "Hub"
@lpirola
lpirola / nginx-subdirectory-laravel
Last active August 29, 2015 14:05
A simple approach to configure a server to support laravel in subdirectory, at specific port and redirect the results to subdirectory itself
/*
* code copy+paste from http://forumsarchive.laravel.io/viewtopic.php?id=16598
*
*/
# Beginning of my server {...} block skipped
# Serve static files directly with max expire
location ~* ^/app1/.*\.(xml|ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|css|rss|atom|js|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf|txt)$ {
root /var/www/apps.domain.com/Laravel_App1/public;
rewrite ^/app1/?(.*)$ /$1 break;
@anildigital
anildigital / gist:862675ec1b7bccabc311
Created July 26, 2014 18:27
Remove dangling docker images
docker rmi $(docker images -q -f dangling=true)
@JoeyButler
JoeyButler / chat.html
Created October 24, 2011 00:14
Simple Chat app
<!DOCTYPE html>
<html>
<head>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js'></script>
<script>
$(document).ready(function(){
function debug(str){ $("#debug").append("<p>"+str+"</p>"); };
if(typeof WebSocket === 'undefined') {
alert("Your browser does not support websockets.")
}
@afeld
afeld / gist:1254889
Created September 30, 2011 20:28
YouTube video ID regex
# Parses YouTube URLs directly or from iframe code. Handles:
# * Address bar on YouTube url (ex: http://www.youtube.com/watch?v=ZFqlHhCNBOI)
# * Direct http://youtu.be/ url (ex: http://youtu.be/ZFqlHhCNBOI)
# * Full iframe embed code (ex: <iframe src="http://www.youtube.com/embed/ZFqlHhCNBOI">)
# * Old <object> tag embed code (ex: <object><param name="movie" value="http://www.youtube.com/v/ZFqlHhCNBOI">...)
/(youtu\.be\/|youtube\.com\/(watch\?(.*&)?v=|(embed|v)\/))([^\?&"'>]+)/
$5 #=> the video ID
# test it on Rubular: http://rubular.com/r/eaJeSMkJvo