Skip to content

Instantly share code, notes, and snippets.

View lasselehtinen's full-sized avatar

Lasse Lehtinen lasselehtinen

View GitHub Profile
@lasselehtinen
lasselehtinen / query.sql
Last active January 15, 2023 17:28
OHFF filter query for QGIS
"WDPA_PID" IN ('7500', '40929', '7497', '7491', '7499', '7495', '40926', '40927', '175210', '7496', '175212', '654', '555524541', '555524689', '555723468', '902780', '555524507', '655', '67920', '555525435', '555524872', '555538810', '658', '555539171', '555524667', '902783', '7476', '902785', '555524452', '7501', '555723687', '7492', '902791', '2561', '902792', '555524265', '555550497', '101986', '101983', '149666', '345268', '555525326', '149670', '181126', '555524244', '7482', '555587581', '1517', '101999', '150188', '149677', '101985', '555587509', '555524485', '101998', '150372', '149682', '101971', '1522', '101969', '101996', '101974', '149687', '101989', '101978', '396821', '101977', '101995', '101968', '101982', '555633225', '101973', '127828', '101987', '101994', '101990', '101976', '101988', '151165', '149503', '149504', '555633044', '149506', '149507', '555588290', '149509', '149510', '149511', '149512', '555588350', '149514', '149515', '149516', '149517', '149529', '149519', '149520', '555524702'
This file has been truncated, but you can view the full file.
-> NET_SSH2_MSG_CHANNEL_DATA (since last: 0.0001, network: 0s)
00000000 00:00:00:00:00:00:10:00:00:00:0f:fc:06:00:00:00 ................
00000010 01:00:00:00:04:00:00:00:00:00:00:00:00:06:30:53 ..............0S
00000020 ee:00:00:0f:e3:00:00:00:00:00:00:00:00:00:00:00 ................
00000030 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 ................
00000040 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 ................
00000050 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 ................
00000060 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 ................
00000070 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 ................
00000080 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 ................
#!/bin/bash
# Path for the Elvis 6 shared storage
ELVIS6_SHARED=/mnt/elvis-data/assetFilestore
ELVIS6_RENDITIONS=/mnt/elvis-data/renditionFilestore
ELVIS4_DUMP=/mnt/elvis-data/elvis4-dump
# Unzip all CSV files
find $1/priority-asset/ -type f -iname '*csv.gz' -exec gunzip {} +
find $1/asset/ -type f -iname '*csv.gz' -exec gunzip {} +
@lasselehtinen
lasselehtinen / beanstalk-purge.sh
Last active December 5, 2016 11:42
General Linux command line tips with some Laravel spesific
#!/usr/bin/expect -f
# Filename: beanstalk-purge
# Example: beanstalk-purge 127.0.0.1 11300 default 35000
set timeout 1
spawn telnet [lindex $argv 0] [lindex $argv 1]
sleep 1
send "use [lindex $argv 2]\n"
expect "USING"
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Goutte\Client;
class TestGoutte extends Command
{
/**
@lasselehtinen
lasselehtinen / php-versions.md
Last active August 29, 2015 14:22
Laravel 5.1 and require php>=5.5.9

Background

Laravel 5.1 will be the first LTS version of Laravel and it was just announced that the minimal requirement for PHP would be version >=5.5.9. So as I was checking my own environments, I thought it might be fun to list the default PHP versions for most popular Linux distributions. Please note that these the PHP versions installed out of the box without configuring external repositories. Some distros like the Amazon AMI do actually provide the packages for PHP 5.6 but you have to ask those specifically.

Results

Distro PHP version
Ubuntu 14.04.2 LTS 5.5.9
Red Hat Enterprise Linux Server release 7.1 (Maipo) 5.4.16