Skip to content

Instantly share code, notes, and snippets.

@kacinskas
kacinskas / gist:2027476
Created March 13, 2012 07:45
CSS : Image Replacement
.ir {
border:0;
font: 0/0 a;
text-shadow: none;
color: transparent;
background-color: transparent;
@kacinskas
kacinskas / gist:2027998
Created March 13, 2012 10:18
LINUX : Server Run SmartSecurity JavaApp
nohup sh tools/runme.sh > out.txt 2>&1 &
@kacinskas
kacinskas / gist:2028003
Last active October 1, 2015 17:07
LINUX : Server View Processes with ports
//filter by port
netstat -anltp | grep "LISTEN" 8080
//with process name
netstat -tulpn
@kacinskas
kacinskas / gitflow
Created June 21, 2012 08:27
gitflow flow
<!--writen in markdown syntax-->
#'gitflow' flow#
##Links##
* [HOME](https://github.com/nvie/gitflow)
* [Command-Line-Arguments](https://github.com/nvie/gitflow/wiki/Command-Line-Arguments)
* [A successful Git branching model](http://nvie.com/posts/a-successful-git-branching-model/)
##Init new or convert existing##
@kacinskas
kacinskas / gist:3664141
Created September 7, 2012 07:40
LINUX : Add path to the program
export PATH=$PATH:/path/to/my/program
@kacinskas
kacinskas / gist:3689718
Created September 10, 2012 08:42
LINUX: Server add no password then sudoing for user
/etc/sudoers file at the bottom:
myusername ALL=(ALL) NOPASSWD: ALL
@kacinskas
kacinskas / gist:3775701
Created September 24, 2012 12:26
LINUX: get PID
#!/bin/sh
SERVICE='EldesDaemon'
FILE='/usr/local/sbin/eldes/EldesDaemon.pid'
if ps ax | grep -v grep | grep $SERVICE > /dev/null
then
#PIDID=$(ps ax | grep -v grep | grep $SERVICE | awk '{print $1}')
#echo "$SERVICE service running, everything is fine"
#echo "pid = $PIDID"
#echo $PIDID > $FILE
if [ -f $FILE ];
@kacinskas
kacinskas / gist:4123803
Last active October 13, 2015 02:17
LINUX: port forward with socat
sudo socat TCP-LISTEN:8088,fork TCP:127.0.0.1:80
@kacinskas
kacinskas / gist:4231401
Created December 7, 2012 07:06
LINUX: copy ssh key to remote host
ssh-copy-id -i ~/.ssh/id_rsa.pub remote-host
@kacinskas
kacinskas / gist:4249069
Created December 10, 2012 07:38
LINUX : permanently add keys to ssh agent with config
Create file 'config' in '~/.ssh':
IdentityFile ~/.ssh/identity
IdentityFile ~/.ssh/id_rsa
IdentityFile ~/.ssh/gitid