Skip to content

Instantly share code, notes, and snippets.

🥑

ahelja ahelja

🥑
  • Paris
Block or report user

Report or block ahelja

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ahelja
ahelja / hackalot.txt
Created May 29, 2017
UNIX : A Hacking Tutorial
View hackalot.txt
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ UNIX : A Hacking Tutorial +
+ By: Sir Hackalot +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
----------------------
o Intent of this file:
----------------------
This phile is geared as an UNIX tutorial at first, to let you get more
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>index page</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300i,400,400i,600,700|Playfair+Display:400,400i,700);.label,sub,sup{vertical-align:baseline}hr,img{border:0}body,figure{margin:0}.btn,.text-nowrap{white-space:nowrap}.btn-group>.btn-group,.btn-toolbar .btn,.btn-toolbar .btn-group,.btn-toolbar .input-group,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.dropdown-menu{float:left}.form-control-feedback,a.btn-arrow.disabled,a.btn.disabled,ainput[type=submit].disabled,fieldset[disabled] a.btn,fieldset[disabled] a.btn-arrow,fieldset[disabled] ainput[type=submit]{pointer-events:none}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .na
View selectors.js
var SELECTORS = {
state: [
'inverse',
'toggled',
'switched',
'original',
'initial',
'identified',
'disabled',
'loading',
@ahelja
ahelja / drush-ckeditor
Created Sep 15, 2016
drush dl ckeditor
View drush-ckeditor
- downloads the module.
- enables the module. If you skip this step, the next one won't work.
- downloads the library.
- clears cache on your site.
drush dl ckeditor
drush en -y ckeditor
drush ckeditor-download
drush cc all
@ahelja
ahelja / my.cnf
Created Sep 9, 2016
Custom my.cnf for use with MAMP. Place this file in `/Application/MAMP/conf/` and restart MAMP
View my.cnf
# Example MySQL config file for large systems.
#
# This is for a large system with memory = 512M where the system runs mainly
# MySQL.
#
# MySQL programs look for option files in a set of
# locations which depend on the deployment platform.
# You can copy this option file to one of those
# locations. For information about these locations, see:
# http://dev.mysql.com/doc/mysql/en/option-files.html
@ahelja
ahelja / Welcome to Ubuntu 12.10
Created Sep 9, 2016
Welcome to Ubuntu 12.10
View Welcome to Ubuntu 12.10
-
Welcome to Ubuntu 12.10 (GNU/Linux 3.5.0-51-generic i686)
mysql Ver 14.14 Distrib 5.5.37, for debian-linux-gnu (i686) using readline 6.2
PHP 5.4.6-1ubuntu1.8 (cli) (built: Apr 4 2014 01:34:09)
Server version: Apache/2.2.22 (Ubuntu)
@ahelja
ahelja / Installing Drupal with drush
Created Sep 9, 2016
Installing Drupal with drush
View Installing Drupal with drush
› drush dl drupal --drupal-project-rename="projectname"
• Install site
› cd projectname/sites/all/modules/
› mkdir contrib custom
› drush dl adminimal_theme adminimal_admin_menu module_filter
› drush en -y adminimal_admin_menu module_filter
› drush variable-set admin_theme adminimal
@ahelja
ahelja / untitled.m
Created Sep 9, 2016
Step-by-step Drupal install with drush
View untitled.m
› drush dl drupal --drupal-project-rename="projectname"
• Install site
› cd projectname/sites/all/modules/
› mkdir contrib custom
› drush dl adminimal_theme adminimal_admin_menu module_filter
› drush en -y adminimal_admin_menu module_filter
› drush variable-set admin_theme adminimal
View svn_import_update
sviluppo@dev:~$ cat /usr/local/bin/update_svn_proj.sh
#/bin/bash
VHOSTSDIR="/var/www/vhosts/";
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
@ahelja
ahelja / dbsync.php
Created Aug 4, 2016
Sync Local And Remote Databases For Web Development
View dbsync.php
#!/usr/bin/php
<?php
/**
* This script enables you to copy the structure and content of databases back and
* forth between remote and local databases. Remote databases are accessed through
* SSH tunnels.
*
* This script operates in two modes. The mode is passed in the first parameter
* -- put: Copy a local database to a remote server
* -- get: Copy a remote database to a local server
You can’t perform that action at this time.