Note: I'm currently taking a break from this course to focus on my studies so I can finally graduate
This file contains hidden or 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
const gulp = require('gulp'); | |
const sass = require('gulp-sass'); | |
const browserSync = require('browser-sync'); | |
const nodemon = require('gulp-nodemon'); | |
sass.compiler = require('node-sass'); | |
// Sass compilation | |
gulp.task('sass', function() { | |
return gulp |
This file contains hidden or 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 | |
// This file walks you through the most common features of PHP's SQLite3 API. | |
// The code is runnable in its entirety and results in an `analytics.sqlite` file. | |
// Create a new database, if the file doesn't exist and open it for reading/writing. | |
// The extension of the file is arbitrary. | |
$db = new SQLite3('analytics.sqlite', SQLITE3_OPEN_CREATE | SQLITE3_OPEN_READWRITE); | |
// Errors are emitted as warnings by default, enable proper error handling. |
This file contains hidden or 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 | |
# ------------------------------------------------------------------ | |
# [Author] Title | |
# Description | |
# | |
# This script uses shFlags -- Advanced command-line flag | |
# library for Unix shell scripts. | |
# http://code.google.com/p/shflags/ | |
# | |
# Dependency: |
This file contains hidden or 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 bash | |
curl -k -O http://download.slimerjs.org/v0.9/0.9.0/slimerjs-0.9.0-linux-x86_64.tar.bz2 | |
tar -xjpvf slimerjs-0.9.0-linux-x86_64.tar.bz2 | |
rm slimerjs-0.9.0-linux-x86_64.tar.bz2 | |
mv slimerjs-0.9.0 slimerjs | |
echo "console.log('SlimerJS installed OK'); slimer.exit();" > test.js | |
slimerjs/slimerjs test.js |
This file contains hidden or 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 | |
// See the corresponding blog entries (in Polish): | |
// http://spiechu.pl/2012/05/16/tworzenie-pakietow-icmp-w-php | |
// http://spiechu.pl/2012/05/26/w-miare-bezpieczne-uruchamianie-skryptow-php-poprzez-shell_exec | |
class ICMPPing | |
{ | |
const TYPE_REQUEST = 0x08; | |
const TYPE_RESPONSE = 0x00; |