Skip to content

Instantly share code, notes, and snippets.

View tirzasrwn's full-sized avatar

tirzasrwn

View GitHub Profile
@tirzasrwn
tirzasrwn / wifi-bluethooth.md
Last active April 17, 2024 11:38
fix wifi slow when connect bluethooth
cd /etc/modprobe.d/
sudo cp iwlwifi.conf iwlwifi.conf.bak
sudo vi iwlwifi.conf
# add this line without #
# options iwlwifi bt_coex_active=0 swcrypto=1 11n_disable=8
# and save
sudo reboot

source: https://wiki.debian.org/iwlwifi

@tirzasrwn
tirzasrwn / ping-stat.py
Created April 12, 2024 04:27
ping status lcd 1602 beaglebone black
#!/usr/bin/python
import time
import os
import Adafruit_CharLCD as LCD
# BeagleBone Black configuration:
lcd_rs = 'P8_8'
lcd_en = 'P8_10'
lcd_d4 = 'P8_18'
@tirzasrwn
tirzasrwn / dropbear
Created April 11, 2024 07:13 — forked from mad4j/dropbear
activating dropbear on embedded linux
Manual installation
1. copy dropbearmultin in /usr/sbin
2. create dropbearmulti aliases (call ./dropbearmulti)
Dropbear multi-purpose version 0.51
Make a symlink pointing at this binary with one of the following names:
'dropbear' - the Dropbear server
'dbclient' or 'ssh' - the Dropbear client
'dropbearkey' - the key generator
'dropbearconvert' - the key converter
@tirzasrwn
tirzasrwn / install_nerd_font_linux.md
Last active January 7, 2024 09:49
how to install nerd fonts in linux
  • Download here, just pick Fira Code for the the best font
  • Download install script from here, and name it install.sh
  • Run the script
vim install.sh
mkdir patched-fonts
mv <your-font>.zip ./patched-fonts
cd patched-fonts
unzip .zip
@tirzasrwn
tirzasrwn / docker_wordpress.md
Created December 12, 2023 09:10 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
@tirzasrwn
tirzasrwn / aes-256-cbc-test.js
Created March 10, 2023 03:54 — forked from brettscott/aes-256-cbc-test.js
AES 256 CBC encryption between Golang and Node JS
// Node v6.9.0
//
// TEST FILE (cut down for simplicity)
// To ensure Golang encrypted string can be decrypted in NodeJS.
//
let crypto;
try {
crypto = require('crypto');
@tirzasrwn
tirzasrwn / openconnect.md
Created January 4, 2023 02:35
OpenConnect installation

OpenConnect

The Cisco AnyConnect client can and does work on Linux-based operating systems and you a free to download and install it using its insall shell script, however, the open source community has produced an AnyConnect SSL VPN compatible client called OpenConnect which will be available for in your modern Linux-based OS. For this document, we've used the latest Ubuntu 14.04 Desktop distribution as an example. The following should show you step-by-step how to install and configure OpenConnect for the UoM AnyConnect VPN service.

Installing OpenConnect

Follow these steps and refer to the screenshots to install OpenConnect, some basic knowledge of your Linux-based operating system is assumed.

  • Open Terminal
  • Install OpenConnect from the Ubuntu Universe software repository
$ sudo apt-get install openconnect network-manager-openconnect network-manager-openconnect-gnome
@tirzasrwn
tirzasrwn / postgres.md
Last active December 27, 2022 04:11
Postgresql

Setup Postgressql LInux Debian

sudo apt update
sudo apt install postgresql
sudo apt install postgresql-client

# Setting up new password
sudo passwd postgres
@tirzasrwn
tirzasrwn / file_to_ascii.md
Last active September 8, 2022 03:12
File to ASCII in Linux

About

Convert file to ASCII. Some transfer protocol only support ASCII. We can still use it by converting our file into ASCII.

Tools

  • uuencode
  • uudecode
  • tar
  • gzip
  • gunzip
@tirzasrwn
tirzasrwn / linaro-toolchain.md
Created July 1, 2022 04:42
Linaro Toolchain

About

Linaro is an engineering organization that works on free and open-source software such as the Linux kernel, the GNU Compiler Collection (GCC), power management, graphics and multimedia interfaces for the ARM family of instruction sets and implementations thereof as well as for the Heterogeneous System Architecture (HSA). The company provides a collaborative engineering forum for companies to share engineering resources and funding to solve common problems on ARM software.

GNU Toolchain

Projects included in the GNU toolchain are:

  • GNU make: an automation tool for compilation and build
  • GNU Compiler Collection (GCC): a suite of compilers for several programming languages
  • GNU C Library (glibc): core C library including headers, libraries, and dynamic loader
  • GNU Binutils: a suite of tools including linker, assembler and other tools