Skip to content

Instantly share code, notes, and snippets.

View v3rlly's full-sized avatar
🎯
Focusing

v3rlly v3rlly

🎯
Focusing
View GitHub Profile
@dennib
dennib / gulpfile.js
Last active April 8, 2021 19:43
Gulp 4: ExpressJs + BrowserSync + Nodemon + Sass Watching
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
@bladeSk
bladeSk / SQLite-PHP-quickstart.php
Last active July 14, 2024 02:39
SQLite3 PHP Quickstart Tutorial
<?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.
@AndersonFirmino
AndersonFirmino / template.sh
Created July 12, 2016 17:14
Template for ShellScripts
#!/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:
@cvan
cvan / install-slimerjs-linux.bash
Created February 26, 2014 04:41
install slimerjs (and test) on linux 64-bit
#!/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
@dideler
dideler / 0-startup-overview.md
Last active July 17, 2024 08:10
Startup Engineering notes
@spiechu
spiechu / icmp.php
Created May 11, 2012 18:39
Class ICMPPing constructs raw ICMP echo packet, sends it and echoes the response
<?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;