Skip to content

Instantly share code, notes, and snippets.

View Telematica's full-sized avatar

Héctor Cerón Figueroa Telematica

View GitHub Profile
@Telematica
Telematica / PstormTricks.md
Created December 7, 2017 17:54
PHP Storm Tricks
@Telematica
Telematica / xbox-ubuntu.sh
Created October 15, 2017 21:51
XBOX 360 Controller on Ubuntu
#Install: Open a terminal window and run:
sudo apt-get install xboxdrv -y
#Usage: Open a terminal window and run:
sudo rmmod xpad
sudo xboxdrv --mouse
#https://github.com/xboxdrv/xboxdrv
#http://www.omgubuntu.co.uk/2013/07/dealing-with-xbox-controllers-in-ubuntu
#Source: http://xubuntugeek.blogspot.mx/2012/07/how-to-use-xbox-360-controller-as-mouse.html
@Telematica
Telematica / my.md
Last active June 10, 2018 22:51
MySQL Server SQL Modes

MySQL Server SQL Modes

Reference Topic:

Add Mode Settings Via Command line

SET sql_mode = "ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION";

Add Mode Settings Via Config file

Ubuntu 16.04: /etc/mysql/mysql.conf.d/mysqld.cnf

@Telematica
Telematica / AirCrack.sh
Created March 23, 2017 04:58
AirCrack Commands
#1st Step
airmon-ng stop wlan0
airmon-ng start wlan0
airodump-ng mon0
#2nd Step
sudo airodump-ng -c 6 --bssid B4:75:0E:1A:69:8F -w captura mon0
sudo aireplay-ng -1 0 -e Netcommerce -a B4:75:0E:1A:69:8F -h 11:22:33:44:55:66 mon0
sudo aireplay-ng -3 -b B4:75:0E:1A:69:8F -h 11:22:33:44:55:66 mon0
aircrack-ng -z *.cap
@Telematica
Telematica / VagrantSetup.MD
Last active June 10, 2018 22:52
Vagrant Setup Sample

Test

Vagrantfile

@Telematica
Telematica / diff.py
Created February 20, 2017 02:51
Git external Diff Tool (Python script)
#!/usr/bin/python
import sys
import os
os.system('meld "%s" "%s"' % (sys.argv[2], sys.argv[5]))
#git config -l
#diff.external=/path/to/script/diff.py
@Telematica
Telematica / doctrineCmd.md
Last active June 10, 2018 22:54
Doctrine Console Commands

Doctrine Console Commands

Convert Mapping

php vendor/bin/doctrine orm:convert-mapping --force --from-database --from-database xml test/Mapping
php vendor/bin/doctrine orm:convert-mapping --force --from-database --from-database xml module/Application/src/Entity/

Generate Annotation Mapping directly from DB (Inverse Engineering)

@Telematica
Telematica / config
Last active June 28, 2017 01:17
SSH Tricks and Handful commands
##http://www.howtogeek.com/howto/linux/keep-your-linux-ssh-session-from-disconnecting/
#Global Configuration
#Add the following line to the /etc/ssh/ssh_config file:
ServerAliveInterval 60
#The number is the amount of seconds before the server with send the no-op code.
#Current User Configuration
#Add the following lines to the ~/.ssh/config file (create if it doesn’t exist)
Host *
@Telematica
Telematica / SublimeTextTricks.txt
Created September 21, 2016 21:09
Sublime Text Handy Tricks
#REGEX REPLACE
find : <li>*.+?(echo)+.*<\/li>
replace : <?php if($userac->hasPermission('access','')) { ?>\n\t\t$0\n\t\t\t<?php } ?>
#http://stackoverflow.com/questions/20742076/regex-replace-uppercase-with-lowercase-letters
#Lowercase Replacement
find : \bAS\b
replace : \L$0
#Uppercase Replacement
@Telematica
Telematica / git.md
Last active January 2, 2024 17:47
Git Recipes