Skip to content

Instantly share code, notes, and snippets.

View nevergone's full-sized avatar

Kurucz István nevergone

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<gpx version="1.1" creator="Endomondo.com" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd http://www.garmin.com/xmlschemas/GpxExtensions/v3 http://www.garmin.com/xmlschemas/GpxExtensionsv3.xsd http://www.garmin.com/xmlschemas/TrackPointExtension/v1 http://www.garmin.com/xmlschemas/TrackPointExtensionv1.xsd" xmlns="http://www.topografix.com/GPX/1/1" xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v1" xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<metadata>
<author>
<name>Endomondo User</name>
</author>
<link href="http://www.endomondo.com">
<text>Endomondo</text>
</link>
<time>2020-03-03T12:58:40Z</time>
<?xml version="1.0" encoding="UTF-8" ?><gpx version="1.1" creator="GPSLogger 105 - http://gpslogger.mendhak.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.topografix.com/GPX/1/1" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"><metadata><time>2020-03-03T09:01:45.067Z</time></metadata><trk><trkseg><trkpt lat="48.005771" lon="21.7258071"><ele>145.8000030517578</ele><time>2020-03-03T09:01:45.067Z</time><src>network</src></trkpt>
<trkpt lat="48.0056" lon="21.72542"><ele>80.3</ele><time>2020-03-03T09:01:45.000Z</time><geoidheight>40.3</geoidheight><src>gps</src><hdop>1.37</hdop><vdop>0.89</vdop><pdop>1.63</pdop></trkpt>
<trkpt lat="48.00557833333334" lon="21.72541833333333"><ele>79.4</ele><time>2020-03-03T09:01:46.000Z</time><geoidheight>40.3</geoidheight><src>gps</src><sat>6</sat><hdop>1.12</hdop><vdop>0.84</vdop><pdop>1.40</pdop></trkpt>
<trkpt lat="48.005475" lon="21.72546333333333"><ele>89.5</ele><time>2020-03-03T09:01:47.000Z</tim
@nevergone
nevergone / NeverGone-pastell.icls
Created November 28, 2019 14:11
PHPStorm 2019.3 color scheme
<scheme name="NeverGone-pastell" version="142" parent_scheme="Blackboard">
<metaInfo>
<property name="created">2019-11-28T15:10:00</property>
<property name="ide">PhpStorm</property>
<property name="ideVersion">2019.3.0.0</property>
<property name="modified">2019-11-28T15:10:07</property>
<property name="originalScheme">NeverGone-pastell</property>
</metaInfo>
<colors>
<option name="RIGHT_MARGIN_COLOR" value="e0e0e0" />
@nevergone
nevergone / NeverGone-pastell.icls
Created November 28, 2019 14:06
PHPStorm 2019.2 color scheme
<scheme name="NeverGone-pastell" version="142" parent_scheme="Blackboard">
<metaInfo>
<property name="created">2019-11-28T15:03:27</property>
<property name="ide">PhpStorm</property>
<property name="ideVersion">2019.2.5.0.0</property>
<property name="modified">2019-11-28T15:03:42</property>
<property name="originalScheme">NeverGone-pastell</property>
</metaInfo>
<colors>
<option name="RIGHT_MARGIN_COLOR" value="e0e0e0" />
@nevergone
nevergone / vimeo-downloader.js
Last active November 22, 2021 10:23 — forked from mistic100/vimeo-downloader.js
Download video from Vimeo (chopped m4s files)
// 1. Open the browser developper console on the network tab
// 2. Start the video
// 3. In the dev tab, locate the load of the "master.json" file, copy its full URL
// 4. Run: node vimeo-downloader.js "<URL>"
// 5. Combine the m4v and m4a files with mkvmerge
// or use ffmpeg: "ffmpeg -i video.mp4 -i audio.wav -c copy output.mkv"
const fs = require('fs');
const url = require('url');
const https = require('https');
@nevergone
nevergone / bootstrap.inc
Last active April 29, 2018 14:25
D5-SA-CORE-2018-004 includes/bootstrap.inc (SA-CORE-2018-002 fix included)
<?php
/**
* @file
* Functions that need to be loaded on every Drupal request.
*/
/**
* Indicates that the item should never be removed unless explicitly told to
* using cache_clear_all() with a cache ID.
@nevergone
nevergone / D5-SA-CORE-2018-004.patch
Last active April 29, 2018 14:25
D5-SA-CORE-2018-004.patch (SA-CORE-2018-002 fix included)
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index 5b2e5ab..3d93104 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -911,6 +911,7 @@ function _drupal_bootstrap($phase) {
drupal_unset_globals();
// Initialize the configuration
conf_init();
+ _drupal_bootstrap_sanitize_request();
break;
@nevergone
nevergone / D5-SA-CORE-2018-002.patch
Last active April 29, 2018 14:22
SA-CORE-2018-002 - Drupal 5 patch
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index 5b2e5ab..b2e00ab 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -911,6 +911,7 @@ function _drupal_bootstrap($phase) {
drupal_unset_globals();
// Initialize the configuration
conf_init();
+ _drupal_bootstrap_sanitize_request();
break;
/**
* Form callback
*/
function ajax_disable_test_form($form, &$form_state) {
$form['select'] = array(
'#type' => 'select',
'#required' => FALSE,
'#title' => t('Change me!'),
'#empty_option' => t('- Select -'),
'#options' => drupal_map_assoc(range(1, 3)),
make_contrib:
projects[$project_name$][subdir] = "$directory$"
projects[$project_name$][version] = "$version$"
;projects[$project_name$][download][revision] = "$revision$"
;projects[$project_name$][download][branch] = "$branch$"
;projects[$project_name$][patch][] = "$patch_path$"
make_custom:
projects[$project_name$][type] = "$type$"