Skip to content

Instantly share code, notes, and snippets.

/* hide top bar text */
/* yt-live-chat-header-renderer { display: none; } yt-live-chat-ticker-renderer { padding-top: 12px; } */
/* hide send message bit */
#panel-pages { display: none;}
/* hide top menu triangel */
yt-icon#label-icon { display: none;}
/* Hide topbar three dots */
yt-icon-button#overflow {display: none;}
/* hide youtube viewer message */
yt-live-chat-viewer-engagement-message-renderer { display: none; }
require 'zlib'
require 'yaml'
require "uri"
require "open-uri"
# HTTPS doesn't work
componentsDataGz = open("http://packages.elementary.io/appcenter/dists/xenial/main/dep11/Components-amd64.yml.gz")
componentsData = Zlib::GzipReader.new( componentsDataGz ).read
template = '---
<?php
// Mapping magento GTLD ; Emarsys country
$countries = array (
'AF' => 'Afghanistan',
'AL' => 'Albania',
'DZ' => 'Algeria',
'AD' => 'Andorra',
'AO' => 'Angola',
'AG' => 'Antigua and Barbuda',
'AI' => 'Argentina',
--
-- schijt initialisation, this script is called via autoload mechanism when the
-- TeamSpeak 3 client starts.
--
require("ts3init") -- Required for ts3RegisterModule
require("ts3defs")
require("ts3errors")
local s_moduleMenuItemID = 1
#!/bin/bash
# Call like: startServer.sh jarfile minmem maxmem serverdir
# EG: startServer.sh /path/to/file.jar 1024 4096 /path/to/multicraft/server1234
# mulicraft conf: startServer.sh {JAR} {START_MEMORY} {MAX_MEMORY} {SERVER_DIR}
START_MEMORY=$2;
MAX_MEMORY=$3;
JAR=$1;
SERVER_DIR=$4;
@gamerlv
gamerlv / gist:4eb901e375f49219477b
Created January 3, 2015 21:07
Little drop in example, Out of the top of my head but should work
//Any element with a class of voteBtn will trigger this, it can ba a button, a <a>, a <div> you name it
//As long as it has the data attribute
$('.voteBtn').click(function(e){
var $that = $(this);
$.post('/url/where/data/is/sendTo.php', {category_id: $that.data('category-id')}, function(data){
if (data.result){ //data needs to be valid json: {result: true}
$that.text("Voted!").attr('disabled', 'disabled');
} else {
@gamerlv
gamerlv / gist:a42ec958580f8a7e6913
Last active August 29, 2015 14:05
Generated using ```xgettext --from-code=utf-8 -k__ -kline -o testing.pot $(find . -name "*.php")```
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#: application/core/MY_Lang.php:55 system/core/Lang.php:143
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
<?php
/*
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
<p>Test bestand voor aeriscraft php test</p>
<br />
<?php
session_start();
echo "<pre>";
var_dump(session_save_path(), is_writable(session_save_path()), $_SESSION);
echo "</pre>";
echo "<form><input type='text' name='testfield'/><input type='submit'/></form>";
root@nas:/# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sdc2 1.7G 1.6G 68M 96% /