Skip to content

Instantly share code, notes, and snippets.

View noorus's full-sized avatar
⚜️
One hundred percent

Noora noorus

⚜️
One hundred percent
View GitHub Profile
@noorus
noorus / CreditCard.php
Last active August 29, 2015 13:55
Some quickie dumb credit card decoding stuff
<?php
class CreditCard
{
const Industry_ISO = 0;
const Industry_Airlines = 1;
const Industry_Airlines2 = 2;
const Industry_Travel = 3;
const Industry_Financial = 4;
const Industry_Financial2 = 5;
@noorus
noorus / fixperms.sh
Last active December 11, 2015 15:28
convert users on a linux system to use shared group "staff"
#!/bin/bash
sed -i 's/umask .*/umask 002/g' /etc/skel/.bashrc
for dir in /home/*
do
sed -i 's/umask .*/umask 002/g' ${dir}/.bashrc
usr=${dir##*/}
adduser $usr staff
usermod -g staff $usr
done
@noorus
noorus / .bashrc
Last active October 9, 2015 10:27
bashrc
umask 022
export LC_ALL=en_US.UTF-8
[ -z "$PS1" ] && return
HISTCONTROL=ignoreboth
shopt -s histappend
shopt -s checkwinsize
GIT_PS1_SHOWDIRTYSTATE=1