Skip to content

Instantly share code, notes, and snippets.

View dr-dimitru's full-sized avatar
👨‍💻
get 💩 done

dr.dimitru dr-dimitru

👨‍💻
get 💩 done
View GitHub Profile
@dr-dimitru
dr-dimitru / index.html
Last active April 18, 2016 01:53
Blinking cursor | Safari, FF, Opera, Chrome - 100% support | Example here: http://ostr.io
<html>
<head>
<style>
span.cursor {
-webkit-animation: blink 2s steps(1) infinite;
-moz-animation: blink 2s steps(1) infinite;
-ms-animation: blink 2s steps(1) infinite;
-o-animation: blink 2s steps(1) infinite;
animation: blink 2s steps(1) infinite;
}
@dr-dimitru
dr-dimitru / Social RESTful URLs snippet.md
Last active January 28, 2023 03:57
Social links, +1s and shares using only HTML (no JS)
@dr-dimitru
dr-dimitru / css-browser-specific.md
Last active December 26, 2015 15:19
CSS browser specific targets selector, rules, statements and pseudo-classes

Opera:

[Docs for > Opera 9.5 ][1]

doesnotexist:-o-prefocus, .example {
    /*The following will apply rules to 'example' class in Opera only.*/
}

Firefox:

@dr-dimitru
dr-dimitru / simplest-nodejs-nginx-config.conf
Created October 28, 2013 00:49
Simplest way for Nginx as Node.js reverse proxy [CONFIG]
server {
listen 80;
server_name domain.com;
location / {
proxy_pass http://mystream;
proxy_set_header Host $http_host;
}
}
@dr-dimitru
dr-dimitru / .htaccess
Last active April 2, 2018 22:05
.htaccess file for Laravel 4 and Laravel 3 | For root/ folder
# ----------------------------------------------------------------------
# ROOT/ folder .htaccess
# ----------------------------------------------------------------------
# Laravel Note:
# Note: Laravel is designed to protect your application code,
# and local storage by placing only files that are necessarily
# public in the public folder. It is recommended that you either
# set the public folder as your site's documentRoot (also known as a web root)
# or to place the contents of public into your site's root directory
# and place all of Laravel's other files outside the web root.
@dr-dimitru
dr-dimitru / .htaccess
Created October 30, 2013 16:34
.htaccess file for Laravel 4 and Laravel 3 | For /public folder
# ----------------------------------------------------------------------
# /PUBLIC folder .htaccess
# ----------------------------------------------------------------------
# This .htaccess file is recommended
# to be placed at root/public folder
# of your Laravel powered application
# ----------------------------------------------------------------------
# This file works with Laravel 3 and 4
# ----------------------------------------------------------------------
# Turning on the rewrite engine is necessary for the following rules and
@dr-dimitru
dr-dimitru / createRamDisk.sh
Created November 26, 2013 22:43
Simple Terminal command to mount RAM Disk on Mac OS X
#!/bin/sh
diskutil erasevolume HFS+ 'RAM Disk' `hdiutil attach -nomount ram://8388608`
@dr-dimitru
dr-dimitru / mac_osx_apache_commands.sh
Created November 29, 2013 04:36
Mac OS X Apache Terminal Commands
#start Apache
sudo apachectl start
#restart Apache
sudo apachectl restart
#stop Apache
sudo apachectl stop
@dr-dimitru
dr-dimitru / mount_ram_disk.sh
Created December 1, 2013 03:39
Create RAM Disk (Mac OS X) via Terminal
diskutil erasevolume HFS+ "diskname" `hdiutil attach -nomount ram://2048`
#The line above mounts disk with name "diskname" and with size of 2048 blocks (~1 MB)
#More info: http://osxdaily.com/2007/03/23/create-a-ram-disk-in-mac-os-x/
#Convert blocks to megabytes and vise versa - http://www.unitconversion.org/data-storage/blocks-to-megabytes-conversion.html
#Note: Disk will be unmounted and all data will be lost on: empty battery, system reboot.
#How to save data on RAM disk on reboot, sleep or empty battery: http://puregin.org/setting-up-a-persistent-ramdisk-on-MacOS
@dr-dimitru
dr-dimitru / purge_ram.sh
Created December 2, 2013 06:15
Force memory (RAM) cache to be emptied
sudo purge