GNU Octave is a high-level interpreted language, primarily intended for numerical computations.
(via GNU Octave)
- not equal
~=
- logical AND
&&
#!/bin/bash | |
# | |
function main { | |
echo "clearing $1" | |
cd $1 && \ | |
rm -rf node_modules && \ | |
git stash && \ | |
git checkout master && \ | |
clear-branches && \ |
#!/bin/bash | |
git branch | grep -ve " master$" | xargs git branch -D |
GNU Octave is a high-level interpreted language, primarily intended for numerical computations.
(via GNU Octave)
~=
&&
#!/bin/bash | |
export PREFIX="/usr/local/avr" | |
export EXTRAS="/usr/local/extras" | |
export INITIALDIR="/path/to/dev/folder/avr" | |
mkdir $PREFIX | |
mkdir $EXTRAS | |
# -------------- Binutils |
# run bash inside the docker container | |
docker exec -it $containerid bash | |
# for example: | |
# $ psql -U $postgresuser | |
# run bash in pod | |
kubectl exec -it $podname -- /bin/bash |
-- What queries are running more than a second? -- | |
SELECT pid FROM pg_stat_activity | |
WHERE pg_stat_activity.usename = 'username' | |
AND query != '<IDLE>' | |
AND query NOT ILIKE '%pg_stat_activity%' | |
AND age(clock_timestamp(), query_start) > '00:00:01'; | |
-- Kill queries that are running more than 5 minutes -- | |
WITH pgg AS ( | |
SELECT pid |
#include <stdio.h> | |
typedef unsigned int DWORD; | |
typedef unsigned short WORD; | |
inline DWORD | |
SwapWords (DWORD val) | |
{ | |
WORD * p = (WORD*) &val; | |
WORD t; |
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader | |
== Shell |
Install android SDK (bottom of the page) or full android studio if you need to develop on android.
fastboot
looks like adb
but it is used when device is in bootloader
(or fastboot).