Skip to content

Instantly share code, notes, and snippets.

View silveira's full-sized avatar

Silveira Neto silveira

View GitHub Profile
@tomhicks
tomhicks / plink-plonk.js
Last active March 18, 2024 02:23
Listen to your web pages
@KyleMit
KyleMit / archive.ps1
Last active February 25, 2024 14:25
Execute Powershell Script on Right Click in Windows Explorer
$path = $args[0]
Add-Type -AssemblyName PresentationFramework
[System.Windows.MessageBox]::Show("Hello $path")
@saintedlama
saintedlama / nes.gpl
Created December 18, 2016 16:31
NES Color Palette - Gimp Palette
GIMP Palette
Name: NES Color Palette
Columns: 16
#
124 124 124 nes00
0 0 252 nes01
0 0 188 nes02
68 40 188 nes03
148 0 132 nes04
168 0 32 nes05
@joyrexus
joyrexus / README.md
Last active May 17, 2021 19:41
Flickr public feed api
@bretwalker
bretwalker / ssl_validator.py
Last active January 28, 2024 12:02
A Python script that uses M2Crypto to check the validity of an SSL certificate.
from M2Crypto import SSL
from M2Crypto.SSL.Checker import SSLVerificationError, NoCertificate, WrongCertificate, WrongHost
import socket, re
from datetime import datetime
import pytz
class ValidationResults:
def __init__(self):
self.connection_error = False
@jasdeepkhalsa
jasdeepkhalsa / build.xml
Created January 10, 2013 16:47
Sample Ant build.xml file for concat and minifying CSS & JS files by Addy Osmani
<?xml version="1.0" encoding="utf-8"?>
<project name="tutorialProject" default="prod" basedir="/Users/addy/buildTut/">
<description>Client-side ANT build file example</description>
<target name="-load.properties"
description="Set properties for this build">
<!--YUI Compressor location-->
<property name="yui.dir" value="${basedir}/yuicompressor/build/yuicompressor-2.4.2.jar"/>
<!--Source JS dir-->
@kenmickles
kenmickles / vlc.txt
Created April 12, 2012 01:32
VLC commands used to create the projector display for Jon Tomlinson's birthday party
# ascii art
/Applications/VLC.app/Contents/MacOS/VLC ~/Desktop/Jon.m3u -V caca
# gradient cartoon
/Applications/VLC.app/Contents/MacOS/VLC ~/Desktop/Jon.m3u -Z -L --no-video-deco --no-embedded-video --width=640 --height=360 --mirror-split=0 --gradient-mode=edge --gradient-cartoon --blur-factor=80 --video-filter=mirror:gradient:motionblur
# twilight zones
/Applications/VLC.app/Contents/MacOS/VLC ~/Desktop/Jon.m3u -L --no-video-deco --no-embedded-video --width=640 --height=360 --colorthres-color=16711680 --colorthres-saturationthres=20 --colorthres-similaritythres=15 --rotate-angle=180 --video-filter=colorthres --vout-filter=transform --transform-type=hflip --rate=2.0
/Applications/VLC.app/Contents/MacOS/VLC ~/Desktop/Jon.m3u -L --no-video-deco --no-embedded-video --width=640 --height=360 --colorthres-color=255 --colorthres-saturationthres=20 --colorthres-similaritythres=15 --rotate-angle=180 --video-filter=colorthres --rate=2.0
@silvasur
silvasur / tetris.py
Last active May 4, 2024 08:11
Tetris implementation in Python
#!/usr/bin/env python3
#-*- coding: utf-8 -*-
# Very simple tetris implementation
#
# Control keys:
# Down - Drop stone faster
# Left/Right - Move stone
# Up - Rotate Stone clockwise
# Escape - Quit game
@JosephPecoraro
JosephPecoraro / shell-execution.rb
Last active September 10, 2023 10:12
Shell Execution in Ruby
# Ways to execute a shell script in Ruby
# Example Script - Joseph Pecoraro
cmd = "echo 'hi'" # Sample string that can be used
# 1. Kernel#` - commonly called backticks - `cmd`
# This is like many other languages, including bash, PHP, and Perl
# Synchronous (blocking)
# Returns the output of the shell command
# Docs: http://ruby-doc.org/core/classes/Kernel.html#M001111