Lecture 1: Introduction to Research — [📝Lecture Notebooks] [
Lecture 2: Introduction to Python — [📝Lecture Notebooks] [
Lecture 3: Introduction to NumPy — [📝Lecture Notebooks] [
Lecture 4: Introduction to pandas — [📝Lecture Notebooks] [
Lecture 5: Plotting Data — [📝Lecture Notebooks] [[
This is an unsupported scenario, see rancher/rancher#14731 when there is an official solution.
When cattle-cluster-agent and/or cattle-node-agent are accidentally deleted, or when server-url
/cacerts
are changed.
- Generate API token in the UI (user -> API & Keys) and save the Bearer token
- Find the clusterid in the Rancher UI (format is
c-xxxxx
), its in the address bar when the cluster is selected
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/share/source-highlight/lang.map.old | |
+++/usr/share/source-highlight/lang.map | |
@@ -169,3 +169,5 @@ | |
groovy = groovy.lang | |
json = json.lang | |
feature = feature.lang | |
+yaml = yaml.lang | |
+yml = yaml.lang |
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
// NOTE: This is now rolled up in a package and supports more scenarios: https://github.com/dsherret/using-statement | |
interface IDisposable { | |
dispose(); | |
} | |
function using<T extends IDisposable>(resource: T, func: (resource: T) => void) { | |
try { | |
func(resource); | |
} finally { |
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
--[[ | |
%% autostart | |
%% properties | |
%% globals | |
--]] | |
NB_DEVICES = 300 | |
function turnAllOff() | |
fibaro:debug('Turn all devices off.') |
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 Install-VisualStudio | |
{ | |
[CmdletBinding()] | |
param ( | |
[string] $ImagePath, | |
[string[]] $ArgumentList, | |
[string] $InstallPath, | |
[string] $ProductKey | |
) | |
Write-Verbose "Install Visual Studio 2012..." |
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
public class DelegateCommand : DelegateCommand<object> | |
{ | |
public DelegateCommand(Action executeMethod) | |
: base(o => executeMethod()) | |
{ | |
} | |
public DelegateCommand(Action executeMethod, Func<bool> canExecuteMethod) | |
: base(o => executeMethod(), o => canExecuteMethod()) | |
{ |
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
# | |
# Misc good to have commands when using git | |
# | |
# Short and nice log | |
git log --pretty=oneline Path | |
# Create a new freestanding branch | |
git symbolic-ref HEAD refs/heads/<branch-name> | |
rm .git/index -ErrorAction SilentlyContinue |
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 s.name, o.name, o.type, o.type_desc, s.schema_id | |
FROM sys.objects AS o | |
INNER JOIN sys.schemas AS s ON o.schema_id = s.schema_id | |
WHERE s.name NOT IN ( 'dbo', 'sys' ) |
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 the tables, views and stored procedures that are not in the [dbo] schema | |
-- | |
-- Useful when double checking that prople has not run scripts with the wrong user | |
-- for databases that have everything in the [dbo] schema. | |
-- | |
SELECT 'Table' AS [Type] , | |
'[' + s.name + '].[' + t.name + ']' AS [Name] | |
FROM sys.tables AS t |
NewerOlder