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
#!/bin/sh | |
# Read-only Root-FS for Raspian using overlayfs | |
# Version 1.1: | |
# Changed to use /proc/mounts rathern than /etc/fstab for deriving the root filesystem. | |
# | |
# Version 1: | |
# Created 2017 by Pascal Suter @ DALCO AG, Switzerland to work on Raspian as custom init script | |
# (raspbian does not use an initramfs on boot) | |
# |
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/python3 | |
import os | |
import argparse | |
from time import sleep | |
PATH = '/sys/bus/usb/devices/' | |
def reset_device(key, value, coerce, sleep_time): | |
for device_dir, dirs, files in os.walk(PATH, followlinks=True): | |
if device_dir != PATH: |
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
#!/bin/bash | |
# URL : https://stackoverflow.com/questions/48400287/git-format-patch-for-all-the-commits-to-a-file | |
COUNTER=${2}; | |
for c in `git log --format="%H" -- ${1} | head -n ${2}`;do | |
git format-patch --start-number=$COUNTER "$c^1".."$c" -o patches | |
let COUNTER=COUNTER-1 | |
done |
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
############# | |
### ILIAD ### | |
############# | |
config interface 'wan3g' | |
option ifname 'modem' | |
option proto 'qmi' | |
option apn 'iliad' | |
option pincode '1234' | |
option autoconnect '1' |
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
Your name and email address were configured automatically based | |
on your username and hostname. Please check that they are accurate. | |
You can suppress this message by setting them explicitly: | |
git config --global user.name "Your Name" | |
git config --global user.email [email protected] | |
After doing this, you may fix the identity used for this commit with: | |
git commit --amend --reset-author |
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 python | |
""" | |
Recursively find and replace text in files under a specific folder with preview of changed data in dry-run mode | |
============ | |
Example Usage | |
--------------- | |
**See what is going to change (dry run):** |
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
# https://access.redhat.com/solutions/209663 | |
# /etc/uucp/port | |
# disabling hw flow control for missing keystroke input | |
# Everything after a '#' character is a comment. | |
port ttyUSB0 # Port name | |
type direct # Direct connection to other system | |
device /dev/ttyUSB0 # Port device node | |
hardflow false # No hardware flow control | |
speed 115200 # Line speed |
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
Hi guys! I've made this tutorial cuz my Driver Manager wasn't working well, hope it helps: | |
1 Obviously starting with an update and upgrade: | |
sudo apt-get update && sudo apt-get upgrade | |
2 Then remove all Nvidia packages, skip this if your OS is fresh installed: | |
sudo apt-get remove nvidia* && sudo apt autoremove |
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
# | |
# ALSA library configuration file | |
# | |
# pre-load the configuration files | |
@hooks [ | |
{ | |
func load | |
files [ |
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
pcm.!default { | |
type asym | |
playback.pcm { | |
type plug | |
slave.pcm "hw:0,0" | |
} | |
capture.pcm { | |
type plug | |
slave.pcm "hw:1,0" | |
} |
NewerOlder