Skip to content

Instantly share code, notes, and snippets.

View ptrcnull's full-sized avatar
🏳️‍🌈
she/her

Patrycja ptrcnull

🏳️‍🌈
she/her
View GitHub Profile
@shouhei
shouhei / Dockerfile
Created April 13, 2020 09:33
DockerでVMware Remote Console Client を使うためのDockerfile
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND noninterractive
COPY ./VMware-Remote-Console-11.1.0-15913118.x86_64.bundle /root/
RUN apt update && \
apt install -y libgtk-3-dev libaio-dev libpcsclite1 libasound2-dev desktop-file-utils less && \
cd /root && \
./VMware-Remote-Console-11.1.0-15913118.x86_64.bundle --required --console --eulas-agreed && \
apt clean && \
rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["vmrc"]
@mateor
mateor / get_python_library.py
Last active October 27, 2020 13:21
Function to programmatically generate the list of importable modules that shipped with the invoking Python distribution.
# The MIT License (MIT)
# Copyright (c) 2016 mateor
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
# and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all copies or substantial portions
# of the Software.
@plugnburn
plugnburn / README.md
Last active May 31, 2024 06:31
NokiaTool - simple interface Bash script for MediaTek-based Nokia simple phones

NokiaTool: control MediaTek-based Nokia phones from your PC

Overview

NokiaTool is a simple Bash script (nokiatool.sh) that allows you to use an undocumented serial connection in USB-enabled MediaTek-based Nokia feature phones manufactured by Microsoft (even the most basic ones, like the new 105) in order to control them from your PC.

This project is an ongoing work and uses only some bits and pieces of information about the phone internals available to the public, so under any circumstances don't consider it stable or a replacement for official tools if any are present.

@shamil
shamil / mount_qcow2.md
Last active June 17, 2024 17:27
How to mount a qcow2 disk image

How to mount a qcow2 disk image

This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.

Step 1 - Enable NBD on the Host

modprobe nbd max_part=8
@jyap808
jyap808 / Nginx Virtual Host Log Format.md
Created April 13, 2014 05:03
Nginx Virtual Host Log Format
$ diff -u /etc/nginx/nginx.conf{.ORIG,}
--- /etc/nginx/nginx.conf.ORIG  2014-04-13 04:15:51.907316500 +0000
+++ /etc/nginx/nginx.conf       2014-04-13 05:02:22.807316500 +0000
@@ -30,7 +30,9 @@
        # Logging Settings
        ##
 
-       access_log /var/log/nginx/access.log;
+ log_format vhosts '$host $remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"';