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
<!-- Instructions: | |
- Download and unzip Mojave dynamic background here: https://files.rb.gd/mojave_dynamic.zip | |
- Save this xml file next to the Mojave background files | |
- Fix the path /home/XXXXX/Pictures/Wallpaper/ to your location | |
- Lastly, either: | |
+ GNOME: Use gnome-tweaks tool to select this XML as wallpaper (as default wallpaper settings won't let you choose wallpaper from custom path) | |
+ MATE: Go to background setting (in Appearance) > Choose +Add... > make sure **All files** filter is selected at the bottom right > Then choose mojave.xml | |
--> | |
<background> | |
<starttime> |
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 | |
# Tag revisions like this: | |
# $ git tag -a -m "Version 0.2" v0.2 HEAD | |
VF=VERSION | |
DEFAULT_VERSION=UNKNOWN | |
LF=' | |
' |
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 | |
# Reads EXIF creation date from all .JPG files in the | |
# current directory and moves them carefully under | |
# | |
# $BASEDIR/YYYY/YYYY-MM/YYYY-MM-DD/ | |
# | |
# ...where 'carefully' means that it does not overwrite | |
# differing files if they already exist and will not delete | |
# the original file if copying fails for some reason. |
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
function valuta($s) | |
{ | |
if (empty($s)) { | |
return false; | |
} else { | |
$s = sprintf('€'." %s", number_format($s, 2, ',', '.')); | |
return $s; | |
} | |
} |
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
SELECT FORMAT(getdate(), N'yyyy-MM-dd hh:mm'); |
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
find /tmp -type f -print| awk -F/ ' length($NF) > 142 ' |
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
Imports System | |
Imports System.Data | |
Imports System.Math | |
Imports Microsoft.SqlServer.Dts.Runtime | |
Imports Microsoft.Office.Interop.Excel | |
<system.addin.addin("scriptmain",> _ | |
<system.clscompliantattribute(false)> _ | |
Partial Public Class ScriptMain |
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
Microsoft.Office.Interop.Excel.Application oXL; | |
Microsoft.Office.Interop.Excel._Workbook oWB; | |
Microsoft.Office.Interop.Excel._Worksheet oSheet; | |
Microsoft.Office.Interop.Excel.Range oRng; | |
object misvalue = System.Reflection.Missing.Value;`enter code here` | |
try | |
{ | |
//Start Excel and get Application object. | |
oXL = new Microsoft.Office.Interop.Excel.Application(); | |
oXL.Visible = true; |
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
find . -type d -depth 1 -exec git --git-dir={}/.git --work-tree=$PWD/{} pull origin master \; |
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
$echo -n 😕 | hexdump | |
0000000 f0 9f 98 95 | |
0000004 | |
$echo -e "\xf0\x9f\x98\x95" | |
😕 | |
$PS1=$'\xf0\x9f\x98\x95 >' | |
😕 > |
NewerOlder