Skip to content

Instantly share code, notes, and snippets.

View rcknr's full-sized avatar

Sergii Kauk rcknr

View GitHub Profile
@rcknr
rcknr / iso2usb.sh
Created May 5, 2025 08:17 — forked from hankcs/iso2usb.sh
Bootable ISO to USB disk for Mac OSX
#!/bin/bash
##
# AUTHOR: Andy Savage <[email protected]>
# GITHUB: www.github.com/hongkongkiwi
# DESCRIPTION: This script is for converting ISO files and burning them to a USB drive
##
HELP="USAGE: iso2usb blah.iso /dev/disk#"
@rcknr
rcknr / Code.gs
Last active February 12, 2021 21:19 — forked from anonymous/gist:4169590
Get Google Spreadsheet as PDF with customizations
function spreadsheetToPDF(key) {
var spreadsheet = SpreadsheetApp.openById(key);
var response = UrlFetchApp.fetch(spreadsheet.getUrl() + '/export?exportFormat=pdf&gid=1&gridlines=0&printtitle=0&size=7&fzr=true&portrait=1&fitw=1', {
muteHttpExceptions: true,
headers: {
Authorization: 'Bearer ' + ScriptApp.getOAuthToken(),
}
});
@rcknr
rcknr / README.md
Last active May 4, 2016 20:21 — forked from kaezarrex/README.md
GTFS Viewer

Upload a GTFS file that contains shapes.txt. Example GTFS files can be found at the GTFS Data Exchange.

@rcknr
rcknr / Tweetsheets
Created November 22, 2012 16:57 — forked from johannesnagl/Tweetsheets
Use Twitter directly in your Google Doc, so no one will ever blame you for being social
function authorize_(method) {
var oauthConfig = UrlFetchApp.addOAuthService("twitter");
oauthConfig.setAccessTokenUrl("https://api.twitter.com/oauth/access_token");
oauthConfig.setRequestTokenUrl("https://api.twitter.com/oauth/request_token");
oauthConfig.setAuthorizationUrl("https://api.twitter.com/oauth/authorize");
oauthConfig.setConsumerKey(UserProperties.getProperty("CONSUMER_KEY"));
oauthConfig.setConsumerSecret(UserProperties.getProperty("CONSUMER_SECRET"));
return {
oAuthServiceName: "twitter",