Skip to content

Instantly share code, notes, and snippets.

View sardar7110's full-sized avatar
🎯
Focusing

shazad sarwar sardar7110

🎯
Focusing
  • Zek enterprises
  • Sajjadkhanzada@hotmail.com
  • X @Sardar7110
View GitHub Profile
# VERSION 1.0.4
# Author: @madhavajay
# This currently works for iOS and watchOS in the Simulator and Devices
# Changes
# Using ${TOOLCHAIN} in two places now
# Added double quotes " around paths
# Fixed watchOS Issues
# Instructions iOS
@sardar7110
sardar7110 / fix-grub.sh
Created February 1, 2020 16:16 — forked from lovromazgon/fix-grub.sh
This script fixes GRUB for systems, that were installed according to the Manual Full System Encryption guide (https://help.ubuntu.com/community/ManualFullSystemEncryption). It is inspired by the original script used in the guide and reuses a lot of parts from it. Use an Ubuntu Live CD / USB to get to a terminal and run the script from there.
#!/usr/bin/env bash
####################################################################################################
#
# FIX GRUB FOR ENCRYPTED INSTALLATION
#
# This script is based on the Troubleshooting part of the Manual Full System Encryption for Ubuntu.
# See https://help.ubuntu.com/community/ManualFullSystemEncryption/Troubleshooting
#
# This is NOT AN OFFICIAL Ubuntu script, it can and will break your system. Use at own risk.
# VERSION 1.0.4
# Author: @madhavajay
# This currently works for iOS and watchOS in the Simulator and Devices
# Changes
# Using ${TOOLCHAIN} in two places now
# Added double quotes " around paths
# Fixed watchOS Issues
# Instructions iOS
@sardar7110
sardar7110 / hello-world.json
Created January 4, 2020 16:56 — forked from sauthieg/hello-world.json
Returns "Hello World" when `http://localhost:8080/hello` is invoked
{
"heap": {
"objects": [
{
"name": "Hello",
"type": "StaticResponseHandler",
"config": {
"status": 200,
"entity": "<html><body><h1>Hello World</h1></body></html>"
}
{
"id": "1dda8c16-828f-4d0f-ae27-d232547e46dc",
"resource": "notifications",
"path": "/notifications/1dda8c16-828f-4d0f-ae27-d232547e46dc",
"owner": {
"id": "121212",
"resource": "applications",
"path": null
},
"topic": "accounts.capabilities.updated",
<!DOCTYPE html>
<html>
<head>
<script src="https://static.wepay.com/min/js/tokenization.4.latest.js"></script>
</head>
<body>
<!-- credit-card-iframe id will be the location for appending the credit card iframe -->
<div id="credit-card-iframe"></div>
<!-- this button will attach an onclick event to trigger submitToken function -->
<button id="submit-credit-card-button">submit</button>