Skip to content

Instantly share code, notes, and snippets.

View ajsb85's full-sized avatar
🖼️
Engaging cognitive processors...

Alexander Salas Bastidas ajsb85

🖼️
Engaging cognitive processors...
View GitHub Profile
@ajsb85
ajsb85 / inventory.xml
Created June 21, 2017 15:44
iOS Inventory
<?xml version='1.0' encoding='utf-8' standalone='yes'?>
<REQUEST>
<QUERY>INVENTORY</QUERY>
<VERSIONCLIENT>Agent_v1.0</VERSIONCLIENT>
<DEVICEID>0F895B78-6F86-46AD-A263-29273E1EBB0C</DEVICEID>
<CONTENT>
<ACCESSLOG>
<LOGDATE>2017-06-21 17:29:27</LOGDATE>
<USERID>N/A</USERID>
</ACCESSLOG>
### Keybase proof
I hereby claim:
* I am flyve-mdm-bot on github.
* I am flyvemdm (https://keybase.io/flyvemdm) on keybase.
* I have a public key whose fingerprint is 917B 2F8F DA1A B38A B2F3 3CD8 F26C 3C07 5DB8 3D47
To claim this, I am signing this object:
@CodeMyUI
CodeMyUI / index.html
Created May 18, 2017 23:46
Windows Fluent Design Calendar
<main class="calendar-contain">
<section class="title-bar">
<button class="title-bar__burger">
<span class="burger__lines">Toggle Menu</span>
</button>
<span class="title-bar__year">
Calendar > May 2017
</span>
<span class="title-bar__month">
@moemoe89
moemoe89 / .gitlab-ci.yml
Created May 2, 2017 03:13
Example Gitlab CI Setup for Go-Lang
image: golang:1.8.1
variables:
BIN_NAME: go-practice-ci
ARTIFACTS_DIR: artifacts
GO_PROJECT: gitlab.com/go-practice-ci
stages:
- build
- test
@Unitech
Unitech / cat proc-cpuinfo
Last active April 11, 2019 09:44
Benchmark PM2 vs HAPROXY vs NGINX - Simple HTTP Node.js application
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 61
model name : Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz
stepping : 4
microcode : 0x23
cpu MHz : 2457.468
cache size : 3072 KB
@StefanScherer
StefanScherer / Dockerfile
Created April 28, 2017 19:55
Build Golang for Windows in a Windows container
FROM golang:1.8-windowsservercore
WORKDIR /compile
RUN git clone https://github.com/golang/go
WORKDIR /compile/go/src
ENV GOROOT_BOOTSTRAP C:/go
ENV CGO_ENABLED 0
RUN cmd /C all.bat
RUN cp ..\bin\*.exe \go\bin
@hgouveia
hgouveia / packtpub_redeem.sh
Created April 11, 2017 06:45
Script to redeem automatically books from `https://www.packtpub.com/packt/offers/free-learning` using bash and cronjob
#!/bin/bash
#==INSTRUCTIONS
# - Add EMAIL and PASS infomation
# - Replace script path with your path `/home/USER/scripts/` in the script
# - Check your machine timezone `date +"%Z %z"` output ex: UTC +0000
# - patckpub.com is UTC +0000, find the best hour for you to use in the crontab
# - Execute `crontab -e`
# - Add `0 1 * * * /bin/sh /home/USER/scripts/packtpub_redeem.sh > /home/USER/scripts/packtpub_redeem.out` , this mean everyday 1am
# - Restart Service `sudo service cron reload` (optional, crontab -e, will reload)
# - Add Permission `chmod 755 /home/USER/scripts/packtpub_redeem.sh`
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<REQUEST>
<QUERY>INVENTORY</QUERY>
<DEVICEID>861946037669183-2016-10-06-13-26-18</DEVICEID>
<CONTENT>
<ACCESSLOG>
<LOGDATE>2016-30-08 05:11:48</LOGDATE>
<USERID>N/A</USERID>
</ACCESSLOG>
<HARDWARE>
@sethfitz
sethfitz / 0_register_planet.sql
Last active May 18, 2022 17:51
Sample OSM Athena queries
--
-- This will register the "planet" table within your AWS account
--
CREATE EXTERNAL TABLE planet (
id BIGINT,
type STRING,
tags MAP<STRING,STRING>,
lat DECIMAL(9,7),
lon DECIMAL(10,7),
nds ARRAY<STRUCT<ref: BIGINT>>,
@jcloutz
jcloutz / .golang-example-gitlab-ci.yml
Last active December 6, 2022 11:20
Example Gitlab CI setup for Go using the official golang docker image
image: golang:1.7
stages:
- build
- test
before_script:
- go get github.com/tools/godep
- cp -r /builds/user /go/src/github.com/user/
- cd /go/src/github.com/user/repo