This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = '--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Mapping magento GTLD ; Emarsys country | |
$countries = array ( | |
'AF' => 'Afghanistan', | |
'AL' => 'Albania', | |
'DZ' => 'Algeria', | |
'AD' => 'Andorra', | |
'AO' => 'Angola', | |
'AG' => 'Antigua and Barbuda', | |
'AI' => 'Argentina', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2004 Sam Hocevar <[email protected]> | |
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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>"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@nas:/# df -h | |
Filesystem Size Used Avail Use% Mounted on | |
/dev/sdc2 1.7G 1.6G 68M 96% / |
NewerOlder