Skip to content

Instantly share code, notes, and snippets.

View gartner's full-sized avatar

Mads Lie Jensen gartner

View GitHub Profile
@culttm
culttm / axios.refresh_token.js
Created October 5, 2017 18:46
axios interceptors for refresh token
axios.interceptors.response.use(function (response) {
return response;
}, function (error) {
const originalRequest = error.config;
if (error.response.status === 401 && !originalRequest._retry) {
originalRequest._retry = true;
@jblang
jblang / C64.md
Last active June 1, 2025 07:54
C64 Resources

Emulators

VICE is the best by such a commanding margin that you really needn't look elsewhere. Open source and has the largest community.

However, other options are:

  • CCS64, Lots of features, but I found it to be painfully slow. Shareware.
  • Hoxs64. Decent, but not as full-featured as VICE. The ML monitor seems nice.
  • Frodo is pretty outdated and the author admits as much.
  • micro64 seems promising but incomplete.
@kvaps
kvaps / rspamd-lists.md
Last active October 9, 2025 16:10
Howto create local whitelists and blacklists for Rspamd

Local whitelists and blacklists for Rspamd

  • cd /etc/rspamd
  • create rspamd.conf.local
  • create lists:
touch local_bl_from.map.inc local_bl_ip.map.inc local_bl_rcpt.map.inc \
local_wl_from.map.inc local_wl_ip.map.inc local_wl_rcpt.map.inc
  • change permissions:
@carcinocron
carcinocron / debugger pause beforeunload
Last active July 22, 2025 08:53
Chrome: pause before redirect
// Run this in the F12 javascript console in chrome
// if a redirect happens, the page will pause
// this helps because chrome's network tab's
// "preserve log" seems to technically preserve the log
// but you can't actually LOOK at it...
// also the "replay xhr" feature does not work after reload
// even if you "preserve log".
window.addEventListener("beforeunload", function() { debugger; }, false)
@gert-janvercauteren
gert-janvercauteren / RestService.js
Last active June 11, 2016 07:03
Restservice factory that works with Apigility and Restangular
angular.module('appName').factory('RestService', ['Restangular', '$q', function(Restangular, $q){
var service;
return {
setService: function($serviceName){
service = Restangular.all($serviceName);
},
create: function($data){
var serviceDeferred = $q.defer();
@pmakholm
pmakholm / dkhm-update-ds
Created October 8, 2010 16:16
Script for updating DS records for .dk domains
#!/usr/bin/perl
# Script for updating DS records for .dk domains
#
# The following argument must be provided:
# --ns - You authorative nameserver you trust
# --zone - The zone you want to update DS records for
# --handle - Your DKHM handle
# --pasword - Your DKHM password
#