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
| /* | |
| The MIT License (MIT) | |
| Copyright (c) 2014 Ismael Celis | |
| 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 |
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
| <!-- BOOTSTRAP JS WITH LOCAL FALLBACK--> | |
| <script type="text/javascript" src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/js/bootstrap.min.js"></script> | |
| <script> if(typeof($.fn.modal) === 'undefined') {document.write('<script src="//www.mysite.com/js/v/bootstrap-2.1.1.js"><\/script>')}</script> | |
| <!-- BOOTSTRAP CDN FALLBACK CSS--> | |
| <script>$(document).ready(function() { | |
| var bodyColor = $('body').css("color"); if(bodyColor != 'rgb(51, 51, 51)') {$("head").prepend("<link rel='stylesheet' href='//www.mysite.com/css/fw/bootstrap-combined-2.1.1.css' type='text/css' media='screen'>");} | |
| });</script> |
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/sh | |
| # register a subdomain at https://www.duckdns.org/ to get your token | |
| # put 'hostname|token' in the 'Host Name' field under DDNS | |
| # e.g. myhost|abcdefgh-1234-5678-9876-f71b0ed7a7fe | |
| DDNS_HOSTNAME_FIELD=$(nvram get ddns_hostname_x) | |
| SUBDOMAIN=$(echo "$DDNS_HOSTNAME_FIELD" | awk -F'|' '{print $1}') | |
| TOKEN=$(echo "$DDNS_HOSTNAME_FIELD" | awk -F'|' '{print $2}') | |
| IPV4=$(nvram get wan0_ipaddr) |
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
| $sudo add-apt-repository ppa:alessandro-strada/ppa | |
| $sudo apt-get update | |
| $sudo apt-get install google-drive-ocamlfuse | |
| $google-drive-ocamlfuse | |
| $mkdir -p ~/GoogleDrive | |
| $google-drive-ocamlfuse ~/GoogleDrive |
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
| cp /etc/apt/sources.list /etc/apt/sources.list.backup | |
| sed -i 's|stretch|buster|g' /etc/apt/sources.list | |
| apt update && apt -y upgrade && apt -y dist-upgrade |
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 | |
| # Bash script to install SiS Mirage 3+ graphics drivers on Linux | |
| # Supports 671/672MX graphics cards | |
| # | |
| # Created in March 2019 | |
| # | |
| # Tested on: | |
| # - Lubuntu 18.04 (32-bit) with X.Org v1.19 | |
| # - Xubuntu 18.04 (64-bit) with X.Org v1.20 |
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
| git checkout <branch> | |
| git fetch <other-fork-alias> | |
| git cherry-pick <commit-hash> | |
| git push <your-fork-alias> |
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
| /* | |
| Toaster Oven SMT soldering control | |
| Adrian Bowyer | |
| 2 November 2011 | |
| Licence: GPL |
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 Project of Andrea Cioni | |
| Title: Fan Daemon (FanD) | |
| Author: Andrea Cioni (andreacioni) | |
| cioni95@gmail.com | |
| Copyright: | |
| Copyright (c) 2017 Andrea Cioni <cioni95@gmail.com> |
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 key/value dict system in C */ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #define TEST TRUE /* Comment this line out to compile without a main function (used when including into another application). */ | |
| typedef struct dict_t_struct { | |
| char *key; | |
| void *value; |
NewerOlder