Skip to content

Instantly share code, notes, and snippets.

;;;; fixed instructions
;;; startup
(setenv "PATH" (concat (getenv "PATH") ":/usr/local/bin"))
(setq exec-path (append exec-path '("/usr/local/bin")))
;; full screen mode
(add-to-list 'default-frame-alist '(fullscreen . maximized))
;; remove menu bar
(if (fboundp 'menu-bar-mode) (menu-bar-mode -1))
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 5.6.14 Kernel Configuration
#
#
# Compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
#
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=90300
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 5.4.19 Kernel Configuration
#
#
# Compiler: gcc-9 (Debian 9.2.1-28) 9.2.1 20200203
#
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=90201

Keybase proof

I hereby claim:

  • I am thiesen on github.
  • I am thiesen (https://keybase.io/thiesen) on keybase.
  • I have a public key ASDvO9lvJC7X29uBuSw-H14TaN-gwnL-NW1sFmV9aJfGPwo

To claim this, I am signing this object:

@thiesen
thiesen / recover_source_code.md
Created January 18, 2018 16:21 — forked from simonw/recover_source_code.md
How to recover lost Python source code if it's still resident in-memory

How to recover lost Python source code if it's still resident in-memory

I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6

Attach a shell to the docker container

Install GDB (needed by pyrasite)

apt-get update && apt-get install gdb
@thiesen
thiesen / gist:6b10ac915d4396a1dd120e3a672b7c82
Created October 27, 2017 15:16 — forked from miyamuko/gist:1859520
Lisp implementation source code

Check out

git clone git://ecls.git.sourceforge.net/gitroot/ecls/ecl
git clone git://sbcl.git.sourceforge.net/gitroot/sbcl/sbcl.git
git clone git://common-lisp.net/projects/cmucl/cmucl.git
hg clone http://clisp.hg.sourceforge.net:8000/hgroot/clisp/clisp
hg clone https://code.google.com/p/mcl/
svn co http://svn.clozure.com/publicsvn/openmcl/trunk/source ccl
svn co http://svn.common-lisp.net/armedbear/trunk/abcl
require 'net/http'
module Net
class HTTP
def self.enable_debug!
# raise "You don't want to do this in anything but development mode!" unless Rails.env == 'development'
class << self
alias_method :__new__, :new
def new(*args, &blk)
instance = __new__(*args, &blk)
instance.set_debug_output($stderr)
@thiesen
thiesen / remove_accents.rb
Last active August 29, 2015 14:12
remove accents monkey patch
module RemoveStringAccents
refine String do
ACCENTS_MAPPING = {
'E' => [200,201,202,203],
'e' => [232,233,234,235],
'A' => [192,193,194,195,196,197],
'a' => [224,225,226,227,228,229,230],
'C' => [199],

Integrações RD Station

Wordpress e Contact Form 7

Para as pessoas que usam o Wordpress como ferramenta de gerenciamento de conteúdo do seu site, e também a facilidade do plugin Contact Form 7 para criar formulários, a integração com RD Station fica bem simples.

Ainda não conhece o Contact Form 7

Se você ainda não tem tanta familiaridade com o plugin Contact Form 7, veja alguns tutoriais: http://www.webmaster.pt/como-criar-formulario-wordpress-contact-form-7-parte1-12914.html#post-12914 http://www.comocriarmeusite.com.br/wordpress-2/formulario-de-contato-no-wordpress-contact-form-7/#middle-post

@thiesen
thiesen / gist:2a1b554592dab70e70e6
Created September 9, 2014 19:14
Salesforce Integration
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<notifications xmlns="http://soap.sforce.com/2005/09/outbound">
<OrganizationId>00Di0000000kTlPEAU</OrganizationId>
<ActionId>04ki0000000L6LBAA0</ActionId>
<SessionId xsi:nil="true"/>
<EnterpriseUrl>https://na15.salesforce.com/services/Soap/c/31.0/00Di0000000kTlP</EnterpriseUrl>
<PartnerUrl>https://na15.salesforce.com/services/Soap/u/31.0/00Di0000000kTlP</PartnerUrl>
<Notification>