Skip to content

Instantly share code, notes, and snippets.

@darconeous
darconeous / rect-starlink-cable-hack.md
Last active March 22, 2024 14:45
Hacking the Rectangular Starlink Dishy Cable
@ricardozanini
ricardozanini / how-to-install-graalvm-linux.md
Last active February 22, 2024 20:59
How to install GraalVM on Linux with alternatives

How to Install GraalVM Community Edition on Linux

Note: Tested on Fedora only

  1. Download the new release of GraalVM and unpack it anywhere in your filesystem:
$ tar -xvzf graalvm-ce-1.0.0-rc14-linux-amd64.tar.gz
@njh
njh / auto_select_certificate.json
Created December 22, 2015 11:06
Policy file to configure Chrome/Chromium to automatically select a client certificate (useful for Kiosk mode)
{
"AutoSelectCertificateForUrls": ["{\"pattern\":\"*\",\"filter\":{}}"]
}
@DraTeots
DraTeots / ComPort over Network.md
Last active May 6, 2024 08:22
ComPort over Network
@3rd-Eden
3rd-Eden / README.md
Last active January 4, 2021 10:20
Protecting against POODLE in node.js

[Google recently announced][poodle] that there is an exploit in SSLv3, this vulnerability is know as POODLE. There is no other option than to disable SSLv3 in order to combat this major flaw. There have already been [guides on how to disable this in different servers][guides]. But nothing excised for Node.js yet, until now. In order to resolve this for Node.js we need to use various of undocumented options and modules.

In the index.js file below you can see an example of how you can protect your HTTPS server against the POODLE attack. It uses the secureOptions option to pass in constants in to the SSL context which is created by node.

@Mic92
Mic92 / ansible.cfg
Created September 2, 2014 12:09
ansible connection plugin for lxc using lxc-attach
# add the following line to your ansible.cfg
connection_plugins = /usr/share/ansible_plugins/connection_plugins:/etc/ansible/connection_plugins
@JosefJezek
JosefJezek / unbrick-lg-p500.md
Created December 31, 2013 01:08
Unbrick, hard bricked LG Optimus One (P500)

Unbrick, hard bricked LG Optimus One (P500)

To access emergency mode, do the following:

  • Take out the battery
  • Have a usb cable already connected to the computer.
  • Hold the power button + volume up + back button AND then connect the usb while holding those buttons
  • Yellow screen will appear with the words emergency mode in the middle.

Download LG Mobile Support Tool

@asp24
asp24 / flush_cache.php
Last active October 18, 2019 20:34
Script for flushing bytecode cache
<?php
/**
* Script for flushing bytecode cache
*
* usage:
* php flush_cache.php unix:///var/run/php5-fpm.sock
* php flush_cache.php 127.0.0.1 9000
*
* Change SECRET bellow before use!
@ruckus
ruckus / statistics.sql
Created June 5, 2013 23:26
Postgres statistics queries
** Find commmonly accessed tables and their use of indexes:
SELECT relname,seq_tup_read,idx_tup_fetch,cast(idx_tup_fetch AS numeric) / (idx_tup_fetch + seq_tup_read) AS idx_tup_pct FROM pg_stat_user_tables WHERE (idx_tup_fetch + seq_tup_read)>0 ORDER BY idx_tup_pct;
Returns output like:
relname | seq_tup_read | idx_tup_fetch | idx_tup_pct
----------------------+--------------+---------------+------------------------
schema_migrations | 817 | 0 | 0.00000000000000000000
user_device_photos | 349 | 0 | 0.00000000000000000000
@ck-on
ck-on / ocp.php
Last active March 25, 2024 09:30
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)#ocp #php #opcache #opcode #cache #zend #optimizerplus #optimizer+
<?php
/*
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)
Author: _ck_ (with contributions by GK, stasilok)
Version: 0.1.7
Free for any kind of use or modification, I am not responsible for anything, please share your improvements
* revision history
0.1.7 2015-09-01 regex fix for PHP7 phpinfo
0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter