Skip to content

Instantly share code, notes, and snippets.

View widhisec's full-sized avatar
:shipit:
I may be slow to respond.

widhisec

:shipit:
I may be slow to respond.
View GitHub Profile
@rjial
rjial / bruh.md
Last active January 3, 2021 21:49
TV internet gratis (Dens.tv) dengan dens.sh

TV internet gratis (Dens.tv) dengan dens.sh


Dependencies

  • sh
  • curl
  • jq
  • mpv
/**
* Creating objects with Classes
* Versus objects with prototypes
* Since JavaScript is not a Class-based language
* what is happening behind the class syntax?
*/
let PersonC = class {
constructor(nm, id) {
this.name = nm;
@ryanwinchester
ryanwinchester / PHP-Guzzle.php
Last active January 19, 2021 00:18 — forked from bkilshaw/gist:3624901
MACVendors.com API :: V1 Code Samples
<?php
// PHP using Guzzle example
use GuzzleHttp\Client;
$client = new Client();
$mac_address = "FC:FB:FB:01:FA:21";
@RobertAKARobin
RobertAKARobin / ruby_oop.md
Created January 4, 2016 19:19
Intro to Ruby OOP

Intro to Object-Oriented Programming in Ruby

AKA OOP: There it is

Learning Objectives

  • Define Object-Oriented Programming, and its benefits
  • Define and differentiate between classes and objects
  • Create a Ruby class with an initialize method
  • Instantiate an object from a class and interact with it
  • Use binding.pry to play with code live
@meskarune
meskarune / speech2text.sh
Created September 18, 2015 17:09
speech to text bash script using google's voice recognition api
#!/bin/bash
#http://blog.oscarliang.net/raspberry-pi-voice-recognition-works-like-siri/
echo “Recording… Press Ctrl+C to Stop.”
arecord -D “plughw:1,0” -q -f cd -t wav | ffmpeg -loglevel panic -y -i – -ar 16000 -acodec flac file.flac > /dev/null 2>&1
echo “Processing…”
wget -q -U “Mozilla/5.0” –post-file file.flac –header “Content-Type: audio/x-flac; rate=16000” -O – “http://www.google.com/speech-api/v1/recognize?lang=en-us&client=chromium” | cut -d” -f12 >stt.txt
echo -n “You Said: ”
@cstrahan
cstrahan / chicken.rb
Created August 31, 2012 13:50 — forked from tenderlove/chicken.rb
YARV bytecode compiler for Scheme
###
# Scheme code is translated to YARV byte code, then evaluated in the
# Ruby Virtual Machine
require 'rbconfig'
require 'dl'
require 'fiddle'
require 'strscan'
class RubyVM
@voyeg3r
voyeg3r / spechtext.sh
Created February 18, 2012 22:20
make your linux speech text from clipboard
#!/bin/bash
# Criado em: Sab 18/Fev/2012 hs 19:10
# Last Change: Sab 18/Fev/2012 hs 19:10
# vim:ft=sh:fdm=syntax:nu:
# Instituicao: <+nome+>
# Proposito do script: spech text from clipboard
# Autor: Sérgio Luiz Araújo Silva
# site: http://vivaotux.blogspot.com
# twitter: http://www.twitter.com/voyeg3r
# source: http://www.youtube.com/watch?v=4uKTamXonPs&feature=g-all-lik&context=G2707f4bFAAAAAAAAAAA