cd ~
git clone git://git.videolan.org/x264
cd x264
./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-opencl
make -j4
sudo make install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pipeline { | |
agent { | |
node { | |
label 'master' | |
customWorkspace "${JENKINS_HOME}/workspace/${JOB_NAME}/${BUILD_NUMBER}" | |
} | |
} | |
stages { | |
stage('HELLO') { | |
steps { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function create() { | |
gcloud services enable cloudbilling.googleapis.com | |
gcloud services enable containerregistry.googleapis.com | |
gcloud services enable iam.googleapis.com | |
gcloud services enable compute.googleapis.com | |
gcloud services enable container.googleapis.com | |
gcloud services enable dns.googleapis.com | |
gcloud services enable sqladmin.googleapis.com | |
gcloud iam service-accounts create "${GKE_SA}" --display-name "${GKE_SA}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nc localhost 5901 | |
sudo apt-get install vnc4server | |
vi .vnc/xstartup | |
```` | |
#!/bin/sh | |
export XKL_XMODMAP_DISABLE=1 | |
unset SESSION_MANAGER | |
unset DBUS_SESSION_BUS_ADDRESS | |
xfce4-panel & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
database: | |
image: mysql | |
entrypoint: ['/entrypoint.sh', '--default-authentication-plugin=mysql_native_password'] | |
environment: | |
- MYSQL_USER=magnolia | |
- MYSQL_PASSWORD=mysecretpassword | |
- MYSQL_DATABASE=magnolia | |
- MYSQL_ROOT_PASSWORD=myVerySecretPassword |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
# Args | |
# $1 name of the docker | |
# $2 command | |
if [ "${2}" = "start" ] | |
then | |
docker run -d -it -p 80:80 $1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enable audio (loads snd_bcm2835) | |
dtparam=audio=on | |
[pi4] | |
# Enable DRM VC4 V3D driver on top of the dispmanx display stack | |
#dtoverlay=vc4-fkms-v3d | |
#max_framebuffers=2 | |
[all] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"log" | |
"net/http" | |
"strings" | |
) | |
// FileSystem custom file system handler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Customize BASH PS1 prompt to show current GIT repository and branch. | |
# by Mike Stewart - http://MediaDoneRight.com | |
# SETUP CONSTANTS | |
# Bunch-o-predefined colors. Makes reading code easier than escape sequences. | |
# I don't remember where I found this. o_O | |
# Reset | |
Color_Off="\[\033[0m\]" # Text Reset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*STOP ALL APPS* | |
cf apps | grep started | awk '{print $1}{system("cf sp " $1)}' | |
*REMOVE ALL APPS* | |
cf apps | grep stopped | awk '{print $1}{system("cf d -f -r " $1)}' | |
*CONNECT APPS* | |
cf add-network-policy frontend --destination-app backend |
NewerOlder