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 path = require("path"); | |
const Raven = require("raven"); | |
const lambdaHandler = async event => { | |
throw new Error("test"); | |
return { | |
statusCode: 200, | |
body: JSON.stringify({ message: "ok" }) | |
}; | |
}; |
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/env rubyn | |
remove_duplicates = true | |
cmds = [] | |
exclude = ['exit', /^(ls|l|ll)\s/, /^(ls|l|ll)$/] | |
history = {} | |
ARGV.each do |file| | |
File.readlines(file).each do |line| | |
time, cmd = line.encode('UTF-8').encode('UTF-8', invalid: :replace).split(';') | |
timestamp = time.split(':')[1]&.strip || '' |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.25490197539329529</real> |
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 | |
wallpaper=`ruby get_wallpaper_url.rb` | |
# https://stackoverflow.com/questions/10374520/gsettings-with-cron#19666729 | |
PID=$(pgrep -fo cinnamon-session) | |
export DBUS_SESSION_BUS_ADDRESS=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$PID/environ|cut -d= -f2-) | |
gsettings set org.cinnamon.desktop.background picture-uri "file://${wallpaper}" |
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
# NOTE: This docker-compose.yml is meant to be just an example of how | |
# you could accomplish this on your own. It is not intended to work in | |
# all use-cases and must be adapted to fit your needs. This is merely | |
# a guideline. | |
# See docs.getsentry.com/on-premise/server/ for full | |
# instructions | |
version: '3.4' |
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 ruby | |
# optional: install oathtool | |
require 'json' | |
require 'yaml' | |
require 'open3' | |
require 'mkmf' | |
cmd_list_items = 'op list items' |
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/sh | |
sudo killall -HUP mDNSResponder |
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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-GB"><head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>Temporarily Offline</title> | |
<style type="text/css" media="screen"> | |
html, | |
body { | |
height: 100%; |
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/sh | |
# download all dradio mp3 streams | |
for m3u_url in http://www.deutschlandradio.de/streaming/dlf.m3u http://www.deutschlandradio.de/streaming/dkultur.m3u http://www.deutschlandradio.de/streaming/dradiowissen.m3u http://www.deutschlandradio.de/streaming/dplus.m3u; do | |
url=$(curl -s $m3u_url) | |
filename=$(basename $m3u_url) | |
program="${filename%.*}" | |
curl $url > $program.mp3 & | |
done |
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 ruby | |
class PunchCardError < StandardError; end | |
class PunchCard | |
SETTINGS_DIR = File.expand_path('~/.punchcard') | |
def initialize project | |
@project = project |