Skip to content

Instantly share code, notes, and snippets.

View AlexCallejas's full-sized avatar

Alex Callejas AlexCallejas

View GitHub Profile
@AlexCallejas
AlexCallejas / starwars.sh
Last active May 25, 2021 21:15
Star Wars Lab - Bash script used to create ASCII trailer -- @dark_axl version
#!/bin/bash
clear
# shameless taken from @g0tmilk kali os-scripts
#### (Cosmetic) Colour output
RED="\033[01;31m" # Issues/Errors
GREEN="\033[01;32m" # Success
YELLOW="\033[01;33m" # Warnings/Information
BLUE="\033[01;34m" # Heading
BOLD="\033[01;01m" # Highlight
@AlexCallejas
AlexCallejas / script.sh
Created April 14, 2021 23:59
simple script
#!/bin/bash
set -x
#
# Script creado por Alex Callejas
# fecha: 14-Apr-2021
# versión: 1.0
#
# VARIABLES
HOME_SCRIPT=/home/user/script
LOG=$HOME_SCRIPT/script.log

Keybase proof

I hereby claim:

  • I am alexcallejas on github.
  • I am dark_axl (https://keybase.io/dark_axl) on keybase.
  • I have a public key ASAhRdaic0wwtnU54lVV20dZQdCEVjSqyWy9uUJwFJh9iAo

To claim this, I am signing this object:

if-shell 'env "$POWERLINE_CONFIG_COMMAND" tmux setup' '' 'run-shell "powerline-config tmux setup"'
# vim: ft=tmux
@AlexCallejas
AlexCallejas / tmux.config
Created October 7, 2019 04:38
tmux.config
# https://gist.github.com/spicycode/1229612
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@AlexCallejas
AlexCallejas / gist:272b9bc394e68a115674fb25c3aa5aec
Last active May 22, 2019 17:41 — forked from msfjarvis/sepolicy.md
How to write sepolicy to fix a denial

Denial in question

avc: denied { read write } for pid=29059 comm="i.tetherservice" name="ipa" dev="tmpfs" ino=11991 scontext=u:r:system_app:s0 tcontext=u:object_r:ipa_dev:s0 tclass=chr_file permissive=0

sepolicy fix

allow system_app ipa_dev:chr_file {read write};
@AlexCallejas
AlexCallejas / git.io
Last active March 28, 2018 04:50
Git.io: GitHub URL Shortener
$ curl -i https://git.io -F "url=https://gist.github.com/darkaxl/d03da9585aabe10e14df29aa912155d8" -F "code=InstallJBossOnCentOS7"
HTTP/1.1 100 Continue
HTTP/1.1 201 Created
Server: Cowboy
Connection: keep-alive
Date: Wed, 28 Mar 2018 03:16:10 GMT
Status: 201 Created
Content-Type: text/html;charset=utf-8
Location: https://git.io/InstallJBossOnCentOS7
@AlexCallejas
AlexCallejas / jboss-as-standalone.sh
Last active March 27, 2018 22:13
JBoss standalone control script
#!/bin/sh
#
# JBoss standalone control script
#
# chkconfig: - 80 20
# description: JBoss AS Standalone
# processname: standalone
# pidfile: /var/run/jboss-as/jboss-as-standalone.pid
# config: /etc/jboss-as/jboss-as.conf
@AlexCallejas
AlexCallejas / InstallJBossonCentOS7.md
Last active March 28, 2018 03:29 — forked from Burning-Chai/InstallJBossonCentOS7.md
How to install JBoss on CentOS7
# yum install java-1.7.0-openjdk java-1.7.0-openjdk-devel
# java -version
java version "1.7.0_171"
OpenJDK Runtime Environment (rhel-2.6.13.0.el7_4-x86_64 u171-b01)
OpenJDK 64-Bit Server VM (build 24.171-b01, mixed mode)

# javac -version
javac 1.7.0_171