Skip to content

Instantly share code, notes, and snippets.

@renatofrota
renatofrota / install.sh
Last active May 2, 2022 12:34
Deploy Chrome OS (Brunch Framework)
#!/bin/bash
# https://bit.ly/chrome-os-install-sh
# Script to deploy Chrome OS (using Brunch Framework)
# Author renatofrota: https://github.com/renatofrota/
# Brunch Framework: https://github.com/sebanc/brunch/
deployed() {
echo "Deployment complete. Install script by Renato Frota. Donate:"
echo "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=R58RLRMM8YM6U"
xdg-open "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=R58RLRMM8YM6U"
}
# This Dockerfile creates a very small AppImage using static
# linking and LTO. It is 100% portable for all x86_64 *OR*
# aarch64 systems.
#
# The general idea is to create a single file you can `scp`
# into all of your system and have a Lua based self contained
# config "just working".
FROM debian:buster-slim as bootstrap
MAINTAINER Emmanuel Lepage Vallee <[email protected]>
import urllib.request
import scraperwiki
import lxml.html
import codecs
import urllib
import requests
import urllib.request
import datetime
import os
import time
@SanderTheDragon
SanderTheDragon / postman-deb.sh
Last active April 7, 2025 12:40
A shellscript to create a Postman .deb file, for simple installation on Debian-based Linux distro's. Also creates a .desktop file.
#!/bin/sh
# SPDX-FileCopyrightText: 2017-2024 SanderTheDragon <[email protected]>
#
# SPDX-License-Identifier: MIT
arch=$(dpkg --print-architecture)
echo "Detected architecture: $arch"
case "$arch" in
@mbbx6spp
mbbx6spp / README.md
Last active October 13, 2024 07:02
How to install Nix in your home directory

Nix

Prerequisites

  • wget is installed
  • tar is installed

Purpose

If you really don't want to install Nix under /nix (or you can't) then you can install Nix

@auselen
auselen / blocket.py
Last active August 17, 2021 11:31
scrap from blocket.se
from requests import get
from lxml import html
from operator import itemgetter
citycodes = {'skane' : '23', 'lund': '23_10', 'eslov' : '23_2'}
result = []
def list(city, keyword, limit):
url = 'http://www.blocket.se/' + city + '?q=' + keyword + \
'&cg=0&w=0&st=s&ca=' + citycodes[city] + '&is=1&l=0&md=th'
@ahoward
ahoward / caching-https-creds.markdown
Created June 6, 2012 21:42
Fix Username/Password prompting for github repos cloned via https scheme

github recently switched to an https scheme as the default for cloning repos. as a side effect you may suddenly be prompted for a 'Username' and 'Password' when you push where, previously, you were able to do so without typing in credentials. the solution is to cause git to cache https credentials which is easy, since git uses curl under the covers

in your home directory create a file called '.netrc', for example

/Users/ahoward/.netrc

in it put these contents