Skip to content

Instantly share code, notes, and snippets.

View Foxboron's full-sized avatar
🖥️
Meandering through cyberspace

Morten Linderud Foxboron

🖥️
Meandering through cyberspace
View GitHub Profile
@Foxboron
Foxboron / id_ecdsa.pub
Last active August 31, 2024 16:07
id_ecdsa.tpm
-----BEGIN TSS2 PRIVATE KEY-----
MIH8BgZngQUKAQOkDwwNZm94QGZyYW1ld29yawIEQAAAAQRYAFYAIwALAAYAcgAA
ABAAEAADABAAILXM/KDMRNt84G78CE0I0TBws2gfF65fA94YBmB57kYsACDRnGId
DHKRKjEQTrNo/J+DDkh6CmSo/P2M50Qeqq39uASBgAB+ACBGZOTqU+eBlg9E+j0M
ju0iRxisXIqHbl5yEjFelZTCgwAQCQZxQAIjU16jzk1+SvyQt8FlFuhAR556LcjW
afHnwcj5zLZ0UPlrblUxmflN6UAczm9bOps0qH8oj4rRxLZ2ikcVSk6S8HKxrhnl
/6yCnWO15m9i4bYzdpyk
-----END TSS2 PRIVATE KEY-----
@Foxboron
Foxboron / Bot modules.txt
Created December 8, 2012 04:29
Bot modules
Modules:
- git module (clone etc)
- nginx module (make config for site, restart etc)
- file module (execute file, download file etc)
- user module (get information about vps user etc)
- server module (launch custom bash commands from files)
Auth system:
- Specify admins in config file
- Add new users with priviliges in sqlite file
@Foxboron
Foxboron / Hylang blog posts
Created August 27, 2014 19:38
Hylang sources
By hylang core devs:
Defining Function Arguments in Hy
http://agentultra.com/2013/04/22/defining-function-arguments-in-hy/
Hy a Lisp on Python
http://agentultra.com/2013/04/19/hy-a-lisp-on-python/
Programming Can Be Fun with Hy
http://www.opensourceforu.com/2014/02/programming-can-fun-hy/
@Foxboron
Foxboron / shell.bash
Last active February 23, 2021 11:21
Go-no
λ fzf » export CGO_LDFLAGS="-Wl,-z,relro,-z,now"
λ fzf » export CGO_CPPFLAGS="-D_FORTIFY_SOURCE=2"
λ fzf » export GOFLAGS="-trimpath -ldflags=-linkmode=external"
λ fzf » CGO_ENABLED=1 go build -buildmode=pie -o fzf
^ - No File!
# github.com/junegunn/fzf
@Foxboron
Foxboron / monthly.md
Created December 8, 2017 11:09
Arch Monthly November

Arch monthly November

This is the third edition of Arch monthly!

New TU Andrew Crerar

Andrew Crerar applied to become a Trusted User and was accepted! Congratulations! His intentions is to move firefox-develop from the AUR to [community]

Links:

@Foxboron
Foxboron / hylang-source
Last active November 27, 2016 20:00
Hylang sources
Lightning talk on PyCon 2013:
http://www.youtube.com/watch?feature=player_detailpage&v=1vui-LupKJI#t=975
Boston Python Meetup (January 2013)
http://www.youtube.com/watch?v=ulekCWvDFVI
PyCon Canada 2013
http://www.youtube.com/watch?v=n8i2f6X0SkU
PyCon France 2013
#Python2
import sys
f = lambda x: map(lambda i: sys.stdout.write(([str(i)+'\n',"Fizz\n"],["Buzz\n","FizzBuzz\n"])[not i % 3][not i % 5]), range(0,x)) and None
## Python3
f = lambda x: list(map(lambda i: print(([str(i),"Fizz"],["Buzz","FizzBuzz"])[not i % 3][not i % 5]), range(0,x))) and None
@Foxboron
Foxboron / gist:5521458
Last active December 17, 2015 00:29 — forked from anonymous/gist:5521323
# F=(9/5) * C +32
def convert():
c = int(raw_input('Enter celcius to convert: '))
convertedC = (9/5.0) * c + 32
print convertedC
while True:
@Foxboron
Foxboron / Leiningen.sublime-build
Created November 18, 2012 18:41 — forked from Foredoomed/Leiningen.sublime-build
Leiningen.sublime-build
# Copy the following and place it a file called Leiningen.sublime-build in the Sublime user packages folder (~/.config/sublime-text-2/Packages/User on Linux).
# Select this as the build system for the project using Tools/Build System/Leiningen.
# You can then bring up the Sublime Command Palette (ctrl+shift+P on Windows/Linux) and issue any of the commands # (build, documentation, clean, run, test, etc). By default, build is bound to ctrl+b and run to ctrl+shift+b.
{
"cmd": ["lein", "compile", ":all"],
"working_dir": "$file",
"variants": [
{ "cmd": ["lein", "marg", "-m", "-d", "docs"],
from flask import Flask
from bs4 import BeautifulSoup
import urllib
app = Flask(__name__)
def bs4_slice(web_source):
soup = BeautifulSoup(web_source)
soup.body.find(id="header").decompose()
soup.body.find(id="footer").decompose()