HandBrakeCLI --input 88Min_20_v2.mov --output 88Min_20_v2-handbrake.mp4 --large-file --optimize --encoder x264 --x264-preset medium --x264-profile high --x264-tune zerolatency --encopts level=3.1:vbv-bufsize=17500:vbv-maxrate=17500 --quality 22 --width 960 --height 540 --pixel-aspect 1:1 --decomb
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
image_url = og.get('image') | |
if image_url: | |
import urllib2 | |
from django.core.files import File | |
from django.core.files.temp import NamedTemporaryFile | |
img_temp = NamedTemporaryFile(delete=False) | |
img_temp.write(urllib2.urlopen(image_url).read()) | |
img_temp.flush() | |
import os |
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
echo "<?php include('openvpn.inc'); openvpn_resync_all();?>" | php -q |
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
#!/usr/bin/env python | |
""" | |
Extract metrics from a uWSGI log file | |
This should be saved as /etc/zabbix/pluginx/uwsgi_stats and called from | |
/etc/zabbix/zabbix_agentd.conf.d/uwsgi.conf, which should have contents: | |
UserParameter=uwsgi.stats[*],/etc/zabbix/plugins/uwsgi_stats $1 $2 | |
To gather these metrics in Zabbix, create a new item which calls this plugin and |
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 | |
if(!isset($_GET['a'])) { | |
die('<form action="" method="get"><input type="text" name="a"/><input type="submit"/></form>'); | |
} | |
$url = "https://1fichier.com/?" . urlencode($_GET['a']) . "?auth=1&inline"; | |
stream_context_set_default(array( | |
'http' => array( | |
'method' => 'GET', | |
'header' => 'Authorization: Basic ' . '[BASE64 encoded login credentials. Format: "user:pass" (without quotes)]' |
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
from django.conf import settings | |
from django.contrib.sessions.models import Session | |
from django.db import models | |
class UserSession(models.Model): | |
""" | |
UserSession | |
Session tracking and management inspired by Gavin Ballard: |
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
function show_git_branch() | |
for line in io.popen("git branch 2>nul"):lines() do | |
local m = line:match("%* (.+)$") | |
local b = "\x1b[32;22;49m".."("..m..")".."\x1b[39;22;49m" | |
if m then | |
clink.prompt.value = clink.prompt.value:gsub(">"," "..b.." >") | |
break | |
end | |
end | |
return false |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
while read LINE; do | |
curl -o /dev/null --silent --progress-bar --head --write-out '%{http_code} %{time_starttransfer} %{url_effective}\n' "$LINE" >> urls_result.txt | |
done < urls.txt |
OlderNewer