start new:
tmux
start new with session name:
tmux new -s myname
Press minus + shift + s
and return
to chop/fold long lines!
#!/bin/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
_________ _____ _______________ _____
\_ ___ \\ \\___________ \____ / ____\ ~/.bash/cliref.md
/ \ \/| | | || _/ __ \ __\ copy/paste from whatisdb
\ \___|__ |_|_ || | \ __/|_ | http://pastebin.com/yGmGiDQX
\________ /_____ \_||____|_ /____ /_| yunga.palatino@gmail.com
20160515 \/ 1527 \/ \/ \/
alias CLIRef.txt='curl -s "http://pastebin.com/raw/yGmGiDQX" | less -i'
! Title: Hide LinkedIn Ads | |
! Last modified: 19 Sep 2019 | |
! Expires: 20 days (update frequency) | |
! Homepage: https://gist.github.com/jhult/802e89c64c4b6f27a3a9 | |
! Source: https://gist.githubusercontent.com/jhult/802e89c64c4b6f27a3a9/raw/hide_linkedin_ads.txt | |
! Licence: https://opensource.org/licenses/MIT | |
! Ad Banner | |
linkedin.com##.ad-banner-container |
# use: | |
# .bash_profile - only gets executed for login bash shells | |
# .bashrc - only gets executed for NON-login bash shells for only NON-login shells | |
# .profile - gets executed for ANY login shell | |
# .bash_logout - only gets executed for bash shells after logout | |
# Sets the prompt: | |
#PS1='\h:\w \u\$ ' | |
#PS2='> ' |
Some of it related to embedded analysis, some of it not.
#!/bin/sh | |
IMG=zImage | |
[ -n "$1" ] && IMG="$1" | |
binwalk -y gzip -e "$IMG" | |
mv _"$IMG".extracted/* piggy && rmdir _"$IMG".extracted | |
if [ -f piggy ]; then | |
ls -l piggy | |
[ -f piggy ] && ( strings piggy | grep 'Linux version' ) |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
/* | |
* Copyright (c) 1996, 1998, Oracle and/or its affiliates. All rights reserved. | |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
* | |
* This code is free software; you can redistribute it and/or modify it | |
* under the terms of the GNU General Public License version 2 only, as | |
* published by the Free Software Foundation. Oracle designates this | |
* particular file as subject to the "Classpath" exception as provided | |
* by Oracle in the LICENSE file that accompanied this code. | |
* |