Skip to content

Instantly share code, notes, and snippets.

View incidunt's full-sized avatar

incidunt incidunt

View GitHub Profile
@incidunt
incidunt / 3
Last active August 29, 2015 14:06
what is this
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
#Python 2
python -m SimpleHTTPServer 8080
#Python 3
python3 -m http.server 8113
<?php phpinfo(); ?>
@incidunt
incidunt / gist:237f9e083d3e9bdfaf17
Created September 26, 2014 06:45
To get a list of packages installed locally do this in your terminal:
To get a list of packages installed locally do this in your terminal:
dpkg --get-selections | grep -v deinstall
@incidunt
incidunt / snowjob.sh
Last active August 29, 2015 14:06 — forked from sontek/snowjob.sh
#!/bin/bash
LINES=$(tput lines)
COLUMNS=$(tput cols)
declare -A snowflakes
declare -A lastflakes
clear
@incidunt
incidunt / clients.md
Last active August 29, 2015 14:06 — forked from defunkt/clients.md

Gist Clients

Want to create a Gist from your editor, the command line, or the Services menu? Here's how.

Editor Support

https://gist.github.com/257ffc5dd5cf06a6a105 clients.md
https://gist.github.com/1a4d8894b0f81aa3cee4 snowjob.sh
https://gist.github.com/237f9e083d3e9bdfaf17 To get a list of packages installed locally do this in your terminal:
https://gist.github.com/16f6444a45fc3b333002 phpinfo page
https://gist.github.com/d339a3e88d4b7cd7e704 lnmp1.1-full.tar.gz (secret)
https://gist.github.com/c454758242c2fc6900e2 gistfile1.py
https://gist.github.com/33533ff38a26bf51186c what is this
@incidunt
incidunt / -
Created September 26, 2014 07:04
Instead of creating a new gist, you can update an existing one by passing its ID
or URL with "-u". For this to work, you must be logged in, and have created the
original gist with the same GitHub account
@incidunt
incidunt / compelety remove php
Last active August 29, 2015 14:06
compelety remove php
sudo aptitude purge `dpkg -l | grep php| awk '{print $2}' |tr "\n" " "`
## Configure eth0
#
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
TYPE=Ethernet
BOOTPROTO=static