Skip to content

Instantly share code, notes, and snippets.

@Draiken
Draiken / email.slim
Created March 4, 2020 17:45
Email copy
View email.slim
p Hello from Shogun!
p Instagram will soon be deprecating the API Shogun currently uses for adding an Instagram feed to your Shogun pages, in favor of a new API. The old API will stop working on March 31st. You can read more about this deprecation from Instagram here: https://developers.facebook.com/blog/post/2019/10/15/launch-instagram-basic-display-api/
p The new API being introduced by Instagram is very similar to the old one, but differs in that an Instagram user will be listed by Username rather than by their Full Name, and will not include the User's Profile Image.
p In order to avoid any problems with your Shogun pages that use the Instagram element, you will need to:
ol
li Re-authorize your Instagram account with Shogun using Instagram's new API authorization
View test_liborgdate_utf8.py
# -*- coding: utf-8 -*-
import sys
import unittest
import locale
import threading
from datetime import date
from contextlib import contextmanager
View xmonad.hs
import XMonad
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Util.Run(spawnPipe)
import XMonad.Util.EZConfig(additionalKeys)
import System.IO
main = do
xmproc <- spawnPipe "/usr/bin/xmobar /home/draiken/.xmobarrc"
xmonad $ defaultConfig
View xnomad.crash
Process: bash [7721]
Path: /usr/local/Cellar/bash/4.2.20/bin/bash
Identifier: bash
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: bash [1108]
Date/Time: 2012-10-09 08:24:06.424 -0300
OS Version: Mac OS X 10.7.5 (11G63)
Report Version: 9
@Draiken
Draiken / error.txt
Created September 27, 2012 12:00
Ember rails on variant
View error.txt
/home/mserie/.rvm/gems/ruby-1.9.3-p194@minhaserie/gems/railties-3.2.8/lib/rails/railtie/configuration.rb:85:in `method_missing': undefined method `ember' for #<Rails::Application::Configuration:0x00000003e46710> (NoMethodError)
from /home/mserie/deploy/releases/20120926173019/config/environments/production.rb:63:in `block in <top (required)>'
from /home/mserie/.rvm/gems/ruby-1.9.3-p194@minhaserie/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:24:in `class_eval'
from /home/mserie/.rvm/gems/ruby-1.9.3-p194@minhaserie/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:24:in `configure'
from /home/mserie/deploy/releases/20120926173019/config/environments/production.rb:1:in `<top (required)>'
from /home/mserie/.rvm/gems/ruby-1.9.3-p194@minhaserie/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require'
from /home/mserie/.rvm/gems/ruby-1.9.3-p194@minhaserie/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `block in require'
from /home/mserie/.rvm/gems/ruby-1.9.
@Draiken
Draiken / git_code_swarm.sh
Created July 20, 2012 14:05
Git log for codeswarm
View git_code_swarm.sh
git log --name-status --pretty=format:'%n------------------------------------------------------------------------%nr%h | %ae | %ai (%aD) | %x lines%nChanged paths: %N'
@Draiken
Draiken / problem.log
Created May 31, 2012 19:52
sinatra problem
View problem.log
$ bundle exec ruby watcher.rb
== Sinatra/1.3.2 has taken the stage on 4567 for development with backup from Thin
>> Thin web server (v1.3.1 codename Triple Espresso)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:4567, CTRL+C to stop
^C>> Stopping ...
== Sinatra has ended his set (crowd applauds)
== Sinatra/1.3.2 has taken the stage on 4567 for development with backup from Thin
@Draiken
Draiken / sinatra_problem.rb
Created May 31, 2012 19:50
sinatra_problem.rb
View sinatra_problem.rb
require 'bundler/setup'
Bundler.require(:default, :sinatra)
class WatcherApp < ::Sinatra::Base
set :haml, :format => :html5
get '/' do
haml :index
end
View hello.xml
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet src="hss/style.hss" type="application/x-hss" version="1.0"?>
<example>Hello world</example>
View console.log
Process: AXR Prototype [31316]
Path: /Applications/AXR Prototype.app/Contents/MacOS/AXR Prototype
Identifier: vg.axr.AXR-Prototype
Version: 0.46 (1)
Code Type: X86-64 (Native)
Parent Process: launchd [126]
Date/Time: 2012-04-26 13:32:08.558 -0300
OS Version: Mac OS X 10.7.3 (11D50)
Report Version: 9