Skip to content

Instantly share code, notes, and snippets.

View carcagi's full-sized avatar
🎯
Focusing

Carlos Cárdenas carcagi

🎯
Focusing
View GitHub Profile
@carlodaniele
carlodaniele / kinsta-widget.php
Created May 15, 2017 08:21
This is an example plugin for Kinsta blog readers
<?php
/**
* @package Kinsta_widget
* @version 1.0
*/
/*
Plugin Name: Kinsta Widget
Plugin URI: http://wordpress.org/extend/plugins/#
Description: This is an example plugin
Author: Your Name
@justinbellamy
justinbellamy / cltools.sh
Last active March 6, 2022 03:46 — forked from jellybeansoup/cltools.sh
Install Autoconf and Automake on OS X El Capitan
#!/bin/sh
##
# Install autoconf, automake and libtool smoothly on Mac OS X.
# Newer versions of these libraries are available and may work better on OS X
#
# This script is originally from http://jsdelfino.blogspot.com.au/2012/08/autoconf-and-automake-on-mac-os-x.html
#
export build=~/devtools # or wherever you'd like to build
@ubergoober
ubergoober / rmAndroid
Created September 4, 2015 07:04
OSX - Remove all of Android Studio and Android SDK
#Gleemed from stackoverflow: http://stackoverflow.com/questions/17625622/how-to-completely-uninstall-android-studio
rm -Rf /Applications/Android\ Studio.app
rm -Rf ~/Library/Preferences/AndroidStudio*
rm ~/Library/Preferences/com.google.android.studio.plist
rm -Rf ~/Library/Application\ Support/AndroidStudio*
rm -Rf ~/Library/Logs/AndroidStudio*
rm -Rf ~/Library/Caches/AndroidStudio*
#if you would like to delete all projects:
@gunjanpatel
gunjanpatel / amazon-ec2-ftp.md
Last active October 10, 2023 15:31
amazon ec2 LAMP and FTP installation and setup
@foozmeat
foozmeat / lynis.sh
Last active May 8, 2019 19:56
Script to run lynis and notify you if something needs attention
#!/bin/sh
#set -x
EMAIL=someone@example.com
OLDHOME=${HOME}
cd ~/lynis
. /etc/apache2/envvars
./lynis -c -Q -q --profile /etc/lynis/default.prf
@terion-name
terion-name / MY_Session.php
Last active June 23, 2022 18:17
Codeigniter 2 Redis Sessions. In fact it is just modified system session library, that in case of setting "use_database" to TRUE will use Redis instead of SQL db. Requires *https://github.com/nrk/predis* (can be modified for usage with *https://github.com/nicolasff/phpredis* just by changing multiExec() to multi() and execute() to exec()). Put p…
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class MY_Session {
var $sess_encrypt_cookie = FALSE;
var $sess_use_database = FALSE;
var $sess_table_name = '';
var $sess_expiration = 7200;
var $sess_expire_on_close = FALSE;
var $sess_match_ip = FALSE;
@ameesters
ameesters / quick-check.py
Created October 25, 2012 14:35
A python script that checks multiple websites status.
#!/usr/bin/env python
import os, time, httplib
from termcolor import colored
SITES = [
"www.meesters-id.nl",
"www.carolsingers.nl",
]
while 1: