Skip to content

Instantly share code, notes, and snippets.

View gkmngrgn's full-sized avatar
🎮
Can you hear me?

Gökmen Görgen gkmngrgn

🎮
Can you hear me?
View GitHub Profile
@gkmngrgn
gkmngrgn / html-css-backend-with.lisp
Last active June 29, 2020 12:50
HTML & CSS Backend with Lisp
;;; I wrote this snippet after I read this article:
;;; https://blog.cloudflare.com/the-languages-which-almost-became-css/
;;;
;;; The question is, what happens if I want to use LISP for coding CSS, HTML,
;;; and backend-side (render the template and publish it in a server)? Is it
;;; possible to keep the code simple, and readable or is it waste of time?
;;;
;;; In the code, there's no server implementation because I need a Linux to test
;;; it. That would be easy to do that with 'woo.
;;;
@gkmngrgn
gkmngrgn / urls.txt
Last active April 7, 2023 10:59
My Feeds
http://lucumr.pocoo.org/feed.atom "Python" "Rust" # Armin Ronacher
http://feeds.feedburner.com/ScottHanselman "Csharp" # Scott Hanselman
https://www.joelonsoftware.com/feed/ "Csharp" # Joel Spolsky
http://www.norvig.com/rss-feed.xml "Python" # Peter Norvig
http://nicktasios.nl/rss.xml "Cpp" # Nick Tasios
http://feeds.feedburner.com/SolarianProgrammer "Cpp" # Paul Silisteanu
https://alexgaynor.net/feed.xml "Python" "Rust" # Alex Gaynor
http://feeds.feedburner.com/codinghorror?format=xml "Csharp" # Jeff Atwood
https://drewdevault.com/feed.xml "Golang" # Drew DeVault
http://dave.cheney.net/feed

Keybase proof

I hereby claim:

  • I am gkmngrgn on github.
  • I am gkmngrgn (https://keybase.io/gkmngrgn) on keybase.
  • I have a public key ASAU-Z7Nk5fn-rl2vGDFU6kKO8xBvbASu_qqHt_qKy0pUgo

To claim this, I am signing this object:

@gkmngrgn
gkmngrgn / do.sh
Last active October 7, 2022 20:33
Docker helper script
#!/usr/bin/env bash
BLUE="\\033[1;34m"
GREEN="\\033[1;32m"
NORMAL="\\033[0;39m"
RED="\\033[1;31m"
print_help() {
echo -e "${BLUE}Available environments${NORMAL}"
echo " - DEV (default)"
Verifying my Blockstack ID is secured with the address 124KcXaDnhFduwW7bwiUK9kr1hdDYyEJKr https://explorer.blockstack.org/address/124KcXaDnhFduwW7bwiUK9kr1hdDYyEJKr
# -*- mode: ruby -*-
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provider "virtualbox" do |vb|
# vb.gui = true
vb.memory = "1024"
end

Keybase proof

I hereby claim:

  • I am gkmngrgn on github.
  • I am gkmngrgn (https://keybase.io/gkmngrgn) on keybase.
  • I have a public key whose fingerprint is 351F E36E AF81 D46B 603E 0195 93F9 1645 06DB F755

To claim this, I am signing this object:

~|⇒ cheese
(cheese:12909): GStreamer-CRITICAL **: gst_bin_add: assertion 'GST_IS_ELEMENT (element)' failed
(cheese:12909): GLib-GObject-CRITICAL **: g_object_ref_sink: assertion 'G_IS_OBJECT (object)' failed
(cheese:12909): GStreamer-CRITICAL **: gst_bin_add: assertion 'GST_IS_ELEMENT (element)' failed
(cheese:12909): GLib-GObject-CRITICAL **: g_object_ref_sink: assertion 'G_IS_OBJECT (object)' failed
from django.conf import settings
from django.http.request import validate_host
from django.middleware.csrf import _sanitize_token, constant_time_compare
from tastypie.authorization import ReadOnlyAuthorization
from tastypie.authentication import Authentication
from urlparse import urlparse
class InternalResourceAuthentication(Authentication):
def is_authenticated(self, request, **kwargs):
Errno::ENOENT: No such file or directory - /usr/lib/ruby/gems/2.0.0/build_info/pg-0.17.0.info
An error occurred while installing pg (0.17.0), and Bundler cannot continue.
Make sure that `gem install pg -v '0.17.0'` succeeds before bundling.