- Install
onefetch
by either:- Compiling it from scratch using the Rust compiler, Cargo: with the command
cargo install onefetch
- Downloading a pre-built binary from Onefetch's GitHub releases page (recommended) and placing it in your
$PATH
(such as/usr/local/bin/onefetch
).
- Compiling it from scratch using the Rust compiler, Cargo: with the command
- Add the snippet listed in
onefetch_on_cd.sh
to whatever file that gets run whenever you start a new Bash session. This differs per distro but common files include:~/.bashrc
~/.bash_profile
- sometimes
~/.bash_aliases
?
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 | |
# http://serverfault.com/questions/410321/debian-ip6tables-rules-setup-for-ipv6/410327#410327 | |
# http://ipset.netfilter.org/iptables.man.html | |
# https://www.sixxs.net/wiki/IPv6_Firewalling | |
# https://www.cyberciti.biz/faq/ip6tables-ipv6-firewall-for-linux/ | |
# https://gist.github.com/thomasfr/9712418 | |
# https://gist.github.com/SnakeDrak/f4150f6e517e5a1d525f | |
# http://www.thegeekstuff.com/2011/06/iptables-rules-examples | |
# http://www.thegeekstuff.com/scripts/iptables-rules |
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
-- Theme generated by vim2theme | |
Description = "vim darcula" | |
Default = { Colour="#a9b7c6" } | |
Canvas = { Colour="#2b2b2b" } | |
Number = { Colour="#6897bb" } | |
Escape = { Colour="#cc7832" , Italic=true} | |
String = { Colour="#a5c25c" } | |
BlockComment = { Colour="#808080" } |
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
CREATE OR REPLACE FUNCTION public.json_append(data json, insert_data json) | |
RETURNS json | |
IMMUTABLE | |
LANGUAGE sql | |
AS $$ | |
SELECT ('{'||string_agg(to_json(key)||':'||value, ',')||'}')::json | |
FROM ( | |
SELECT * FROM json_each(data) | |
UNION ALL | |
SELECT * FROM json_each(insert_data) |
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
require 'base64' | |
require 'rest_client' | |
class ExactOnlineClient | |
def xml_call topic, data=nil | |
if not @cookies | |
# Brutal login technique (as documented (-; ) | |
url = "https://start.exactonline.nl/docs/XMLDivisions.aspx" | |
response = RestClient.post url, {"_UserName_" => username, "_Password_" => password} | |
@cookies = response.cookies |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.