$mod refers to the modifier key (alt by default)
startx i3start i3 from command line$mod+<Enter>open a terminal$mod+dopen dmenu (text based program launcher)$mod+rresize mode ( or to leave resize mode)$mod+shift+eexit i3
| #!/usr/bin/env bash | |
| # found on http://kamisama.me/2012/07/02/faster-php-lint/ | |
| find my/folder/ -name "*.php" -print0 | xargs -0 -n1 -P8 php -l |
| #!/bin/bash | |
| AWS_DEFAULT_REGION="ap-northeast-1" | |
| AWS_ACCESS_KEY_ID="YOUR ACCESS KEY HERE" | |
| AWS_SECRET_ACCESS_KEY="YOUR SECRET ACCESS KEY HERE" | |
| INSTANCE_ID_URL="http://169.254.169.254/latest/meta-data/instance-id" | |
| INSTANCE_ID=$(curl -s ${INSTANCE_ID_URL}) | |
| SERVER_STATUS_URL="http://localhost/php-fpm-status" |
| package bmutinda.com.androidutils.libs; | |
| import android.view.MotionEvent; | |
| import android.view.View; | |
| /** | |
| * Created by Mutinda Boniface on 7/5/2015. | |
| */ | |
| public class SwipeEvents implements View.OnTouchListener { | |
| private SwipeCallback swipeCallback; |
| #!/bin/sh | |
| SENTRY_KEY= | |
| SENTRY_SECRET= | |
| SENTRY_PROJECTID=1 | |
| SENTRY_HOST=sentry.example.com | |
| SCRIPT_ARGUMENTS=$@ | |
| capture_error() | |
| { |
| apt-get clean autoclean | |
| apt-get autoremove --yes | |
| rm -rf /var/lib/{apt,dpkg,cache,log}/ |
| <?php | |
| /* | |
| MIT License | |
| Copyright (c) 2021 Jesse Schalken | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights |
| # at least in deb/untu | |
| sudo apt-get install libpam-google-authenticator | |
| # for each user | |
| google-authenticator |
This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.
A file below this one contains the steps for doing this with Travis CI. However, these days I recommend GitHub Actions, for the following reasons:
| ### Add trailing slash if needed | |
| STR="/i/am/a/path" | |
| length=${#STR} | |
| last_char=${STR:length-1:1} | |
| [[ $last_char != "/" ]] && STR="$STR/"; : | |
| echo "$STR" # => /i/am/a/path/ |