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
8861 epoll_wait(4, {{EPOLLIN, {u32=11, u64=11}}}, 3, -1) = 1 | |
8861 clock_gettime(CLOCK_BOOTTIME, {177248, 657110423}) = 0 | |
8861 read(5, "\1\0\0\0\0\0\0\0", 8) = 8 | |
8861 socket(PF_LOCAL, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 8 | |
8861 sendmsg(8, {msg_name(21)={sa_family=AF_LOCAL, sun_path="/run/systemd/notify"}, msg_iov(1)=[{"WATCHDOG=1", 10}], msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 10 | |
8861 close(8) = 0 | |
8861 timerfd_settime(5, TFD_TIMER_ABSTIME, {it_interval={0, 0}, it_value={177288, 656179000}}, NULL) = 0 | |
8861 epoll_wait(4, {{EPOLLIN, {u32=11, u64=11}}}, 3, -1) = 1 | |
8861 clock_gettime(CLOCK_BOOTTIME, {177288, 656597823}) = 0 | |
8861 read(5, "\1\0\0\0\0\0\0\0", 8) = 8 |
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
Compiling config v0.0.0 (file:///home/teste/.wtftw) | |
src/config.rs:53:80: 53:81 error: mismatched types: | |
expected `&wtftw::window_system::WindowSystem`, | |
found `alloc::rc::Rc<wtftw::window_system::WindowSystem>` | |
(expected &-ptr, | |
found struct `alloc::rc::Rc`) [E0308] | |
src/config.rs:53 add_key_handler_str!(config, w, "j", modm, |m, w, c| m.windows(w, c, |x| x.focus_down())); | |
^ | |
note: in expansion of closure expansion | |
src/config.rs:53:60: 53:105 note: expansion site |
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
impl EncryptionKey { | |
fn pbkdf2(&self, password: &str) -> (&[u8], &[u8]) { | |
let mut dk = [0u8; 32]; | |
let mut mac = Hmac::new(Sha1::new(), password.as_bytes()); | |
pbkdf2(&mut mac, self.encrypted_key.value.as_ref(), self.iterations, &mut dk); | |
return (&dk[0..16], &dk[16..]) | |
} | |
} |
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
$ curl "https://user:[email protected]/v1/posts/all?results=2000" -o delicious.xml |
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
-- Test for :execute, :while and :if | |
local helpers = require('test.functional.helpers') | |
local clear, feed, insert = helpers.clear, helpers.feed, helpers.insert | |
local execute, expect = helpers.execute, helpers.expect | |
describe('test26', function() | |
setup(clear) | |
it('is working', function() |
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
let regs='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789/-"' | let i=0 | while (i<strlen(regs)) | exec 'let @'.regs[i].'=""' | let i=i+1 | endwhile | unlet regs |
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
func BatchGeocode(ips []string) []*GeoIP { | |
ch := make(chan *GeoIP, len(ips)) | |
responses := []*GeoIP{} | |
for _, ip := range ips { | |
go func(ip string) { | |
geo, err := Geocode(ip) | |
if err != nil { | |
log.Fatal(err) | |
} |
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
3.2M ~/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/fog-1.23.0/tags | |
356K ~/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activerecord-4.1.5/tags | |
216K ~/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/actionpack-4.1.5/tags | |
176K ~/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-4.1.5/tags | |
168K ~/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/skylight-0.3.19/tags | |
152K ~/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/mail-2.5.4/tags | |
132K ~/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/sass-3.2.19/tags | |
128K ~/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/shoulda-matchers-2.6.2/tags | |
128K ~/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/actionview-4.1.5/tags | |
128K ~/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/active_admin-0af2fdcafc0e/tags |
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"?> | |
<root> | |
<item> | |
<name>Use the correct shift keys.</name> | |
<identifier>private.correct_shift_keys</identifier> | |
<autogen>--KeyToKey-- KeyCode::Q, ModifierFlag::SHIFT_L, KeyCode::VK_NONE</autogen> | |
<autogen>--KeyToKey-- KeyCode::W, ModifierFlag::SHIFT_L, KeyCode::VK_NONE</autogen> | |
<autogen>--KeyToKey-- KeyCode::E, ModifierFlag::SHIFT_L, KeyCode::VK_NONE</autogen> | |
<autogen>--KeyToKey-- KeyCode::R, ModifierFlag::SHIFT_L, KeyCode::VK_NONE</autogen> |
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
module Platform | |
module Database | |
def connect(size=35) | |
config = ActiveRecord::Base.configurations[Rails.env] | |
config['pool'] = ENV['DB_POOL'] || size | |
ActiveRecord::Base.establish_connection(config) | |
end | |
def disconnect | |
ActiveRecord::Base.connection_pool.disconnect! |