Skip to content

Instantly share code, notes, and snippets.

@v-thomp4
v-thomp4 / gist:e61f53b5b92707b238cf9a19e638edb9
Created July 1, 2021 04:46
Screen Turning Black on Fullscreen Virtualbox
Virtualbox settings > Display > Video memory to 128 MB from 16 MB
@v-thomp4
v-thomp4 / aosp-101.md
Created March 11, 2021 08:38 — forked from tinntt/aosp-101.md
AOSP 101

There are 3 steps:

  • Setup & Download
  • Build
  • Flash

Before you start, please be calm in any situation :v.

Step 1, Setup & Download:

  • At least 250GB of free disk space to check out the code and an extra 150 GB to build it. If you conduct multiple builds, you need additional space.
  • You need repo tool to download the source:
@v-thomp4
v-thomp4 / Dockerfile
Last active January 21, 2021 08:44
jenkins ldaps
FROM jenkins/jenkins:lts
USER root
ENV JAVA_OPTS -Djenkins.install.runSetupWizard=false
COPY plugins.txt /usr/share/jenkins/ref/plugins.txt
RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt
COPY ldap.cer $JAVA_HOME/jre/lib/security/
RUN \
cd $JAVA_HOME/jre/lib/security \
&& keytool -keystore cacerts -storepass changeit -noprompt -trustcacerts -importcert -alias ldapcert -file ldap.cer
@v-thomp4
v-thomp4 / gist:e902e0282f7cc028def701e6f410c5b9
Created January 20, 2021 10:28
login into jenkins container as root
docker exec -u 0 -it mycontainer bash
sudo su
dpkg --add-architecture i386
apt-get update
apt-get install libstdc++5:i386 libx11-6:i386 libpam0g:i386
wget https://starkers.keybase.pub/snx_install_linux30.sh?dl=1 -O snx_install.sh
chmod a+rx snx_install.sh
./snx_install.sh
snx -s vpn.local.host -u username
wget --recursive --no-parent http://user:'pass'@example.com/folder
@v-thomp4
v-thomp4 / gist:b4938164dbc02d01612a8a9381192050
Last active January 10, 2021 08:55
CSRF Token error on login Zammad
docker exec -it zammad-docker-compose_zammad-railsserver_1 bash
rails c
Setting.get('http_type')
=> "https"
Setting.set('http_type','http')
quit
exit
docker-compose down
docker-compose up -d
version: '3'
volumes:
rethinkdb:
storage-temp:
services:
nginx:
build: nginx/
volumes:
@v-thomp4
v-thomp4 / gist:353490a1a46095cc8059a0f6fade545b
Created September 14, 2020 05:20
Enabling Touch ID authorization for sudo on macOS
brew install fabianishere/personal/pam_reattach
cat /etc/pam.d/sudo
# sudo: auth account password session
auth sufficient pam_tid.so
auth sufficient pam_smartcard.so
auth required pam_opendirectory.so
account required pam_permit.so
password required pam_deny.so
session required pam_permit.so
auth optional pam_reattach.so
@v-thomp4
v-thomp4 / gist:d725521e26f64d99dead2b82e8561345
Created August 19, 2020 14:16
Bugzilla unable to establish SMTP connection
The simplest workaround without installing any additional fixes or modules is to just manually edit the params.json and set "smtp_ssl" : "starttls". Note however that changing the email settings in Bugzilla will overwrite your value so if you want a permanent solution you should edit Mailer.pm and in the if($method eq "SMTP") you should replace:
ssl => Bugzilla->params->{'smtp_ssl'},
with
$port eq "587" ? (ssl => "starttls") : (ssl => Bugzilla->params->{'smtp_ssl'}),