Skip to content

Instantly share code, notes, and snippets.

View Siliconrob's full-sized avatar
🌎
🙈 🙉 🙊

Robin Michael Siliconrob

🌎
🙈 🙉 🙊
View GitHub Profile
@Siliconrob
Siliconrob / deploy.yml
Created April 24, 2020 00:24 — forked from ceejbot/deploy.yml
an example of a github action that updates other repo actions & secrets on a push
name: deploy service tar
on:
push:
branches:
- 'deploy/*'
jobs:
update:
name: Update target service Github deploy workflows
runs-on: ubuntu-latest
@Siliconrob
Siliconrob / add_partition.sql
Created August 11, 2017 19:03 — forked from danclien/add_partition.sql
Queries I used to import ALB logs into AWS Athena. Based off of https://medium.com/@robwitoff/athena-alb-log-analysis-b874d0958909
ALTER TABLE your_table_name_here
ADD PARTITION (year='2017', month='*', day='*')
LOCATION 's3://your-alb-log-bucket/processed/AWSLogs/00000-change-with-your-account-id/elasticloadbalancing/us-east-1-change-with-your-region/2017/'
@Siliconrob
Siliconrob / DelayCounter.cs
Created June 3, 2017 20:04 — forked from davidfowl/DelayCounter.cs
Count up from 0 to {count}, showing an item every {delay} milliseconds
public IObservable<int> ObservableCounter(int count, int delay)
{
return Observable.Range(0, count).Zip(
Observable.Interval(TimeSpan.FromMilliseconds(delay)), (item, _) => item);
}