Skip to content

Instantly share code, notes, and snippets.

View rusman-plat-d's full-sized avatar
🎯
Focusing

Rusman Wahab rusman-plat-d

🎯
Focusing
View GitHub Profile
@dublado
dublado / Secureboot + Ubuntu + VirtualBox Signing kernel modules.md
Last active April 5, 2025 01:25
Secureboot + Ubuntu + VirtualBox Signing kernel modules

Install the virtualbox manually

sudo apt-get update  
sudo apt-get install virtualbox-6.1  

Sign the modules for secureboot

sudo -i  
mkdir /root/module-signing  
cd /root/module-signing  
@abaksy
abaksy / mysql-jdbc-ubuntu-install.md
Last active April 5, 2025 01:25
mysql-jdbc-ubuntu-install

Super duper cool guide for installing MySQL (MariaDB actually) and JDBC on Ubuntu 20.04

  1. Install mariadb server using: sudo apt install mariadb-server

  2. Install the Java library for MariaDB using: sudo apt install libmariadb-java

  3. Start the mariadb service using: sudo /etc/init.d/mysql start

  4. Now you will login to the mariaDB and create a new user that does not need root a) Connect to MY-SQL using: sudo mysql -u root

@Sirpyerre
Sirpyerre / Dockerfile
Last active May 21, 2024 11:58
Dockerfile Laravel SQL SERVER
FROM ubuntu:21.10
LABEL maintainer="Taylor Otwell"
ARG WWWGROUP
WORKDIR /var/www/html
ENV DEBIAN_FRONTEND noninteractive
ENV TZ=UTC
@huzemin
huzemin / laravel-encrypt.js
Created December 3, 2019 06:47
laravel Encrypt convert to CryptoJS in Javascript
import CryptoJS from "crypto-js";
const LaravelEncrypt = function (key) {
this.key = key;
}
LaravelEncrypt.prototype.decrypt = function (encryptStr) {
encryptStr = CryptoJS.enc.Base64.parse(encryptStr);
let encryptData = encryptStr.toString(CryptoJS.enc.Utf8);
encryptData = JSON.parse(encryptData);
@yubing24
yubing24 / account.component.html
Created August 9, 2018 05:51
Angular Material Side Navigation with Expandable Menus
<mat-toolbar color="accent">
<button mat-icon-button matTooltip="Application Menu" (click)="sidenav.toggle()">
<mat-icon>settings</mat-icon>
</button>
Account Settings
<span style="flex: 1 1 auto;"></span>
<div>
<button mat-icon-button matTooltip="Switch Apps">
<mat-icon>apps</mat-icon>
</button>
@jeanne007
jeanne007 / How_to_install_OCI8_in_windows.md
Last active October 30, 2024 06:08
How to install OCI8 in windows

How to install OCI8 in windows

Instantclient Version 12.2.0.1.0

Xampp
php 7.2.4
Windows 10

Step 1

Download OCI8 2.1.8 - 7.2 Thread Safe (TS) x86

@vlucas
vlucas / encryption.ts
Last active May 2, 2025 08:08
Stronger Encryption and Decryption in Node.js
import { createCipheriv, createDecipheriv, randomBytes } from "crypto";
const ENCRYPTION_KEY: string = process.env.ENCRYPTION_KEY || ""; // Must be 256 bits (32 characters)
const IV_LENGTH: number = 16; // For AES, this is always 16
/**
* Will generate valid encryption keys for use
* Not used in the code below, but generate one and store it in ENV for your own purposes
*/
export function keyGen() {