This file contains 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 | |
import re | |
import requests | |
from bs4 import BeautifulSoup | |
from distutils.version import LooseVersion | |
our_version = LooseVersion("1.04") | |
url = "http://ftp.gnu.org/gnu/bc/" | |
html_content = requests.get(url).text |
This file contains 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
from dulwich.repo import Repo | |
from dulwich import client | |
from dulwich.client import ParamikoSSHVendor | |
from dulwich.client import get_transport_and_path | |
SSH_URI="my@host.com/var/git/pkg/packages.git" | |
p = "/home/oxez/pkg/packages" | |
r = Repo(p) | |
client.get_ssh_vendor = ParamikoSSHVendor |
This file contains 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
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
File "/usr/local/lib/python3.4/dist-packages/pygit2/remote.py", line 217, in fetch | |
check_error(err) | |
File "/usr/local/lib/python3.4/dist-packages/pygit2/errors.py", line 56, in check_error | |
raise GitError(message) | |
_pygit2.GitError: This transport isn't implemented. Sorry |
This file contains 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
> python3 test.py | |
Installing program1 | |
Packages that will be installed: | |
1. program3-1.0-1 (required by program2, [NEW]) | |
2. program2-2.0-1 (required by program1, upgrade from 1.9-1]) | |
3. program1-1.0-1 (requested install, [reinstalling]) | |
Downloading http://repos.domain.com/packages/p/program3_1.0-1.pkg | |
Downloading http://repos.domain.com/packages/p/program2_2.0-1.pkg | |
Downloading http://repos.domain.com/packages/p/program1_1.0-1.pkg | |
Installing program3-1.0-1 [NEW] |
This file contains 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
{ | |
package_name: "PackageName" | |
description: "The description of PackageName" | |
maintainer: { | |
name: "Jason Pleau", | |
email: "jason@jpleau.ca" | |
}, | |
version: "1.0" | |
build_version: 1, | |
upstream: { |
This file contains 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
oxez ~ cat .config/fontconfig/conf.d/99-fonts.conf | |
<?xml version='1.0'?> | |
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> | |
<fontconfig> | |
<match target="font"> | |
<edit mode="assign" name="rgba"> | |
<const>rgb</const> | |
</edit> | |
</match> | |
<match target="font"> |
This file contains 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
package main | |
func main() { | |
videoMode := gosfml2.VideoMode{800, 600, 24} | |
window := gosfml2.NewRenderWindow(videoMode, "Test", gosfml2.StyleDefault, gosfml2.DefaultContextSettings()) | |
window.SetFramerateLimit(60) | |
rect, _ := gosfml2.NewRectangleShape() | |
rect.SetPosition(gosfml2.Vector2f{50, 50}) |
This file contains 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
package main | |
import sf "bitbucket.org/krepa098/gosfml2" | |
func main() { | |
videoMode := sf.VideoMode{800, 600, 24} | |
window := sf.NewRenderWindow(videoMode, "Test", sf.StyleDefault, sf.DefaultContextSettings()) | |
window.SetFramerateLimit(60) |
This file contains 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
import os | |
import ycm_core | |
flags = [ | |
'-std=c99', | |
'-x', | |
'c', | |
'-I' | |
'.', | |
'-isystem', |
This file contains 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
style "whiskermenu" { | |
engine "pixmap" { | |
image { | |
function = BOX | |
state = NORMAL | |
file = "bg.png" | |
stretch = TRUE | |
} | |
image { | |
function = BOX |