Skip to content

Instantly share code, notes, and snippets.

@Alliline
Alliline / animation.js
Created December 8, 2015 17:30 — forked from fpigerre/animation.js
Minecraftt JavaScript Skin Animation
/**
* Code by djazz as part of his Minecraft Skin Viewer
* http://djazz.mine.nu/apps/MinecraftSkin/
*/
var MSP = (function (global, undefined) {
'use strict';
// shim layer with setTimeout fallback
window.requestAnimFrame = (function () {
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
@Alliline
Alliline / meta-tags.md
Created April 24, 2016 19:16 — forked from kevinSuttle/meta-tags.md
List of Usable HTML Meta and Link Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
@Alliline
Alliline / perfectelementary.bash
Created November 25, 2018 00:41 — forked from ezeeyahoo/perfectelementary.bash
HowTo Install the perfect Elementary-OS
#Download Elementary OS from here:
#https://elementary.io/
#Clean-up System
sudo apt-get purge midori-granite -y
sudo apt-get purge yelp -y
sudo apt-get purge evince -y
sudo apt-get purge gnome-orca -y
sudo apt-get autoremove -y
sudo apt-get autoclean -y
@Alliline
Alliline / ffmpeg_build.sh
Created January 13, 2022 23:40 — forked from iJackUA/ffmpeg_build.sh
Build ffmpeg and all needed codecs from latets git revisions
#!/bin/bash
sudo apt-get update
sudo apt-get -y install autoconf automake build-essential git libass-dev libfaac-dev libgpac-dev libmp3lame-dev libopus-dev libtheora-dev libtool libvorbis-dev libvpx-dev pkg-config texi2html yasm zlib1g-dev
# YASM
wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
tar xf yasm-1.2.0.tar.gz
cd yasm-1.2.0
./configure
@Alliline
Alliline / ffmpeg_build.sh
Created January 13, 2022 23:44 — forked from talkingnews/ffmpeg_build.sh
Build ffmpeg and all needed codecs from latest git revisions
#!/bin/bash
sudo apt-get update -qq && sudo apt-get -y install \
autoconf \
automake \
build-essential \
cmake \
git-core \
libass-dev \
libfreetype6-dev \
@Alliline
Alliline / php-html-css-js-minifier.php
Created April 16, 2022 20:10 — forked from Rodrigo54/php-html-css-js-minifier.php
PHP Function to Minify HTML, CSS and JavaScript
<?php
/**
* -----------------------------------------------------------------------------------------
* Based on `https://github.com/mecha-cms/mecha-cms/blob/master/system/kernel/converter.php`
* -----------------------------------------------------------------------------------------
*/
// HTML Minifier
function minify_html($input) {
## Per https://support.acquia.com/hc/en-us/articles/360042181273-Block-Access-to-Bad-Bots-coming-from-the-Huawei-Cloud
## this should be immediately after the RewriteEngine On line in your .htaccess file
################## Begin User Agent Blocks ########################
#RewriteCond %{HTTP_USER_AGENT} ^(.*)(.*)$
#Block empty user agents, these are never any good.
RewriteCond %{HTTP_USER_AGENT} ^-?$
RewriteRule .* - [R=410,L]
@Alliline
Alliline / nginx-proxy.conf
Created May 7, 2024 04:19 — forked from fhferreira/nginx-proxy.conf
Proxy nginx to use Google Tag Manager
# Google Analytics Bypassing Adblockers
## Client
change www.googletagmanager.com => your.domain.com
```
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://your.domain.com/gtag/js?id=UA-123456789-1"></script>
```
@Alliline
Alliline / gist:f70b0567a6ad2f08af56d7aa1263539a
Created November 19, 2024 21:30 — forked from defulmere/gist:438b3cf94cc725c6a67e40888e1e280a
colored bar graph of system load over time in terminal with atopsar
np=$( nproc ); atopsar -p | grep ":[0-9]\{2\}\s\+[0-9]" | awk '{printf("\n%s %6.2f ",$1, $5); for (i = 0; i<$5; i++) {if (i<'$np'*.7) {printf "\033[32m"} else if (i<'$np') {printf "\033[33m"} else {printf "\033[31m"}; printf("█")}; printf "\033[0m"}'; echo ""