Skip to content

Instantly share code, notes, and snippets.

View sigsergv's full-sized avatar
💭
Single

Sergey Stolyarov sigsergv

💭
Single
  • Novosibirsk, Russia
View GitHub Profile
acpi-modules-3.16.0-4-586-di_3.16.7-ckt9-3_i386.udeb
acpi-modules-3.16.0-4-686-pae-di_3.16.7-ckt9-3_i386.udeb
ata-modules-3.16.0-4-586-di_3.16.7-ckt9-3_i386.udeb
ata-modules-3.16.0-4-686-pae-di_3.16.7-ckt9-3_i386.udeb
btrfs-modules-3.16.0-4-586-di_3.16.7-ckt9-3_i386.udeb
btrfs-modules-3.16.0-4-686-pae-di_3.16.7-ckt9-3_i386.udeb
cdrom-core-modules-3.16.0-4-586-di_3.16.7-ckt9-3_i386.udeb
cdrom-core-modules-3.16.0-4-686-pae-di_3.16.7-ckt9-3_i386.udeb
core-modules-3.16.0-4-586-di_3.16.7-ckt9-3_i386.udeb
core-modules-3.16.0-4-686-pae-di_3.16.7-ckt9-3_i386.udeb
sreplace(S, M, V) ->
sreplace(S, length(M), M, V).
sreplace([C|R], LEN, M, V) ->
{X, Y} = case lists:prefix(M, R) of
true ->
{V, lists:nthtail(LEN, R)};
false ->
{"", R}
{
"timeStamp": 1434535036018,
"version": "0.9.9.1",
"userSettings": {
"advancedUserEnabled": false,
"autoUpdate": true,
"collapseBlocked": true,
"colorBlindFriendly": false,
"contextMenuEnabled": true,
"dynamicFilteringEnabled": false,
# apt install evince
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
sed:i386
Suggested packages:
nautilus
Recommended packages:
gvfs
<video data-media-id="648851096681775104" name="media" class="animated-gif" data-height="256" data-width="496" loop="" poster="https://pbs.twimg.com/tweet_video_thumb/CQEuonnXAAAbzJN.png" src="https://pbs.twimg.com/tweet_video/CQEuonnXAAAbzJN.mp4">
<source video-src="https://pbs.twimg.com/tweet_video/CQEuonnXAAAbzJN.mp4" type="video/mp4" class="source-mp4" src="https://pbs.twimg.com/tweet_video/CQEuonnXAAAbzJN.mp4">
</video>
@sigsergv
sigsergv / gist:3097283
Created July 12, 2012 10:29
eclipse exception
org.eclipse.core.commands.common.NotDefinedException: Cannot get the parent identifier from an undefined context. org.eclipse.wst.server.ui.internal.webbrowser.actionSet
at org.eclipse.core.commands.contexts.Context.getParentId(Context.java:201)
at org.eclipse.e4.ui.bindings.internal.ContextSet$CComp.getLevel(ContextSet.java:48)
at org.eclipse.e4.ui.bindings.internal.ContextSet$CComp.compare(ContextSet.java:38)
at org.eclipse.e4.ui.bindings.internal.ContextSet$CComp.compare(ContextSet.java:1)
at java.util.Arrays.mergeSort(Arrays.java:1283)
at java.util.Arrays.mergeSort(Arrays.java:1295)
at java.util.Arrays.mergeSort(Arrays.java:1295)
at java.util.Arrays.sort(Arrays.java:1223)
at java.util.Collections.sort(Collections.java:176)
#!/bin/sh
case $1 in
resume|thaw)
DISPLAY=:0.0 su cancel -c "sleep 5; /home/cancel/.kde/Autostart/init-keys.sh" &
;;
esac
<?php
class C1 {
function func_1()
{
print 'Function func_1() call';
}
}
class C2 {
name of display: :0
display: :0 screen: 0
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer,
GLX_OML_swap_method, GLX_SGI_swap_control, GLX_SGIS_multisample,
GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group,
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"