Skip to content

Instantly share code, notes, and snippets.

View imme-emosol's full-sized avatar
😱
sto der skjælvende av angst – og følte et stort uendelig skrik gjennom naturen

immeëmosol imme-emosol

😱
sto der skjælvende av angst – og følte et stort uendelig skrik gjennom naturen
View GitHub Profile
<link rel="stylesheet" href="http://static.ak.fbcdn.net/rsrc.php/zD5ZK/hash/4146lpfk.css" type="text/css" />
<script type="text/javascript">
var fbURL = PASTE_FACEBOOK_URL_HERE;
function insertLikeButton() {
var container = document.getElementById('flbCont');
var w = container.style.width;
var h = container.style.height;
fbFrame = document.createElement("IFRAME");
fbFrame.setAttribute("src", fbURL);
fbFrame.setAttribute("scrolling", "no");
@imme-emosol
imme-emosol / .htaccess
Last active February 15, 2023 14:31
apache's mod_rewrite to index.php if 404 unfound/not-found
<IfModule rewrite_module>
#OR<IfModule mod_rewrite.c>
#OR<IfModule mod_rewrite.so>
# according to apache-documentation, followsymlinks is needed for mod_rewrite
Options +FollowSymLinks
# Enable the RewriteEngine
RewriteEngine On
# if needed add(/uncomment) the following:
#RewriteBase /path/to/file/to/be/found/
# check if the request is not an existing file
@mbernson
mbernson / gist:1324320
Created October 29, 2011 10:30
Gamehub notes
PHP OOP
Team
- Mathijs
- Stefan
- Farid
- Ertugrul
- Bahtiyar
- Danny
- Fons
@paulmillr
paulmillr / less.less
Created March 9, 2012 08:26
Sass vs Stylus vs LESS
.border-radius (@radius) {
-webkit-border-radius: @radius;
-o-border-radius: @radius;
-moz-border-radius: @radius;
-ms-border-radius: @radius;
border-radius: @radius;
}
.user-list {
// need to use special `.` syntax
@simonda86
simonda86 / gist:6305487
Created August 22, 2013 10:12
MySQL Backup script for all databases
#!/bin/bash
user=""
password=""
host=""
backup_path="/path/to/your/home/_backup/mysql"
date=$(date +"%d-%b-%Y")
# Get list of databases
@chronossc
chronossc / gist:7439737
Created November 12, 2013 22:13
meld dark theme, add it to ~/.gtkrc-2.0
style "meld-color-scheme-user"
{
# inserted line(s), also edge color block for added file in dir diff
color["insert-bg"] = "#006000"
color["insert-outline"] = shade(1.5, @insert-bg)
# In dir diff, an added file's name
color["insert-text"] = "white"
# Color block on edge for missing file in dir diff
color["delete-bg"] = "#800000"
@XVilka
XVilka / TrueColour.md
Last active June 10, 2024 17:21
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!

@kimus
kimus / ufw.md
Created March 2, 2014 22:46
NAT and FORWARD with Ubuntu’s ufw firewall

UFW

I use Ubuntu’s Uncomplicated firewall because it is available on Ubuntu and it's very simple.

Install UFW

if ufw is not installed by default be sure to install it first.

@JamesMGreene
JamesMGreene / gitflow-breakdown.md
Last active June 11, 2024 14:17
`git flow` vs. `git`: A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@Arty2
Arty2 / tabs_to_bottom.css
Last active November 5, 2023 19:58
Firefox CSS to move tabs and adress bar to bottom of window. Use with userChrome.css (works with Firefox 71+)
This script has moved to https://github.com/Arty2/userstyles