This file contains 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
@botcmd(split_args_with=None) | |
def insult(self, msg, args): | |
""" | |
Generate an insult. | |
""" | |
verbs = [ | |
"lazy", | |
"stupid", | |
"insecure", | |
"idiotic", |
This file contains 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
use virt::connect::Connect; | |
use std::time::Duration; | |
use crossbeam_channel::Sender; | |
use serde_derive::Deserialize; | |
use crate::blocks::{Block, ConfigBlock, Update}; | |
use crate::config::SharedConfig; | |
use crate::de::deserialize_duration; |
This file contains 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
*** Joins: freecoupo (~freecoupo@reid-2r8.n4d.250.185.IP) | |
<freecoupo> Hello my friends! Claim up to US $24 in coupons now! | |
<freecoupo> Your $24 in coupons are here! | |
<freecoupo> https://a.aliexpress.com/_m0XtOXd Not spam, not virus, just coupons! ;) | |
<zeta> ‡ | |
*** Quits: sync (~sync@reid-94vkcs.ga.comcast.net) (The TLS connection was non-properly terminated.) | |
*** Quits: freecoupo (~freecoupo@reid-2r8.n4d.250.185.IP) (G-lined: spam) |
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
int try_allocate(int i){ | |
int *ptr; | |
ptr = (int*) malloc(i); | |
if (ptr==0) { | |
printf("FAILED TO ALLOCATE"); | |
return 1; | |
} |
This file contains 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
~ » pg_dump -h ~/database -d junk -s | |
-- | |
-- PostgreSQL database dump | |
-- | |
-- Dumped from database version 9.6.2 | |
-- Dumped by pg_dump version 9.6.2 | |
SET statement_timeout = 0; | |
SET lock_timeout = 0; |
This file contains 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 python3 | |
import tkinter | |
from PIL import Image | |
from PIL import ImageTk | |
from time import sleep | |
root = tkinter.Tk() | |
root.geometry('+%d+%d' % (100,100)) | |
root.wm_title("Self Refreshing Image Viewer") |
This file contains 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
#Parallel Compression based on your number of cores. | |
function xzv() { | |
THREADS=`grep processor /proc/cpuinfo | wc -l`; | |
for file in $*; do | |
pv -s `stat -c%s $file` < $file | pxz -q -T $THREADS > $file.xz ; | |
done; | |
} |
This file contains 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/python | |
# -*- coding: utf-8 -*- | |
"""" | |
Author: Jan Harasym <jharasym@linux.com> | |
Website: dijit.sh | |
Creation Date: 30-06-2014 | |
Last Modified: Mon 30 Jun 2014 21:40:53 BST |
This file contains 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
for i in $( sudo -u postgres psql -q -t -d firebox\ | |
-c "SELECT 'drop sequence ' || c.relname || ';' \ | |
FROM pg_class c WHERE (c.relkind = 'S');" ); do | |
sudo -u postgres psql -d firebox -c "$i"; | |
done |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am dijit on github. | |
* I am dijit (https://keybase.io/dijit) on keybase. | |
* I have the public key with fingerprint 908F BA22 E6FB 3E34 F654 1FCA A2B8 1FFB 8C94 7F1B | |
To claim this, I am signing this object: |