Skip to content

Instantly share code, notes, and snippets.

View 7h3kk1d's full-sized avatar

Alexander Bandukwala 7h3kk1d

View GitHub Profile
@7h3kk1d
7h3kk1d / fizzbuzz.scm
Created December 11, 2012 13:37
FizzBuzz Test in MIT/GNU Scheme
(define n 0)
(do ()
((= n 101))
(cond
((eq? (modulo n 15) 0) (display "FizzBuzz\n"))
((eq? (modulo n 3) 0) (display "Fizz\n"))
((eq? (modulo n 5) 0) (display "Buzz\n"))
(else (map display (list n "\n")))
)
(set! n (+ n 1))
* systemd-modules-load.service - Load Kernel Modules
Loaded: loaded (/usr/lib/systemd/system/systemd-modules-load.service; static)
Active: failed (Result: exit-code) since Sun 2014-05-11 14:36:49 CDT; 8min ago
Docs: man:systemd-modules-load.service(8)
man:modules-load.d(5)
Process: 122 ExecStart=/usr/lib/systemd/systemd-modules-load (code=exited, status=1/FAILURE)
Main PID: 122 (code=exited, status=1/FAILURE)
May 11 14:36:49 archmac systemd-modules-load[122]: Module 'b43' is blacklisted
May 11 14:36:49 archmac systemd[1]: systemd-modules-load.service: main process exited, code=exited, status=1/FAILURE
EMAIL_UST_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = 'username@domain.com'
EMAIL_HOST_PASSWORD = 'password'
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
SERVER_EMAIL = EMAIL_HOST_USER
Aug 6 18:49:57 alexander-Latitude-E6430 pptp[28743]: nm-pptp-service-28723 log[logecho:pptp_ctrl.c:677]: Echo Reply received.
Aug 6 18:50:15 alexander-Latitude-E6430 wpa_supplicant[1653]: wlan0: CTRL-EVENT-SCAN-STARTED
Aug 6 18:50:20 alexander-Latitude-E6430 wpa_supplicant[1653]: nl80211: send_and_recv->nl_recvmsgs failed: -33
Aug 6 18:52:02 alexander-Latitude-E6430 pppd[28724]: No response to 5 echo-requests
Aug 6 18:52:02 alexander-Latitude-E6430 pppd[28724]: Serial link appears to be disconnected.
Aug 6 18:52:02 alexander-Latitude-E6430 pppd[28724]: Connect time 3.5 minutes.
Aug 6 18:52:02 alexander-Latitude-E6430 pppd[28724]: Sent 104722 bytes, received 8096 bytes.
Aug 6 18:52:02 alexander-Latitude-E6430 pppd[28724]: MPPE disabled
Aug 6 18:52:05 alexander-Latitude-E6430 pppd[28724]: Connection terminated.
var Benchmark = require('benchmark');
var suite = new Benchmark.Suite;
// add tests
suite.add('Calling cow api', {
defer: true,
fn: function(deferred) {
deferred.resolve();
}
{
"name": "template_name",
"content": {
"name" : {"first" : "first", "last":"last"},
"users" : ["user1","user2","user3"],
"address" : "100 first st."
}
}
@7h3kk1d
7h3kk1d / keybase.md
Created August 26, 2016 17:51
Keybase proof

Keybase proof

I hereby claim:

  • I am 7h3kk1d on github.
  • I am abanduk (https://keybase.io/abanduk) on keybase.
  • I have a public key whose fingerprint is E989 E899 2A5D 1100 8C31 7ED4 E464 5514 8FC6 DE3D

To claim this, I am signing this object:

@7h3kk1d
7h3kk1d / humble_bundle_file_downloader.js
Created February 25, 2018 00:00 — forked from tlc/humble_bundle_file_downloader.js
Download HumbleBundle book bundles easier. Puts 'curl' statements on the page for you to copy.
/* 11/27/2017 - Tweaked for a page redesign.
* 1/6/2018 - Handle videos in book bundle.
*/
var pattern = /(MOBI|EPUB|PDF( ?\(H.\))?|CBZ)$/i;
var pattern2 = /(Download)$/;
var nodes = document.getElementsByTagName('a');
var downloadCmd = '';
for (i in nodes) {
var a = nodes[i];
if (a && a.text && pattern.test(a.text.trim())) {
import random
while True:
a = [random.randint(1, 6), random.randint(1, 6), random.randint(1, 6), random.randint(1, 6)]
print(a)
if len(set(a)) == 1:
break
Prelude> [\x -> x + 1, \x -> x -1] <*> [1,2]
[2,3,0,1]
Prelude> [1,2] >>= \y -> [y+1, y-1]
[2,0,3,1]