Skip to content

Instantly share code, notes, and snippets.

View mageddo's full-sized avatar
💭
🚲 🍺

Elvis Souza mageddo

💭
🚲 🍺
View GitHub Profile
@mageddo
mageddo / ffmpeg-mp4-to-animated-webp.md
Created November 16, 2022 22:51 — forked from witmin/ffmpeg-mp4-to-animated-webp.md
Convert MP4 file to animated WebP in ffmpeg

Convert MP4 file to animated WEBP file in ffmpeg CLI

1. Install ffmpeg CLI through homebrew

In terminal.app, install ffmpeg through homebrew

brew install ffmpeg

Validate the installation:

@mageddo
mageddo / agent.cpp
Created June 20, 2020 18:34 — forked from thaarok/agent.cpp
Example of setting security policy through JVM Tool Interface (JVM TI) when is JVM starting
/**
* JVM Tool Interface agent which sets
* security policy when is agent loaded
* @author Jan Kalina <honza889@gmail.com>
*/
#include <string.h>
#include <jvmti.h>
#include <jni.h>
@mageddo
mageddo / README.md
Created November 6, 2018 00:49 — forked from Mnkai/README.md
TDP and turbo parameter modification with MSR on non-overclockable Intel CPU (such as Intel i7-8550U)

TDP and turbo parameter modification with MSR on non-overclockable CPU

Disclaimer

  • MSR modification may void your CPU's (or system board's) warranty. Proceed with care. I'm not responsible for any destruction caused by this article.
  • MSR address (greatly) differs from CPU to CPU. Check your own CPU's MSR address using Intel's documentation.
  • Only tested on Intel i7-8550U (Kaby Lake R).
  • This article is translation of this article. If you can understand Korean, I recommend reading that article, not this.

Start

@mageddo
mageddo / steamGetFloatValue.js
Created July 31, 2018 02:21 — forked from sturadnidge/steamGetFloatValue.js
Gets the float value of a Steam inventory item
'use strict';
/*jshint node:true */
// npm install lodash colors minimist request sync-request
var _ = require('lodash'),
colours = require('colors/safe'),
parseArgs = require('minimist'),
request = require('request'),
requestSync = require('sync-request'),
@mageddo
mageddo / demos.cfg
Created July 20, 2018 15:48 — forked from maschill92/demos.cfg
A CS:GO config file to make watching demos much easier.
//----------------------------- MISC -------------------------------\\
//------------------------------------------------------------------\\
sv_cheats "1"
sv_showimpacts "0"
sv_showimpacts_time "2.5"
//---------------------------- BINDS -------------------------------\\
//------------------------------------------------------------------\\
bind "SPACE" "demo_togglepause" // pause/play demo
bind "c" "r_cleardecals" // get rid of bulletholes and black residue from grenade explosions
@mageddo
mageddo / paramiko_example.py
Created October 28, 2017 18:07 — forked from batok/paramiko_example.py
Paramiko example using private key
import paramiko
k = paramiko.RSAKey.from_private_key_file("/Users/whatever/Downloads/mykey.pem")
c = paramiko.SSHClient()
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
print "connecting"
c.connect( hostname = "www.acme.com", username = "ubuntu", pkey = k )
print "connected"
commands = [ "/home/ubuntu/firstscript.sh", "/home/ubuntu/secondscript.sh" ]
for command in commands:
print "Executing {}".format( command )
@mageddo
mageddo / paramiko_example.py
Created October 28, 2017 18:07 — forked from batok/paramiko_example.py
Paramiko example using private key
import paramiko
k = paramiko.RSAKey.from_private_key_file("/Users/whatever/Downloads/mykey.pem")
c = paramiko.SSHClient()
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
print "connecting"
c.connect( hostname = "www.acme.com", username = "ubuntu", pkey = k )
print "connected"
commands = [ "/home/ubuntu/firstscript.sh", "/home/ubuntu/secondscript.sh" ]
for command in commands:
print "Executing {}".format( command )
@mageddo
mageddo / gist:098b666e22655f3a10c835cbe1edf2a2
Created September 10, 2017 17:52 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@mageddo
mageddo / TripleDesBouncyCastle.java
Created August 22, 2017 18:53 — forked from adityasatrio/TripleDesBouncyCastle.java
Triple des bouncy castle.
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package asn.helpers;
/**
*
* @author asn
*/
@mageddo
mageddo / _README.md
Created July 28, 2017 20:23 — forked from schickling/_README.md
Script to import and export docker-machine configurations to sync between hosts/collaborators

docker-machine import/export

Script to import and export docker-machine configurations to sync between hosts/collaborators

Export (on host A)

$ docker-machine ls
NAME       ACTIVE   DRIVER         STATE     URL                            SWARM   DOCKER    ERRORS
dev        -        digitalocean   Running   tcp://example.com:2376                 v1.10.1