Skip to content

Instantly share code, notes, and snippets.

Avatar

Adrián López adrianlzt

View GitHub Profile
@adrianlzt
adrianlzt / radare2.md
Last active Oct 7, 2020
pulsesvc binary patching remove unwanted features, pulse-secure 9.1r5.0_b151-2
View radare2.md

Modifications to pulsesvc.

Original pulsesvc binary md5sum: 7c17b24314af67bc7b86d4681884c844

Modified version md5sum: 274c9071501b6e66c75eec6e0f7d2559

Changes:

  • do not modify /etc/hosts
  • do not modify /etc/resolv.conf
  • do not add routes
@adrianlzt
adrianlzt / instructions.txt
Created Jul 9, 2020
CMDB not-complete build instructions
View instructions.txt
Download code from sourceforge (.tar.gz)
Deps needed:
https://bitbucket.org/tecnoteca/cmdbuild-dependencies/downloads/
Uncompress and install:
bash install-artifacts.sh
Copy those deps to our m2 local cache:
rsync -a . $HOME/.m2/repository/
@adrianlzt
adrianlzt / hx711-overlay.dts
Created Mar 26, 2020
Devicetree overlay for HX711 in Raspberry Pi Zero
View hx711-overlay.dts
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
/ {
compatible = "brcm,bcm2835";
fragment@0 {
target-path = "/";
View policy
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": [
"*"
]
},
View sharescreen
#!/bin/bash
# Modified version of https://github.com/Ashark/hliss/blob/master/vlc-hangouts
# https://gist.github.com/adrianlzt/216aabb9568b162c92317f768d889c76
# Script to share a portion of the screen in VLC to be used by Chrome/Firefox to share the screen
# By default, when run, it asks to click in some window. The area of that window is what is going to be shared.
# If executed with "sharescreen area", it asks for a portion of the screen to be shared.
unset x y w h
View max.rb
#!/bin/ruby
require 'json'
require 'stringio'
# Complete the maxSubsetSum function below.
def maxSubsetSum(arr)
end
@adrianlzt
adrianlzt / sharescreen
Last active Nov 12, 2020
Scripts to share only a portion of the screen
View sharescreen
#!/bin/bash
# Modified version of https://github.com/Ashark/hliss/blob/master/vlc-hangouts
# Script to share a portion of the screen in VLC to be used by Chrome/Firefox to share the screen
# By default, when run, it asks to click in some window. The area of that window is what is going to be shared.
# If executed with "sharescreen area", it asks for a portion of the screen to be shared.
unset x y w h
# Old code to choose a monitor
View emitter.go
package main
import (
"bytes"
"encoding/gob"
"fmt"
"plugin"
)
func main() {
View visualvm.sh
#!/bin/sh
DIRNAME=`dirname "$0"`
GREP="grep"
# Use the maximum available, or set MAX_FD != -1 to use that
MAX_FD="maximum"
# OS specific support (must be 'true' or 'false').
cygwin=false;
You can’t perform that action at this time.