Skip to content

Instantly share code, notes, and snippets.

@calebjonasson
calebjonasson / .htaccess
Created December 16, 2012 02:35
Rewrites everything after the host to a GET variable in the index.php file.
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?page=$1 [L,QSA]
@calebjonasson
calebjonasson / s1.txt
Last active August 29, 2015 14:19
A short line of text for testing purposes.
This is a short line of text used for testing purposes.
@calebjonasson
calebjonasson / gist:843fdaaba71d33ab1766
Created April 22, 2015 18:32
long text multi paragraph test
Cats, also called domestic cats or house cats (Felis catus), are carnivorous (meat-eating) mammals, of the family Felidae.
Cats have been domesticated (tame) for nearly 10,000 years.[1] They are currently the most popular pets in the world.[2] Their origin is probably the African Wildcat Felis silvestris lybica.
Cats were probably first kept because they ate mice, and this is still their main 'job' in farms throughout the world. Later they were kept because they are friendly and good companions.
A young cat is called a kitten. Cats are sometimes called kitty or pussycat. An entire female cat is a queen, and an entire male cat is a tom.[3]
Domestic cats are found in shorthair and longhair breeds. Cats which are not specific breeds can be referred to as 'domestic shorthair' (DSH) or 'domestic longhair' (DLH).
@calebjonasson
calebjonasson / l.txt
Last active August 29, 2015 14:19
long text birds
Birds are a class of vertebrates, the Aves.[1]
They are warm-blooded and lay eggs. Their bodies are covered with feathers and they have wings. Feathers have three functions: flight, temperature regulation and display. Most birds have hollow main bones with air sacs in them.[2] This makes them lighter and makes flight easier.
Birds are bipedal: they have two legs which are often covered with scales (small, flat plates which over-lap in the same way as feathers). They have a hard beak with no teeth.
Because birds keep a high body temperature, they use lots of energy. So, they need to eat a lot of food compared with their weight.
More than 9000 different species of birds are known.[3]
@calebjonasson
calebjonasson / debian_amd64_promtail_install.sh
Last active May 21, 2023 18:30 — forked from candoom/promtail_on_proxmox.txt
Howto install Promtail on Proxmox
#!/usr/bin/bash
# Promtail on proxmox.
# [Fork from candoom](https://gist.github.com/candoom/c540300bcde25c3e0d796b085f0417f4)
echo 'downloading latest promtail-linux-amd64 from github.'
wget https://github.com/grafana/loki/releases/latest/download/promtail-linux-amd64.zip
if ! command -v unzip promtail-linux-amd64.zip -d /usr/local/bin/ &> /dev/null;
then