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
sudo dnf remove libreoffice* rhythmbox evolution gnome-calculator gnome-calendar cheese gnome-clocks gnome-contacts gnome-maps gnome-weather | |
sudo dnf update | |
sudo dnf install binutils gcc gcc-c++ patch bison cmake flex python perl-ExtUtils-MakeMaker perl-Thread-Queue vim | |
sudo reboot |
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
Show hidden characters
{ | |
"always_show_minimap_viewport": true, | |
"bold_folder_labels": true, | |
"caret_style": "phase", | |
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme", | |
"detect_intendation": false, | |
"font_face": "Roboto Mono", | |
"font_size": 12, | |
"highlight_line": true, | |
"ignored_packages": |
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/sh | |
printf "Downloading metadata...\n" | |
url=$(curl -s "http://c.brightcove.com/services/mobile/streaming/index/master.m3u8?videoId=4677882746001" | grep http | tail -1) | |
i=0 | |
curl -s "$url" | grep http > TSList.m3u8 | |
cat TSList.m3u8 | while read -r line; do | |
printf -v out "fragment_%05d.ts" $i | |
printf "Downloading fragment %d / 494\r" $i | |
curl -s "$line" -o $out | |
i=$((i+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
<?php | |
function getTerminalCols() | |
{ | |
$cols = 0; | |
if (defined('PHP_WINDOWS_VERSION_BUILD')) { | |
$cmdHandler = popen('more', 'r'); | |
$cmdInfo = fread($cmdHandler, 2096); | |
pclose($cmdHandler); | |
$cmdInfo = explode("\n", $cmdInfo); | |
$cols = trim(substr($cmdInfo[9], -4, 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
<?php | |
define("TIMEINTERVAL", 60); // define the interval in seconds | |
//we have a session, so I call it | |
session_start(); | |
// if the user have not visited a page under an interval of 60 seconds, destroy the session | |
if ( (time() - $_COOKIE['session_time']) > TIMEINTERVAL ) { | |
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
$x = file_get_contents("compress.zlib://php://input"); |
NewerOlder