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
<!DOCTYPE html> | |
<!-- This site was created in Webflow. http://www.webflow.com --> | |
<!-- Last Published: Mon Aug 27 2018 00:33:27 GMT+0000 (UTC) --> | |
<html data-wf-page="5b6195b59fe96a1ba86ba604" data-wf-site="5b6195b59fe96ad6326ba603"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Campaign Kit</title> | |
<meta content="width=device-width, initial-scale=1" name="viewport"> | |
<meta content="Webflow" name="generator"> | |
<link href="css/normalize.css" rel="stylesheet" type="text/css"> |
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
if ! [[ $(plutil -convert xml1 -o - ~/Library/Preferences/ByHost/com.apple.notificationcenterui.*.plist | grep false) ]]; then | |
osascript <<EOD | |
tell application "System Events" to tell process "SystemUIServer" | |
key down option | |
click menu bar item 1 of menu bar 1 | |
key up option | |
end tell | |
EOD | |
fi |
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
# Useful for improving Time Machine backup prep. times, Mac App Store install speeds, etc. | |
sudo sysctl debug.lowpri_throttle_enabled=0 | |
# To restore defaults | |
sudo sysctl debug.lowpri_throttle_enabled=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
function getResponse() { | |
var form = FormApp.getActiveForm(); | |
var formResponses = form.getResponses(); | |
if (!formResponses || formResponses.length < 1) { | |
Logger.log('Not found form.getResponses()'); | |
return; | |
} | |
var len = formResponses.length; | |
var response = formResponses[len - 1]; | |
var responseId = response.getId(); |
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
// https://m.cafe.naver.com/eojji/307 | |
function setPageTokenProperty(value) { | |
PropertiesService.getUserProperties().setProperty('PAGE_TOKEN', value); | |
} | |
function getPageTokenProperty() { | |
var pageTokenProperty = PropertiesService.getUserProperties().getProperty('PAGE_TOKEN'); | |
return pageTokenProperty; | |
} |
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
# not an exhaustive list | |
nsurlsessiond "icloud sync" | |
fseventsd "macos file system events" | |
WindowServer "macos windows" | |
DisplayLinkManager "macos driver" | |
configd "macos dynamic configuration" | |
displaypolicyd "macos process" | |
CommCenter "macos keychain" | |
kernel_task "macos kernel" |
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
#!/usr/bin/env bash | |
infolder=$1 | |
outfolder=$2 | |
outputres="-1:720" | |
# Create output folder | |
mkdir -p $outfolder | |
# Transcode video files | |
for video in $infolder/*; |
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
// https://m.cafe.naver.com/eojji/302 | |
// unit: msec | |
function timeCheck(startTime, needTime) { | |
var nowDate = new Date(); | |
// remain = 6 min - ( now - start ) | |
var remain = 360000 - (nowDate.getTime() - startTime); | |
if (remain < needTime) { | |
return false; | |
} else { | |
return true; |
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 asyncio | |
import time | |
from datetime import datetime, timedelta | |
import aiohttp | |
import discord | |
import discord.ext.commands as commands | |
""" | |
Note: I'm using Discord.py version 1.2.5 (Not async version) |