Skip to content

Instantly share code, notes, and snippets.

View rayantony's full-sized avatar

ray anthony rayantony

  • Mexico
View GitHub Profile
using System.Net;
using System.Text.RegularExpressions;
using Twilio.TwiML;
public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter log)
{
log.Info($"C# HTTP trigger function processed a request. RequestUri={req.RequestUri}");
var data = await req.Content.ReadAsStringAsync();
@qntmpkts
qntmpkts / install-keybase.sh
Last active August 15, 2017 01:04
Install Keybase inside a ChromeOS Crouton Chroot
#!/usr/bin/env sh
_install() {
curl -O https://prerelease.keybase.io/keybase_amd64.deb ~/Downloads/keybase_amd64.deb
sudo enter-chroot -n xenial sudo -S sh -c "sudo dpkg -i ~/Downloads/keybase_amd64.deb && sudo apt-get install -f"
}
_install
---
- hosts: master,nodes
become: True
become_user: root
become_method: sudo
vars_files:
- config.yml
vars:
k8s_version: 1.3.7
docker_version: 1.11.2
@rayantony
rayantony / README.md
Last active April 8, 2017 14:50
bash-imagemagick-useful-tricks-not-hacks

ImageMagick in Bash/Console : Not all 'Tricks' necessitate using the word 'Hack' (so lets cool it on that shit ok?)

For many of these, I have created a sort of framework(s) around the standard IM commands to ease in modularization. So quickly do our Im strings vanish from memory or clumsily integrate into a million other things, I'm taking some steps to make them easy to use and share if only in a linux/ubuntu environment.

As well many of these are coded from the start to be able to take multiple file types where applicable, as well 'x' number of them via spaced command line params or selecting large groups of files with the mouse to convert which is often the objective but virtually never coded for in Linux/Bash and virtually unpublished and unpracticed in Dos/Windows. The compression isnt much mystery but this modularization and scaling of input/outputs is a common feature

@puffnfresh
puffnfresh / chromebook-nix.sh
Last active October 28, 2020 03:06
Installation script for Nix on ChromeOS
#!/bin/sh
sudo mount -o remount,exec /tmp
if [ -x /usr/local/nixstrap/proot-x86_64 ] && [ -h ~/.nix-profile ]; then
echo "Launching shell with nix-* tools!"
exec /usr/local/nixstrap/proot-x86_64 -b /usr/local/nixstrap/nix-1.8-x86_64-linux:/nix bash --init-file ~/.nix-profile/etc/profile.d/nix.sh
fi
set -e
@rayantony
rayantony / README.md
Last active September 11, 2015 00:17
Free Social Icon Theme - Glowing Neon Buttons

Free Glowing Neon Social Icon Theme in Pure CSS

Complete with glowing pink animation. Yes Totally free Icon Theme for Social, demonstrating the use of the new library free from Foundation, this is a font not a series of jpg's you can easily insert or copy paste. The example serves to demonstrate a concept you are free to copy and re-use any part of. I considered pluginizing them in some fashion such as jquery but ultimately deemed it too time consuming.

This was a concept I was playing with, and a response to a request I saw online that seemed to fit. So just messing around. The Icons are white until a hover over then turn a super cool electric neon-ish pink. Having been unimpressed with similar efforts I took a shot at it and I'm pleased with how it came out. It's purely in CSS so it's fast and light.

>NOTE: While obviously there's no shortage of social icon interest and theme interest, this was w

@rayantony
rayantony / chromium-flash-fix-ubuntu.md
Last active June 23, 2017 18:29
Chromium Browser Flash Player Plugin Fix for Ubuntu 12.04.x

*Wed Nov 20 9:13AM PST 2014 *Fix: Chromium Browser 20x-30x+ versions *Issue: Plugin Support removed for flash *Symptom: Flash no longer working after an update to either chrome or chromium often causing youtube issues as not all videos are html5 converted, software based phone apis (couple of these like twilio or Tropo) *Update issue: External Plugins: Flash SOLUTION *System: Ubuntu 12.04.4 x86_64 Multi-Arch

The Chrome and Chromium Teams are so far removing the plugin not the architecture from Chromium. So if you can grab a new chrome compile for the same system and let Chromium know the exact path with a couple other minimal configs, you can not only keep it, you can update and maybe largely improve on its working condition, while solving certainly the problem at hand. Pickup a recent Mozilla copy just to keep options open and take the ego dow

How to set your Acer C720 Chromebook to boot to Ubuntu by default.

  1. Place your closed laptop on a soft surface, upside down.
  2. Use a sharp knife to cut a hole in the warranty sticker (YES THIS WILL VOID THE WARRANTY).
  3. Remove the 13 screws with a small phillips head screwdriver (PH1 size works well). Be careful, the screws are very small and will strip easily if you use the wrong size screwdriver.
  4. Remove the bottom of the laptop by pulling up on it near the hinges. It takes a bit of pressure to remove, but if you lift it from the back (near the hinges) the same way you would open a laptop screen, the hooks won't break (even though they will make a loud snapping sound).
  5. Remove the BIOS write-protect screw. It is labeled as #7 in this image
  6. With the bottom off, turn over the laptop and open the screen.
  7. Plug the laptop in (it must b
@apatil
apatil / git-crypt-diff
Created August 25, 2014 23:23
git-crypt-diff
#!/bin/bash
fname=$1
branch=$2
key=$3
if [ "$fname" = "-h" ]
then
echo "Usage: git-crypt-diff fname branch key"
exit 0