This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Dependencies: | |
# JQ: https://stedolan.github.io/jq/download/ | |
# if Linux, you'll need xclip: sudo apt install xclip. | |
# if OSX, then pbpaste is already there. | |
# To use this tool, just save it on your system and make | |
# it executable. Then, if you have copied a base64 encoded | |
# JWT, then you can simply execute this from a command prompt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xsl:stylesheet | |
version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" | |
exclude-result-prefixes="soapenv"> | |
<xsl:strip-space elements="*"/> | |
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> | |
<!-- remove all elements in the soapenv namespace --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"encoding/json" | |
"fmt" | |
"github.com/360EntSecGroup-Skylar/excelize" | |
"io/ioutil" | |
"net/http" | |
"os" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Jimp = require("jimp"); | |
let data = "Dev"; | |
if (process.argv.length > 2) { | |
data = process.argv[2]; | |
} | |
var fileName = 'ic_launcher.png'; | |
var imageCaption = `[${data}]`; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Compatible with the Arduino IDE 1.0 | |
//Library version:1.1 | |
#include <Wire.h> | |
#include <LiquidCrystal_I2C.h> | |
// Connection details for LCD: | |
// SDA --> A4 | |
// SCL --> A5 | |
// VCC --> 5V | |
// lcd is initialized with |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# the 'defaults' command wants the plist file path, but without the .plist extension | |
NOEXT=$(echo "$1" | cut -f 1 -d '.') | |
# extract the current CFBundleVersion value | |
VERSION=$(defaults read $NOEXT CFBundleVersion) | |
# get the number of '.' characters in the version | |
DOTCOUNT=$(echo $VERSION | awk -F"." '{print NF-1}') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Security.Cryptography; | |
namespace Security | |
{ | |
public class SecurityUtils | |
{ | |
public static string ComputeChecksum(string filePath) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.IO; | |
using System.Text.RegularExpressions; | |
using System.Xml.Serialization; | |
using System.Xml; | |
using System.Runtime.Serialization; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
export class UserList extends Component { | |
constructor() { | |
super(); | |
this.state = { | |
users: [], | |
} | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.Azure; | |
using Microsoft.WindowsAzure.Storage; | |
using Microsoft.WindowsAzure.Storage.Table; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace AzureTableSample | |
{ | |
public class Person : TableEntity |