This file contains hidden or 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
#!/bin/bash | |
# Set up modeline and activate it for DELL U3234KB 6k display | |
# For a single monitor, easy to modify to set more than one, if you can afford two 6k monitors ... | |
# Tested on cards capable of 6k @ 60hz using Xorg modesetting and intel drivers | |
# Set up/etc/X11/xorg.conf.d/20-intel.conf like this per Debian documentation: | |
# | |
# Section "Device" | |
# Identifier "Intel Graphics" | |
# Driver "modesetting" | |
# EndSection |
This file contains hidden or 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
#!/bin/bash | |
# Hacky one-shot github2gogs migration | |
# | |
# Needs minor modifications if you want to push to a user rather than an organization | |
# or if your gogs gitconfig doesn't have r/w ssh set up | |
# | |
# | |
# Also, create a token in Gogs->Profile->Settings->Application and set it | |
# using: | |
# $ export GOGS_TOKEN=<insert token here> |
This file contains hidden or 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
# | |
# This is roughly equivalent to `svn export` | |
# Useful when you have a .svn directory but are unable to reach the SVN | |
# repository that it came from (e.g. a network-based one) | |
# If you have /tmp/someworking/.svn: | |
# $ python rebuild.py /tmp/someworking /tmp/rebuilt | |
# That will unpack all of the pristine files into /tmp/rebuilt | |
# | |
# mzpqnxow (by way of LLMs, with a few minor fixes) | |
# |
This file contains hidden or 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
#!/bin/bash | |
# Start a terminal inside the qube associated with the active Xorg window | |
# To use this, in dom0: | |
# - copy to ~/bin | |
# - assign it to a key binding in dom0 | |
# | |
# Use-case: | |
# Firefox (or any other app) is open in qube "personal" and you want to pop a terminal | |
# open in "personal" without having to use context menus | |
# |
This file contains hidden or 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
--- a/setup.py 2014-03-17 03:31:31.000000000 +0100 | |
+++ b/setup.py 2014-03-17 19:06:03.000000000 +0100 | |
@@ -750,10 +750,8 @@ | |
exts.append( Extension('_socket', ['socketmodule.c'], | |
depends = ['socketmodule.h']) ) | |
# Detect SSL support for the socket module (via _ssl) | |
- search_for_ssl_incs_in = [ | |
- '/usr/local/ssl/include', | |
- '/usr/contrib/ssl/include/' | |
- ] |
This file contains hidden or 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 | |
# quick hacky script to produce a "CIDR report" of your global address space from Netbox | |
# this is released to the public domain, free of copyright and licensing. | |
# by Paul Sherratt | |
import urllib3 | |
urllib3.disable_warnings() |
This file contains hidden or 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
# This could use some cleanup and robustness changes, but it works for me. Modifications are welcome! | |
# How to setup a Ubiquiti EdgeRouter POE for FreeRADIUS | |
# Based on | |
# https://community.ui.com/questions/FreeRADIUS-on-Edgerouter-2-x/6869cef3-aeca-42c3-9081-e69daa44f397 | |
# https://networkjutsu.com/freeradius-with-two-factor-authentication/ | |
# https://wiki.freeradius.org/guide/Getting-Started | |
# SSH into your router |
This file contains hidden or 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
``` | |
# This won't build a *complete* statically linked smbclient exe, but it will do better ... :/ | |
$ ./configure --without-winbind \ | |
--without-ldap \ | |
--without-ads \ | |
--disable-cups \ | |
--without-quotas \ | |
--disable-avahi \ | |
--without-syslog \ | |
--without-pam \ |
This file contains hidden or 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
diff -Naur /home/kyujin/mlnx-ofed-patch/mlnx-ofed-kernel-4.9-orig/include/linux/sched/mm.h include/linux/sched/mm.h | |
--- a/include/linux/sched/mm.h 2021-12-08 23:08:07.000000000 +0900 | |
+++ b/include/linux/sched/mm.h 2022-08-05 17:28:35.539301521 +0900 | |
@@ -35,18 +35,18 @@ | |
#if !defined (HAVE_MMGET_STILL_VALID) && !defined(HAVE_MMGET_STILL_VALID_IN_SCHED_H) && !defined(HAVE_MMGET_STILL_VALID_IN_MM_H) | |
/* | |
* This has to be called after a get_task_mm()/mmget_not_zero() | |
- * followed by taking the mmap_sem for writing before modifying the | |
+ * followed by taking the mmap_lock for writing before modifying the | |
* vmas or anything the coredump pretends not to change from under it. |
This file contains hidden or 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 | |
# vim: ft=python ts=4 sw=4 expandtab | |
# | |
# Copyright (c) 2013 Reed Kraft-Murphy <[email protected]> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is |
NewerOlder