Skip to content

Instantly share code, notes, and snippets.

View jeroenbourgois's full-sized avatar
🐢

Jeroen Bourgois jeroenbourgois

🐢
View GitHub Profile
@geek-at
geek-at / trash.sh
Created August 13, 2020 07:27
The script used to trash a banking phishing site
#!/bin/bash
while :; do
verf=$(cat /dev/urandom | tr -dc '0-9' | fold -w 8 | head -n 1)
pin=$(cat /dev/urandom | tr -dc '0-9' | fold -w 5 | head -n 1)
ip=$(printf "%d.%d.%d.%d\n" "$((RANDOM % 256))" "$((RANDOM % 256))" "$((RANDOM % 256))" "$((RANDOM % 256))")
@pierot
pierot / gist:a88567befa3a2c795bc9
Last active December 9, 2016 03:43
FFMPEG tips

REMOVE SOUND

ffmpeg -i balloon-2.webm -an balloon-2-nosound.webm

FLV TO WMV

ffmpeg -i infile.flv -vcodec wmv2 -sameq -acodec wmav2 -f output.wmv

for f in *.mp4; do ffmpeg -i $f -acodec libvorbis -vcodec libtheora -ac 2 -ab 128k -ar 44100 -b:v 900k -s 1024x576 -y $f.ogv 2> /dev/null &; done

for f in *.mp4; do ffmpeg -i $f -acodec libvorbis -ac 2 -ab 128k -ar 44100 -b:v 900k -s 1024x576 -y $f.webm 2> /dev/null &; done

@pascalpoitras
pascalpoitras / config.md
Last active October 7, 2024 01:35
My WeeChat configuration

WeeChat Screenshot

Mouse


enable


@ChristianUlbrich
ChristianUlbrich / test_frame_capture.c
Created December 9, 2013 12:54
Simple example to capture a frame with an uEye Camera under Linux; compile with: gcc -Wall test_frame_capture.c -lueye_api -o frametest
#include<stdio.h>
#include<stddef.h>
#include<ueye.h>
HIDS hCam = 1;
void main() {
printf("Success-Code: %d\n",IS_SUCCESS);
//Kamera öffnen
@srkirkland
srkirkland / web.config.xml
Created September 25, 2013 19:21
web.config static content and caching sections
<!-- GZip static file content. Overrides the server default which only compresses static files over 2700 bytes -->
<httpCompression directory="%SystemDrive%\websites\_compressed" minFileSizeForComp="1024">
<scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" />
<staticTypes>
<add mimeType="text/*" enabled="true" />
<add mimeType="message/*" enabled="true" />
<add mimeType="application/javascript" enabled="true" />
<add mimeType="application/json" enabled="true" />
<add mimeType="*/*" enabled="false" />
</staticTypes>
@rob-bar
rob-bar / refactor_created_at_and_updated_at.php
Last active October 12, 2015 19:18
#snippet #fuelphp #php #migration created & updated refactor
<?php
namespace Fuel\Migrations;
class refactor_created_at_and_updated_at {
public function up() {
$tables = \DB::list_tables();
foreach ($tables as $table) {
\Cli::write($table);
if(\DBUtil::field_exists($table, array('created_at', 'updated_at'))) {
@SergXIIIth
SergXIIIth / gist:1628715
Created January 17, 2012 20:31
The first Arduino HTTP request
#include <SPI.h>
#include <Ethernet.h>
byte mac[] = { 0x00, 0xAB, 0xCB, 0xCD, 0xDE, 0x02 };
IPAddress ip(192,168,0,140);
IPAddress server(173,194,70,103);
EthernetClient client;
@rdegges
rdegges / proxy_nginx.sh
Created April 11, 2011 05:30
Create a HTTP proxy for jenkins using NGINX.
sudo aptitude -y install nginx
cd /etc/nginx/sites-available
sudo rm default
sudo cat > jenkins
upstream app_server {
server 127.0.0.1:8080 fail_timeout=0;
}
server {
listen 80;